Lines Matching full:ms
292 MachineState *ms = MACHINE(obj); in machine_get_kernel() local
294 return g_strdup(ms->kernel_filename); in machine_get_kernel()
299 MachineState *ms = MACHINE(obj); in machine_set_kernel() local
301 g_free(ms->kernel_filename); in machine_set_kernel()
302 ms->kernel_filename = g_strdup(value); in machine_set_kernel()
307 MachineState *ms = MACHINE(obj); in machine_get_initrd() local
309 return g_strdup(ms->initrd_filename); in machine_get_initrd()
314 MachineState *ms = MACHINE(obj); in machine_set_initrd() local
316 g_free(ms->initrd_filename); in machine_set_initrd()
317 ms->initrd_filename = g_strdup(value); in machine_set_initrd()
322 MachineState *ms = MACHINE(obj); in machine_get_append() local
324 return g_strdup(ms->kernel_cmdline); in machine_get_append()
329 MachineState *ms = MACHINE(obj); in machine_set_append() local
331 g_free(ms->kernel_cmdline); in machine_set_append()
332 ms->kernel_cmdline = g_strdup(value); in machine_set_append()
337 MachineState *ms = MACHINE(obj); in machine_get_dtb() local
339 return g_strdup(ms->dtb); in machine_get_dtb()
344 MachineState *ms = MACHINE(obj); in machine_set_dtb() local
346 g_free(ms->dtb); in machine_set_dtb()
347 ms->dtb = g_strdup(value); in machine_set_dtb()
352 MachineState *ms = MACHINE(obj); in machine_get_dumpdtb() local
354 return g_strdup(ms->dumpdtb); in machine_get_dumpdtb()
359 MachineState *ms = MACHINE(obj); in machine_set_dumpdtb() local
361 g_free(ms->dumpdtb); in machine_set_dumpdtb()
362 ms->dumpdtb = g_strdup(value); in machine_set_dumpdtb()
369 MachineState *ms = MACHINE(obj); in machine_get_phandle_start() local
370 int64_t value = ms->phandle_start; in machine_get_phandle_start()
379 MachineState *ms = MACHINE(obj); in machine_set_phandle_start() local
386 ms->phandle_start = value; in machine_set_phandle_start()
391 MachineState *ms = MACHINE(obj); in machine_get_dt_compatible() local
393 return g_strdup(ms->dt_compatible); in machine_get_dt_compatible()
398 MachineState *ms = MACHINE(obj); in machine_set_dt_compatible() local
400 g_free(ms->dt_compatible); in machine_set_dt_compatible()
401 ms->dt_compatible = g_strdup(value); in machine_set_dt_compatible()
406 MachineState *ms = MACHINE(obj); in machine_get_dump_guest_core() local
408 return ms->dump_guest_core; in machine_get_dump_guest_core()
413 MachineState *ms = MACHINE(obj); in machine_set_dump_guest_core() local
419 ms->dump_guest_core = value; in machine_set_dump_guest_core()
424 MachineState *ms = MACHINE(obj); in machine_get_mem_merge() local
426 return ms->mem_merge; in machine_get_mem_merge()
431 MachineState *ms = MACHINE(obj); in machine_set_mem_merge() local
437 ms->mem_merge = value; in machine_set_mem_merge()
442 MachineState *ms = MACHINE(obj); in machine_get_usb() local
444 return ms->usb; in machine_get_usb()
449 MachineState *ms = MACHINE(obj); in machine_set_usb() local
451 ms->usb = value; in machine_set_usb()
452 ms->usb_disabled = !value; in machine_set_usb()
457 MachineState *ms = MACHINE(obj); in machine_get_graphics() local
459 return ms->enable_graphics; in machine_get_graphics()
464 MachineState *ms = MACHINE(obj); in machine_set_graphics() local
466 ms->enable_graphics = value; in machine_set_graphics()
471 MachineState *ms = MACHINE(obj); in machine_get_firmware() local
473 return g_strdup(ms->firmware); in machine_get_firmware()
478 MachineState *ms = MACHINE(obj); in machine_set_firmware() local
480 g_free(ms->firmware); in machine_set_firmware()
481 ms->firmware = g_strdup(value); in machine_set_firmware()
486 MachineState *ms = MACHINE(obj); in machine_set_suppress_vmdesc() local
488 ms->suppress_vmdesc = value; in machine_set_suppress_vmdesc()
493 MachineState *ms = MACHINE(obj); in machine_get_suppress_vmdesc() local
495 return ms->suppress_vmdesc; in machine_get_suppress_vmdesc()
500 MachineState *ms = MACHINE(obj); in machine_get_memory_encryption() local
502 if (ms->cgs) { in machine_get_memory_encryption()
503 return g_strdup(object_get_canonical_path_component(OBJECT(ms->cgs))); in machine_get_memory_encryption()
537 MachineState *ms = MACHINE(obj); in machine_get_nvdimm() local
539 return ms->nvdimms_state->is_enabled; in machine_get_nvdimm()
544 MachineState *ms = MACHINE(obj); in machine_set_nvdimm() local
546 ms->nvdimms_state->is_enabled = value; in machine_set_nvdimm()
551 MachineState *ms = MACHINE(obj); in machine_get_hmat() local
553 return ms->numa_state->hmat_enabled; in machine_get_hmat()
558 MachineState *ms = MACHINE(obj); in machine_set_hmat() local
560 ms->numa_state->hmat_enabled = value; in machine_set_hmat()
566 MachineState *ms = MACHINE(obj); in machine_get_mem() local
569 .size = ms->ram_size, in machine_get_mem()
570 .has_max_size = !!ms->ram_slots, in machine_get_mem()
571 .max_size = ms->maxram_size, in machine_get_mem()
572 .has_slots = !!ms->ram_slots, in machine_get_mem()
573 .slots = ms->ram_slots, in machine_get_mem()
584 MachineState *ms = MACHINE(obj); in machine_set_mem() local
628 ms->maxram_size = mem->max_size; in machine_set_mem()
634 ms->maxram_size = mem->size; in machine_set_mem()
636 ms->ram_size = mem->size; in machine_set_mem()
637 ms->ram_slots = mem->has_slots ? mem->slots : 0; in machine_set_mem()
644 MachineState *ms = MACHINE(obj); in machine_get_nvdimm_persistence() local
646 return g_strdup(ms->nvdimms_state->persistence_string); in machine_get_nvdimm_persistence()
652 MachineState *ms = MACHINE(obj); in machine_set_nvdimm_persistence() local
653 NVDIMMState *nvdimms_state = ms->nvdimms_state; in machine_set_nvdimm_persistence()
702 MachineState *ms = MACHINE(obj); in machine_get_audiodev() local
704 return g_strdup(ms->audiodev); in machine_get_audiodev()
710 MachineState *ms = MACHINE(obj); in machine_set_audiodev() local
716 g_free(ms->audiodev); in machine_set_audiodev()
717 ms->audiodev = g_strdup(value); in machine_set_audiodev()
888 MachineState *ms = MACHINE(obj); in machine_get_smp() local
890 .has_cpus = true, .cpus = ms->smp.cpus, in machine_get_smp()
891 .has_drawers = true, .drawers = ms->smp.drawers, in machine_get_smp()
892 .has_books = true, .books = ms->smp.books, in machine_get_smp()
893 .has_sockets = true, .sockets = ms->smp.sockets, in machine_get_smp()
894 .has_dies = true, .dies = ms->smp.dies, in machine_get_smp()
895 .has_clusters = true, .clusters = ms->smp.clusters, in machine_get_smp()
896 .has_modules = true, .modules = ms->smp.modules, in machine_get_smp()
897 .has_cores = true, .cores = ms->smp.cores, in machine_get_smp()
898 .has_threads = true, .threads = ms->smp.threads, in machine_get_smp()
899 .has_maxcpus = true, .maxcpus = ms->smp.max_cpus, in machine_get_smp()
910 MachineState *ms = MACHINE(obj); in machine_set_smp() local
917 machine_parse_smp_config(ms, config, errp); in machine_set_smp()
923 MachineState *ms = MACHINE(obj); in machine_get_smp_cache() local
924 SmpCache *cache = &ms->smp_cache; in machine_get_smp_cache()
943 MachineState *ms = MACHINE(obj); in machine_set_smp_cache() local
950 machine_parse_smp_cache(ms, caches, errp); in machine_set_smp_cache()
957 MachineState *ms = MACHINE(obj); in machine_get_boot() local
958 BootConfiguration *config = &ms->boot_config; in machine_get_boot()
962 static void machine_free_boot_config(MachineState *ms) in machine_free_boot_config() argument
964 g_free(ms->boot_config.order); in machine_free_boot_config()
965 g_free(ms->boot_config.once); in machine_free_boot_config()
966 g_free(ms->boot_config.splash); in machine_free_boot_config()
969 static void machine_copy_boot_config(MachineState *ms, BootConfiguration *config) in machine_copy_boot_config() argument
971 MachineClass *machine_class = MACHINE_GET_CLASS(ms); in machine_copy_boot_config()
973 machine_free_boot_config(ms); in machine_copy_boot_config()
974 ms->boot_config = *config; in machine_copy_boot_config()
976 ms->boot_config.order = g_strdup(machine_class->default_boot_order); in machine_copy_boot_config()
984 MachineState *ms = MACHINE(obj); in machine_set_boot() local
1003 machine_copy_boot_config(ms, config); in machine_set_boot()
1004 /* Strings live in ms->boot_config. */ in machine_set_boot()
1023 static bool create_default_memdev(MachineState *ms, const char *path, in create_default_memdev() argument
1027 MachineClass *mc = MACHINE_GET_CLASS(ms); in create_default_memdev()
1036 if (!object_property_set_int(obj, "size", ms->ram_size, errp)) { in create_default_memdev()
1049 r = object_property_set_link(OBJECT(ms), "memory-backend", obj, errp); in create_default_memdev()
1206 MachineState *ms = MACHINE(obj); in machine_initfn() local
1212 ms->dump_guest_core = true; in machine_initfn()
1213 ms->mem_merge = (QEMU_MADV_MERGEABLE != QEMU_MADV_INVALID); in machine_initfn()
1214 ms->enable_graphics = true; in machine_initfn()
1215 ms->kernel_cmdline = g_strdup(""); in machine_initfn()
1216 ms->ram_size = mc->default_ram_size; in machine_initfn()
1217 ms->maxram_size = mc->default_ram_size; in machine_initfn()
1220 ms->nvdimms_state = g_new0(NVDIMMState, 1); in machine_initfn()
1236 ms->numa_state = g_new0(NumaState, 1); in machine_initfn()
1246 ms->smp.cpus = mc->default_cpus; in machine_initfn()
1247 ms->smp.max_cpus = mc->default_cpus; in machine_initfn()
1248 ms->smp.drawers = 1; in machine_initfn()
1249 ms->smp.books = 1; in machine_initfn()
1250 ms->smp.sockets = 1; in machine_initfn()
1251 ms->smp.dies = 1; in machine_initfn()
1252 ms->smp.clusters = 1; in machine_initfn()
1253 ms->smp.modules = 1; in machine_initfn()
1254 ms->smp.cores = 1; in machine_initfn()
1255 ms->smp.threads = 1; in machine_initfn()
1258 ms->smp_cache.props[i].cache = (CacheLevelAndType)i; in machine_initfn()
1259 ms->smp_cache.props[i].topology = CPU_TOPOLOGY_LEVEL_DEFAULT; in machine_initfn()
1262 machine_copy_boot_config(ms, &(BootConfiguration){ 0 }); in machine_initfn()
1267 MachineState *ms = MACHINE(obj); in machine_finalize() local
1269 machine_free_boot_config(ms); in machine_finalize()
1270 g_free(ms->kernel_filename); in machine_finalize()
1271 g_free(ms->initrd_filename); in machine_finalize()
1272 g_free(ms->kernel_cmdline); in machine_finalize()
1273 g_free(ms->dtb); in machine_finalize()
1274 g_free(ms->dumpdtb); in machine_finalize()
1275 g_free(ms->dt_compatible); in machine_finalize()
1276 g_free(ms->firmware); in machine_finalize()
1277 g_free(ms->device_memory); in machine_finalize()
1278 g_free(ms->nvdimms_state); in machine_finalize()
1279 g_free(ms->numa_state); in machine_finalize()
1280 g_free(ms->audiodev); in machine_finalize()
1426 static void validate_cpu_cluster_to_numa_boundary(MachineState *ms) in validate_cpu_cluster_to_numa_boundary() argument
1428 MachineClass *mc = MACHINE_GET_CLASS(ms); in validate_cpu_cluster_to_numa_boundary()
1429 NumaState *state = ms->numa_state; in validate_cpu_cluster_to_numa_boundary()
1430 const CPUArchIdList *possible_cpus = mc->possible_cpu_arch_ids(ms); in validate_cpu_cluster_to_numa_boundary()