Lines Matching refs:ms

231 static void create_randomness(MachineState *ms, const char *node)  in create_randomness()  argument
241 qemu_fdt_setprop_u64(ms->fdt, node, "kaslr-seed", seed.kaslr); in create_randomness()
242 qemu_fdt_setprop(ms->fdt, node, "rng-seed", seed.rng, sizeof(seed.rng)); in create_randomness()
261 MachineState *ms = MACHINE(vms); in create_fdt() local
262 int nb_numa_nodes = ms->numa_state->num_nodes; in create_fdt()
270 ms->fdt = fdt; in create_fdt()
292 create_randomness(ms, "/chosen"); in create_fdt()
298 create_randomness(ms, "/secure-chosen"); in create_fdt()
318 if (nb_numa_nodes > 0 && ms->numa_state->have_numa_distance) { in create_fdt()
329 cpu_to_be32(ms->numa_state->nodes[i].distance[j]); in create_fdt()
365 MachineState *ms = MACHINE(vms); in fdt_add_timer_nodes() local
377 qemu_fdt_add_subnode(ms->fdt, "/timer"); in fdt_add_timer_nodes()
382 qemu_fdt_setprop(ms->fdt, "/timer", "compatible", in fdt_add_timer_nodes()
385 qemu_fdt_setprop_string(ms->fdt, "/timer", "compatible", in fdt_add_timer_nodes()
388 qemu_fdt_setprop(ms->fdt, "/timer", "always-on", NULL, 0); in fdt_add_timer_nodes()
390 qemu_fdt_setprop_cells(ms->fdt, "/timer", "interrupts", in fdt_add_timer_nodes()
402 qemu_fdt_setprop_cells(ms->fdt, "/timer", "interrupts", in fdt_add_timer_nodes()
418 const MachineState *ms = MACHINE(vms); in fdt_add_cpu_nodes() local
420 int smp_cpus = ms->smp.cpus; in fdt_add_cpu_nodes()
444 qemu_fdt_add_subnode(ms->fdt, "/cpus"); in fdt_add_cpu_nodes()
445 qemu_fdt_setprop_cell(ms->fdt, "/cpus", "#address-cells", addr_cells); in fdt_add_cpu_nodes()
446 qemu_fdt_setprop_cell(ms->fdt, "/cpus", "#size-cells", 0x0); in fdt_add_cpu_nodes()
453 qemu_fdt_add_subnode(ms->fdt, nodename); in fdt_add_cpu_nodes()
454 qemu_fdt_setprop_string(ms->fdt, nodename, "device_type", "cpu"); in fdt_add_cpu_nodes()
455 qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", in fdt_add_cpu_nodes()
459 qemu_fdt_setprop_string(ms->fdt, nodename, in fdt_add_cpu_nodes()
464 qemu_fdt_setprop_u64(ms->fdt, nodename, "reg", in fdt_add_cpu_nodes()
467 qemu_fdt_setprop_cell(ms->fdt, nodename, "reg", in fdt_add_cpu_nodes()
471 if (ms->possible_cpus->cpus[cs->cpu_index].props.has_node_id) { in fdt_add_cpu_nodes()
472 qemu_fdt_setprop_cell(ms->fdt, nodename, "numa-node-id", in fdt_add_cpu_nodes()
473 ms->possible_cpus->cpus[cs->cpu_index].props.node_id); in fdt_add_cpu_nodes()
477 qemu_fdt_setprop_cell(ms->fdt, nodename, "phandle", in fdt_add_cpu_nodes()
478 qemu_fdt_alloc_phandle(ms->fdt)); in fdt_add_cpu_nodes()
501 qemu_fdt_add_subnode(ms->fdt, "/cpus/cpu-map"); in fdt_add_cpu_nodes()
507 if (ms->smp.threads > 1) { in fdt_add_cpu_nodes()
510 cpu / (ms->smp.clusters * ms->smp.cores * ms->smp.threads), in fdt_add_cpu_nodes()
511 (cpu / (ms->smp.cores * ms->smp.threads)) % ms->smp.clusters, in fdt_add_cpu_nodes()
512 (cpu / ms->smp.threads) % ms->smp.cores, in fdt_add_cpu_nodes()
513 cpu % ms->smp.threads); in fdt_add_cpu_nodes()
517 cpu / (ms->smp.clusters * ms->smp.cores), in fdt_add_cpu_nodes()
518 (cpu / ms->smp.cores) % ms->smp.clusters, in fdt_add_cpu_nodes()
519 cpu % ms->smp.cores); in fdt_add_cpu_nodes()
521 qemu_fdt_add_path(ms->fdt, map_path); in fdt_add_cpu_nodes()
522 qemu_fdt_setprop_phandle(ms->fdt, map_path, "cpu", cpu_path); in fdt_add_cpu_nodes()
533 MachineState *ms = MACHINE(vms); in fdt_add_its_gic_node() local
535 vms->msi_phandle = qemu_fdt_alloc_phandle(ms->fdt); in fdt_add_its_gic_node()
538 qemu_fdt_add_subnode(ms->fdt, nodename); in fdt_add_its_gic_node()
539 qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", in fdt_add_its_gic_node()
541 qemu_fdt_setprop(ms->fdt, nodename, "msi-controller", NULL, 0); in fdt_add_its_gic_node()
542 qemu_fdt_setprop_cell(ms->fdt, nodename, "#msi-cells", 1); in fdt_add_its_gic_node()
543 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in fdt_add_its_gic_node()
546 qemu_fdt_setprop_cell(ms->fdt, nodename, "phandle", vms->msi_phandle); in fdt_add_its_gic_node()
552 MachineState *ms = MACHINE(vms); in fdt_add_v2m_gic_node() local
557 vms->msi_phandle = qemu_fdt_alloc_phandle(ms->fdt); in fdt_add_v2m_gic_node()
558 qemu_fdt_add_subnode(ms->fdt, nodename); in fdt_add_v2m_gic_node()
559 qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", in fdt_add_v2m_gic_node()
561 qemu_fdt_setprop(ms->fdt, nodename, "msi-controller", NULL, 0); in fdt_add_v2m_gic_node()
562 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in fdt_add_v2m_gic_node()
565 qemu_fdt_setprop_cell(ms->fdt, nodename, "phandle", vms->msi_phandle); in fdt_add_v2m_gic_node()
571 MachineState *ms = MACHINE(vms); in fdt_add_gic_node() local
574 vms->gic_phandle = qemu_fdt_alloc_phandle(ms->fdt); in fdt_add_gic_node()
575 qemu_fdt_setprop_cell(ms->fdt, "/", "interrupt-parent", vms->gic_phandle); in fdt_add_gic_node()
579 qemu_fdt_add_subnode(ms->fdt, nodename); in fdt_add_gic_node()
580 qemu_fdt_setprop_cell(ms->fdt, nodename, "#interrupt-cells", 3); in fdt_add_gic_node()
581 qemu_fdt_setprop(ms->fdt, nodename, "interrupt-controller", NULL, 0); in fdt_add_gic_node()
582 qemu_fdt_setprop_cell(ms->fdt, nodename, "#address-cells", 0x2); in fdt_add_gic_node()
583 qemu_fdt_setprop_cell(ms->fdt, nodename, "#size-cells", 0x2); in fdt_add_gic_node()
584 qemu_fdt_setprop(ms->fdt, nodename, "ranges", NULL, 0); in fdt_add_gic_node()
588 qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", in fdt_add_gic_node()
591 qemu_fdt_setprop_cell(ms->fdt, nodename, in fdt_add_gic_node()
595 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in fdt_add_gic_node()
601 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in fdt_add_gic_node()
611 qemu_fdt_setprop_cells(ms->fdt, nodename, "interrupts", in fdt_add_gic_node()
618 qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", in fdt_add_gic_node()
621 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in fdt_add_gic_node()
627 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in fdt_add_gic_node()
636 qemu_fdt_setprop_cells(ms->fdt, nodename, "interrupts", in fdt_add_gic_node()
643 qemu_fdt_setprop_cell(ms->fdt, nodename, "phandle", vms->gic_phandle); in fdt_add_gic_node()
651 MachineState *ms = MACHINE(vms); in fdt_add_pmu_nodes() local
664 qemu_fdt_add_subnode(ms->fdt, "/pmu"); in fdt_add_pmu_nodes()
667 qemu_fdt_setprop(ms->fdt, "/pmu", "compatible", in fdt_add_pmu_nodes()
669 qemu_fdt_setprop_cells(ms->fdt, "/pmu", "interrupts", in fdt_add_pmu_nodes()
678 MachineState *ms = MACHINE(vms); in create_acpi_ged() local
682 if (ms->ram_slots) { in create_acpi_ged()
686 if (ms->nvdimms_state->is_enabled) { in create_acpi_ged()
765 MachineState *ms = MACHINE(vms); in create_gic() local
770 unsigned int smp_cpus = ms->smp.cpus; in create_gic()
934 MachineState *ms = MACHINE(vms); in create_uart() local
943 qemu_fdt_add_subnode(ms->fdt, nodename); in create_uart()
945 qemu_fdt_setprop(ms->fdt, nodename, "compatible", in create_uart()
947 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in create_uart()
949 qemu_fdt_setprop_cells(ms->fdt, nodename, "interrupts", in create_uart()
952 qemu_fdt_setprop_cells(ms->fdt, nodename, "clocks", in create_uart()
954 qemu_fdt_setprop(ms->fdt, nodename, "clock-names", in create_uart()
958 qemu_fdt_setprop_string(ms->fdt, "/chosen", "stdout-path", nodename); in create_uart()
959 qemu_fdt_setprop_string(ms->fdt, "/aliases", "serial0", nodename); in create_uart()
961 qemu_fdt_setprop_string(ms->fdt, "/aliases", "serial1", nodename); in create_uart()
965 qemu_fdt_setprop_string(ms->fdt, nodename, "status", "disabled"); in create_uart()
966 qemu_fdt_setprop_string(ms->fdt, nodename, "secure-status", "okay"); in create_uart()
968 qemu_fdt_setprop_string(ms->fdt, "/secure-chosen", "stdout-path", in create_uart()
982 MachineState *ms = MACHINE(vms); in create_rtc() local
987 qemu_fdt_add_subnode(ms->fdt, nodename); in create_rtc()
988 qemu_fdt_setprop(ms->fdt, nodename, "compatible", compat, sizeof(compat)); in create_rtc()
989 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in create_rtc()
991 qemu_fdt_setprop_cells(ms->fdt, nodename, "interrupts", in create_rtc()
994 qemu_fdt_setprop_cell(ms->fdt, nodename, "clocks", vms->clock_phandle); in create_rtc()
995 qemu_fdt_setprop_string(ms->fdt, nodename, "clock-names", "apb_pclk"); in create_rtc()
1077 MachineState *ms = MACHINE(vms); in create_gpio_devices() local
1088 uint32_t phandle = qemu_fdt_alloc_phandle(ms->fdt); in create_gpio_devices()
1090 qemu_fdt_add_subnode(ms->fdt, nodename); in create_gpio_devices()
1091 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in create_gpio_devices()
1093 qemu_fdt_setprop(ms->fdt, nodename, "compatible", compat, sizeof(compat)); in create_gpio_devices()
1094 qemu_fdt_setprop_cell(ms->fdt, nodename, "#gpio-cells", 2); in create_gpio_devices()
1095 qemu_fdt_setprop(ms->fdt, nodename, "gpio-controller", NULL, 0); in create_gpio_devices()
1096 qemu_fdt_setprop_cells(ms->fdt, nodename, "interrupts", in create_gpio_devices()
1099 qemu_fdt_setprop_cell(ms->fdt, nodename, "clocks", vms->clock_phandle); in create_gpio_devices()
1100 qemu_fdt_setprop_string(ms->fdt, nodename, "clock-names", "apb_pclk"); in create_gpio_devices()
1101 qemu_fdt_setprop_cell(ms->fdt, nodename, "phandle", phandle); in create_gpio_devices()
1105 qemu_fdt_setprop_string(ms->fdt, nodename, "status", "disabled"); in create_gpio_devices()
1106 qemu_fdt_setprop_string(ms->fdt, nodename, "secure-status", "okay"); in create_gpio_devices()
1112 create_gpio_keys(ms->fdt, pl061_dev, phandle); in create_gpio_devices()
1114 create_secure_gpio_pwr(ms->fdt, pl061_dev, phandle); in create_gpio_devices()
1122 MachineState *ms = MACHINE(vms); in create_virtio_devices() local
1172 qemu_fdt_add_subnode(ms->fdt, nodename); in create_virtio_devices()
1173 qemu_fdt_setprop_string(ms->fdt, nodename, in create_virtio_devices()
1175 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in create_virtio_devices()
1177 qemu_fdt_setprop_cells(ms->fdt, nodename, "interrupts", in create_virtio_devices()
1180 qemu_fdt_setprop(ms->fdt, nodename, "dma-coherent", NULL, 0); in create_virtio_devices()
1261 MachineState *ms = MACHINE(vms); in virt_flash_fdt() local
1267 qemu_fdt_add_subnode(ms->fdt, nodename); in virt_flash_fdt()
1268 qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", "cfi-flash"); in virt_flash_fdt()
1269 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in virt_flash_fdt()
1272 qemu_fdt_setprop_cell(ms->fdt, nodename, "bank-width", 4); in virt_flash_fdt()
1280 qemu_fdt_add_subnode(ms->fdt, nodename); in virt_flash_fdt()
1281 qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", "cfi-flash"); in virt_flash_fdt()
1282 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in virt_flash_fdt()
1284 qemu_fdt_setprop_cell(ms->fdt, nodename, "bank-width", 4); in virt_flash_fdt()
1285 qemu_fdt_setprop_string(ms->fdt, nodename, "status", "disabled"); in virt_flash_fdt()
1286 qemu_fdt_setprop_string(ms->fdt, nodename, "secure-status", "okay"); in virt_flash_fdt()
1290 qemu_fdt_add_subnode(ms->fdt, nodename); in virt_flash_fdt()
1291 qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", "cfi-flash"); in virt_flash_fdt()
1292 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in virt_flash_fdt()
1294 qemu_fdt_setprop_cell(ms->fdt, nodename, "bank-width", 4); in virt_flash_fdt()
1351 MachineState *ms = MACHINE(vms); in create_fw_cfg() local
1358 fw_cfg_add_i16(fw_cfg, FW_CFG_NB_CPUS, (uint16_t)ms->smp.cpus); in create_fw_cfg()
1361 qemu_fdt_add_subnode(ms->fdt, nodename); in create_fw_cfg()
1362 qemu_fdt_setprop_string(ms->fdt, nodename, in create_fw_cfg()
1364 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in create_fw_cfg()
1366 qemu_fdt_setprop(ms->fdt, nodename, "dma-coherent", NULL, 0); in create_fw_cfg()
1371 static void create_pcie_irq_map(const MachineState *ms, in create_pcie_irq_map() argument
1399 qemu_fdt_setprop(ms->fdt, nodename, "interrupt-map", in create_pcie_irq_map()
1402 qemu_fdt_setprop_cells(ms->fdt, nodename, "interrupt-map-mask", in create_pcie_irq_map()
1419 MachineState *ms = MACHINE(vms); in create_smmu() local
1437 qemu_fdt_add_subnode(ms->fdt, node); in create_smmu()
1438 qemu_fdt_setprop(ms->fdt, node, "compatible", compat, sizeof(compat)); in create_smmu()
1439 qemu_fdt_setprop_sized_cells(ms->fdt, node, "reg", 2, base, 2, size); in create_smmu()
1441 qemu_fdt_setprop_cells(ms->fdt, node, "interrupts", in create_smmu()
1447 qemu_fdt_setprop(ms->fdt, node, "interrupt-names", irq_names, in create_smmu()
1450 qemu_fdt_setprop(ms->fdt, node, "dma-coherent", NULL, 0); in create_smmu()
1452 qemu_fdt_setprop_cell(ms->fdt, node, "#iommu-cells", 1); in create_smmu()
1454 qemu_fdt_setprop_cell(ms->fdt, node, "phandle", vms->iommu_phandle); in create_smmu()
1462 MachineState *ms = MACHINE(vms); in create_virtio_iommu_dt_bindings() local
1465 vms->iommu_phandle = qemu_fdt_alloc_phandle(ms->fdt); in create_virtio_iommu_dt_bindings()
1469 qemu_fdt_add_subnode(ms->fdt, node); in create_virtio_iommu_dt_bindings()
1470 qemu_fdt_setprop(ms->fdt, node, "compatible", compat, sizeof(compat)); in create_virtio_iommu_dt_bindings()
1471 qemu_fdt_setprop_sized_cells(ms->fdt, node, "reg", in create_virtio_iommu_dt_bindings()
1475 qemu_fdt_setprop_cell(ms->fdt, node, "#iommu-cells", 1); in create_virtio_iommu_dt_bindings()
1476 qemu_fdt_setprop_cell(ms->fdt, node, "phandle", vms->iommu_phandle); in create_virtio_iommu_dt_bindings()
1479 qemu_fdt_setprop_cells(ms->fdt, vms->pciehb_nodename, "iommu-map", in create_virtio_iommu_dt_bindings()
1504 MachineState *ms = MACHINE(vms); in create_pcie() local
1505 MachineClass *mc = MACHINE_GET_CLASS(ms); in create_pcie()
1559 qemu_fdt_add_subnode(ms->fdt, nodename); in create_pcie()
1560 qemu_fdt_setprop_string(ms->fdt, nodename, in create_pcie()
1562 qemu_fdt_setprop_string(ms->fdt, nodename, "device_type", "pci"); in create_pcie()
1563 qemu_fdt_setprop_cell(ms->fdt, nodename, "#address-cells", 3); in create_pcie()
1564 qemu_fdt_setprop_cell(ms->fdt, nodename, "#size-cells", 2); in create_pcie()
1565 qemu_fdt_setprop_cell(ms->fdt, nodename, "linux,pci-domain", 0); in create_pcie()
1566 qemu_fdt_setprop_cells(ms->fdt, nodename, "bus-range", 0, in create_pcie()
1568 qemu_fdt_setprop(ms->fdt, nodename, "dma-coherent", NULL, 0); in create_pcie()
1571 qemu_fdt_setprop_cells(ms->fdt, nodename, "msi-map", in create_pcie()
1575 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in create_pcie()
1579 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "ranges", in create_pcie()
1588 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "ranges", in create_pcie()
1595 qemu_fdt_setprop_cell(ms->fdt, nodename, "#interrupt-cells", 1); in create_pcie()
1596 create_pcie_irq_map(ms, vms->gic_phandle, irq, nodename); in create_pcie()
1599 vms->iommu_phandle = qemu_fdt_alloc_phandle(ms->fdt); in create_pcie()
1604 qemu_fdt_setprop_cells(ms->fdt, nodename, "iommu-map", in create_pcie()
1656 MachineState *ms = MACHINE(vms); in create_secure_ram() local
1663 qemu_fdt_add_subnode(ms->fdt, nodename); in create_secure_ram()
1664 qemu_fdt_setprop_string(ms->fdt, nodename, "device_type", "memory"); in create_secure_ram()
1665 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", 2, base, 2, size); in create_secure_ram()
1666 qemu_fdt_setprop_string(ms->fdt, nodename, "status", "disabled"); in create_secure_ram()
1667 qemu_fdt_setprop_string(ms->fdt, nodename, "secure-status", "okay"); in create_secure_ram()
1680 MachineState *ms = MACHINE(board); in machvirt_dtb() local
1684 return ms->fdt; in machvirt_dtb()
1690 MachineState *ms = MACHINE(vms); in virt_build_smbios() local
1706 mem_array.length = ms->ram_size; in virt_build_smbios()
1708 smbios_get_tables(ms, SMBIOS_ENTRY_POINT_TYPE_64, &mem_array, 1, in virt_build_smbios()
1726 MachineState *ms = MACHINE(vms); in virt_machine_done() local
1739 platform_bus_add_all_fdt_nodes(ms->fdt, "/intc", in virt_machine_done()
1744 if (arm_load_dtb(info->dtb_start, info, info->dtb_limit, as, ms) < 0) { in virt_machine_done()
1831 MachineState *ms = MACHINE(vms); in virt_set_memmap() local
1841 if (ms->ram_slots > ACPI_MAX_RAM_SLOTS) { in virt_set_memmap()
1843 ms->ram_slots); in virt_set_memmap()
1863 ROUND_UP(vms->memmap[VIRT_MEM].base + ms->ram_size, GiB); in virt_set_memmap()
1864 device_memory_size = ms->maxram_size - ms->ram_size + ms->ram_slots * GiB; in virt_set_memmap()
1887 machine_memory_devices_init(ms, device_memory_base, device_memory_size); in virt_set_memmap()
2742 virt_cpu_index_to_props(MachineState *ms, unsigned cpu_index) in virt_cpu_index_to_props() argument
2744 MachineClass *mc = MACHINE_GET_CLASS(ms); in virt_cpu_index_to_props()
2745 const CPUArchIdList *possible_cpus = mc->possible_cpu_arch_ids(ms); in virt_cpu_index_to_props()
2751 static int64_t virt_get_default_cpu_node_id(const MachineState *ms, int idx) in virt_get_default_cpu_node_id() argument
2753 int64_t socket_id = ms->possible_cpus->cpus[idx].props.socket_id; in virt_get_default_cpu_node_id()
2755 return socket_id % ms->numa_state->num_nodes; in virt_get_default_cpu_node_id()
2758 static const CPUArchIdList *virt_possible_cpu_arch_ids(MachineState *ms) in virt_possible_cpu_arch_ids() argument
2761 unsigned int max_cpus = ms->smp.max_cpus; in virt_possible_cpu_arch_ids()
2762 VirtMachineState *vms = VIRT_MACHINE(ms); in virt_possible_cpu_arch_ids()
2765 if (ms->possible_cpus) { in virt_possible_cpu_arch_ids()
2766 assert(ms->possible_cpus->len == max_cpus); in virt_possible_cpu_arch_ids()
2767 return ms->possible_cpus; in virt_possible_cpu_arch_ids()
2770 ms->possible_cpus = g_malloc0(sizeof(CPUArchIdList) + in virt_possible_cpu_arch_ids()
2772 ms->possible_cpus->len = max_cpus; in virt_possible_cpu_arch_ids()
2773 for (n = 0; n < ms->possible_cpus->len; n++) { in virt_possible_cpu_arch_ids()
2774 ms->possible_cpus->cpus[n].type = ms->cpu_type; in virt_possible_cpu_arch_ids()
2775 ms->possible_cpus->cpus[n].arch_id = in virt_possible_cpu_arch_ids()
2779 ms->possible_cpus->cpus[n].props.has_socket_id = true; in virt_possible_cpu_arch_ids()
2780 ms->possible_cpus->cpus[n].props.socket_id = in virt_possible_cpu_arch_ids()
2781 n / (ms->smp.clusters * ms->smp.cores * ms->smp.threads); in virt_possible_cpu_arch_ids()
2782 ms->possible_cpus->cpus[n].props.has_cluster_id = true; in virt_possible_cpu_arch_ids()
2783 ms->possible_cpus->cpus[n].props.cluster_id = in virt_possible_cpu_arch_ids()
2784 (n / (ms->smp.cores * ms->smp.threads)) % ms->smp.clusters; in virt_possible_cpu_arch_ids()
2785 ms->possible_cpus->cpus[n].props.has_core_id = true; in virt_possible_cpu_arch_ids()
2786 ms->possible_cpus->cpus[n].props.core_id = in virt_possible_cpu_arch_ids()
2787 (n / ms->smp.threads) % ms->smp.cores; in virt_possible_cpu_arch_ids()
2788 ms->possible_cpus->cpus[n].props.has_thread_id = true; in virt_possible_cpu_arch_ids()
2789 ms->possible_cpus->cpus[n].props.thread_id = in virt_possible_cpu_arch_ids()
2790 n % ms->smp.threads; in virt_possible_cpu_arch_ids()
2792 return ms->possible_cpus; in virt_possible_cpu_arch_ids()
2799 const MachineState *ms = MACHINE(hotplug_dev); in virt_memory_pre_plug() local
2813 if (is_nvdimm && !ms->nvdimms_state->is_enabled) { in virt_memory_pre_plug()
2825 MachineState *ms = MACHINE(hotplug_dev); in virt_memory_plug() local
2831 nvdimm_plug(ms->nvdimms_state); in virt_memory_plug()
2995 static int virt_kvm_type(MachineState *ms, const char *type_str) in virt_kvm_type() argument
2997 VirtMachineState *vms = VIRT_MACHINE(ms); in virt_kvm_type()
3001 max_vm_pa_size = kvm_arm_get_max_vm_ipa_size(ms, &fixed_ipa); in virt_kvm_type()