Home
last modified time | relevance | path

Searched refs:current_machine (Results 1 – 25 of 42) sorted by relevance

12

/openbmc/qemu/target/s390x/kvm/
H A Dstsi-topology.c143 sysib->mag[S390_TOPOLOGY_MAG4] = current_machine->smp.drawers; in setup_stsi()
144 sysib->mag[S390_TOPOLOGY_MAG3] = current_machine->smp.books; in setup_stsi()
145 sysib->mag[S390_TOPOLOGY_MAG2] = current_machine->smp.sockets; in setup_stsi()
146 sysib->mag[S390_TOPOLOGY_MAG1] = current_machine->smp.cores; in setup_stsi()
149 sysib->mag[S390_TOPOLOGY_MAG3] = current_machine->smp.drawers * in setup_stsi()
150 current_machine->smp.books; in setup_stsi()
151 sysib->mag[S390_TOPOLOGY_MAG2] = current_machine->smp.sockets; in setup_stsi()
152 sysib->mag[S390_TOPOLOGY_MAG1] = current_machine->smp.cores; in setup_stsi()
155 sysib->mag[S390_TOPOLOGY_MAG2] = current_machine->smp.drawers * in setup_stsi()
156 current_machine->smp.books * in setup_stsi()
[all …]
/openbmc/qemu/hw/s390x/
H A Dipl.c310 if (current_machine->boot_config.has_menu && current_machine->boot_config.menu) { in s390_ipl_set_boot_menu()
320 if (!current_machine->boot_config.has_menu) { in s390_ipl_set_boot_menu()
328 if (current_machine->boot_config.has_menu && current_machine->boot_config.menu) { in s390_ipl_set_boot_menu()
334 if (!current_machine->boot_config.has_menu || !current_machine->boot_config.menu) { in s390_ipl_set_boot_menu()
340 if (current_machine->boot_config.has_splash_time) { in s390_ipl_set_boot_menu()
341 splash_time = current_machine->boot_config.splash_time; in s390_ipl_set_boot_menu()
H A Dcpu-topology.c50 return (drawer_id * current_machine->smp.books + book_id) * in s390_socket_nb_from_ids()
51 current_machine->smp.sockets + socket_id; in s390_socket_nb_from_ids()
184 CpuTopology *smp = &current_machine->smp; in s390_topology_cpu_default()
237 CpuTopology *smp = &current_machine->smp; in s390_topology_check()
364 MachineState *ms = current_machine; in s390_change_topology()
/openbmc/qemu/hw/microblaze/
H A Dboot.c128 kernel_filename = current_machine->kernel_filename; in microblaze_load_kernel()
129 kernel_cmdline = current_machine->kernel_cmdline; in microblaze_load_kernel()
130 dtb_arg = current_machine->dtb; in microblaze_load_kernel()
/openbmc/qemu/hw/cpu/
H A Dcore.c75 if (current_machine) { in cpu_core_instance_init()
76 core->nr_threads = current_machine->smp.threads; in cpu_core_instance_init()
/openbmc/qemu/system/
H A Dvl.c818 if (!machine_usb(current_machine)) { in usb_device_add()
1329 MachineClass *machine_class = MACHINE_GET_CLASS(current_machine); in qemu_disable_default_devices()
1391 MachineClass *machine_class = MACHINE_GET_CLASS(current_machine); in qemu_create_default_devices()
1942 object_set_properties_from_keyval(OBJECT(current_machine), qdict, false, &error_fatal); in qemu_apply_machine_options()
1946 semihosting_arg_fallback(current_machine->kernel_filename, current_machine->kernel_cmdline); in qemu_apply_machine_options()
1949 if (current_machine->smp.cpus > 1) { in qemu_apply_machine_options()
1956 MachineClass *machine_class = MACHINE_GET_CLASS(current_machine); in qemu_create_early_backends()
2071 current_machine->ram_size = backend_size; in qemu_resolve_machine_memdev()
2073 object_property_set_link(OBJECT(current_machine), in qemu_resolve_machine_memdev()
2120 current_machine = MACHINE(object_new_with_class(OBJECT_CLASS(machine_class))); in qemu_create_machine()
[all …]
H A Drunstate.c513 mc = current_machine ? MACHINE_GET_CLASS(current_machine) : NULL; in qemu_system_reset()
525 mc->reset(current_machine, type); in qemu_system_reset()
561 mc = current_machine ? MACHINE_GET_CLASS(current_machine) : NULL; in qemu_system_wakeup()
564 mc->wakeup(current_machine); in qemu_system_wakeup()
H A Ddevice_tree.c500 phandle = machine_phandle_start(current_machine); in qemu_fdt_alloc_phandle()
599 const char *dumpdtb = current_machine->dumpdtb; in qemu_fdt_dumpdtb()
656 if (!current_machine->fdt) { in qmp_dumpdtb()
661 size = fdt_totalsize(current_machine->fdt); in qmp_dumpdtb()
665 if (!g_file_set_contents(filename, current_machine->fdt, size, &err)) { in qmp_dumpdtb()
H A Dbootdevice.c274 if (current_machine->boot_config.has_strict && in get_boot_devices_list()
275 current_machine->boot_config.strict && *size > 0) { in get_boot_devices_list()
/openbmc/qemu/hw/mem/
H A Dmemory-device.c98 if (!current_machine->device_memory) { in memory_devices_get_reserved_memslots()
101 return get_reserved_memslots(current_machine); in memory_devices_get_reserved_memslots()
106 if (!current_machine->device_memory) { in memory_devices_memslot_auto_decision_active()
110 return current_machine->device_memory->memslot_auto_decision_active; in memory_devices_memslot_auto_decision_active()
/openbmc/qemu/hw/mips/
H A Dloongson3_bootp.c41 c->nr_cpus = cpu_to_le32(current_machine->smp.cpus); in init_cpu_info()
42 c->total_node = cpu_to_le32(DIV_ROUND_UP(current_machine->smp.cpus, in init_cpu_info()
H A Dloongson3_virt.c290 fw_cfg_add_i16(fw_cfg, FW_CFG_NB_CPUS, (uint16_t)current_machine->smp.cpus); in fw_conf_init()
291 fw_cfg_add_i16(fw_cfg, FW_CFG_MAX_CPUS, (uint16_t)current_machine->smp.max_cpus); in fw_conf_init()
/openbmc/qemu/target/m68k/
H A Dm68k-semi.c223 env->dregs[1] = current_machine->ram_size; in do_m68k_semihosting()
224 env->aregs[7] = current_machine->ram_size; in do_m68k_semihosting()
/openbmc/qemu/target/arm/
H A Darm-qmp-cmds.c136 } else if (current_machine->cpu_type) { in qmp_query_cpu_model_expansion()
137 const char *cpu_type = current_machine->cpu_type; in qmp_query_cpu_model_expansion()
/openbmc/qemu/accel/
H A Daccel-system.c52 return current_machine->accelerator; in current_accel()
/openbmc/qemu/accel/tcg/
H A Dtcg-accel-ops-mttcg.c138 tcg_cpu_init_cflags(cpu, current_machine->smp.max_cpus > 1); in mttcg_start_vcpu_thread()
/openbmc/qemu/hw/nvram/
H A Dfw_cfg.c188 if (current_machine->boot_config.has_splash_time) { in fw_cfg_bootsplash()
189 int64_t bst_val = current_machine->boot_config.splash_time; in fw_cfg_bootsplash()
205 if (current_machine->boot_config.splash) { in fw_cfg_bootsplash()
206 const char *boot_splash_filename = current_machine->boot_config.splash; in fw_cfg_bootsplash()
239 if (current_machine->boot_config.has_reboot_timeout) { in fw_cfg_reboot()
240 rt_val = current_machine->boot_config.reboot_timeout; in fw_cfg_reboot()
/openbmc/qemu/hw/riscv/
H A Dboot.c168 current_machine->ram_size, NULL); in riscv_load_firmware()
250 current_machine->ram_size, NULL) > 0) { in riscv_load_kernel()
/openbmc/qemu/hw/remote/
H A Diohub.c80 RemoteMachineState *machine = REMOTE_MACHINE(current_machine); in process_set_irqfd_msg()
H A Dvfio-user-obj.c123 if (!current_machine) { in vfu_object_auto_shutdown()
127 auto_shutdown = object_property_get_bool(OBJECT(current_machine), in vfu_object_auto_shutdown()
858 if (!object_dynamic_cast(OBJECT(current_machine), TYPE_REMOTE_MACHINE)) { in vfu_object_init()
/openbmc/qemu/hw/core/
H A Dguest-loader.c103 size = load_image_targphys_as(file, s->addr, current_machine->ram_size, in guest_loader_realize()
H A Dmachine.c288 MachineState *current_machine; variable
1584 if (!machine_class->create_default_memdev(current_machine, mem_path, in machine_run_board_init()
1654 if (current_machine->boot_config.once) { in qdev_machine_creation_done()
1655 qemu_boot_set(current_machine->boot_config.once, &error_fatal); in qdev_machine_creation_done()
1656 qemu_register_reset(restore_boot_order, g_strdup(current_machine->boot_config.order)); in qdev_machine_creation_done()
H A Dgeneric-loader.c158 size = load_image_targphys_as(s->file, s->addr, current_machine->ram_size, as); in generic_loader_realize()
/openbmc/qemu/hw/smbios/
H A Dsmbios.c849 size_kb = QEMU_ALIGN_UP(current_machine->ram_size, KiB) / KiB; in smbios_build_type_16_table()
855 t->extended_maximum_capacity = cpu_to_le64(current_machine->ram_size); in smbios_build_type_16_table()
1128 : ((current_machine->ram_size - 1) % mc->smbios_memory_device_size) + 1) in smbios_get_tables_ep()
1130 dimm_cnt = QEMU_ALIGN_UP(current_machine->ram_size, in smbios_get_tables_ep()
/openbmc/qemu/hw/i386/
H A Dpc_sysfw.c73 if (!machine_require_guest_memfd(current_machine)) { in pc_isa_bios_init()

12