/qemu/target/s390x/ |
H A D | cpu_models_sysemu.c | 49 S390CPUModel *model; member 76 check_unavailable_features(cpu_list_data->model, sc->model, in create_cpu_model_list() 122 if (!cpu->model) { in cpu_model_from_info() 158 memcpy(model, cpu->model, sizeof(*model)); in cpu_model_from_info() 184 bitmap_andnot(bitmap, model->def->base_feat, model->features, in cpu_info_from_model() 191 bitmap_andnot(bitmap, model->features, model->def->base_feat, in cpu_info_from_model() 244 expansion_info->model = g_malloc0(sizeof(*expansion_info->model)); in qmp_query_cpu_model_expansion() 389 bitmap_and(model.features, model.features, model.def->full_feat, in qmp_query_cpu_model_baseline() 393 baseline_info->model = g_malloc0(sizeof(*baseline_info->model)); in qmp_query_cpu_model_baseline() 394 cpu_info_from_model(baseline_info->model, &model, true); in qmp_query_cpu_model_baseline() [all …]
|
H A D | cpu_models.c | 587 if (!cpu->model) { in s390_realize_cpu_model() 628 if (!cpu->model) { in get_feature() 681 if (!cpu->model) { in get_feature_group() 724 bitmap_or(cpu->model->features, cpu->model->features, def->feat, in set_feature_group() 727 bitmap_andnot(cpu->model->features, cpu->model->features, def->feat, in set_feature_group() 737 cpu->model = g_malloc0(sizeof(*cpu->model)); in s390_cpu_model_initfn() 742 bitmap_copy(cpu->model->features, cpu->model->def->base_feat, in s390_cpu_model_initfn() 774 cpu->model = g_malloc0(sizeof(*cpu->model)); in s390_qemu_cpu_model_initfn() 776 memcpy(cpu->model, &s390_qemu_cpu_model, sizeof(*cpu->model)); in s390_qemu_cpu_model_initfn() 801 memcpy(cpu->model, max_model, sizeof(*cpu->model)); in s390_max_cpu_model_initfn() [all …]
|
H A D | cpu_models.h | 83 static inline uint16_t s390_ibc_from_cpu_model(const S390CPUModel *model) in s390_ibc_from_cpu_model() argument 87 if (model->def->gen >= S390_GEN_Z10) { in s390_ibc_from_cpu_model() 88 ibc = ((model->def->gen - S390_GEN_Z10) << 4) + model->def->ec_ga; in s390_ibc_from_cpu_model() 107 static inline uint64_t s390_cpuid_from_cpu_model(const S390CPUModel *model) in s390_cpuid_from_cpu_model() argument 109 return ((uint64_t)model->cpu_ver << 56) | in s390_cpuid_from_cpu_model() 110 ((uint64_t)model->cpu_id << CPU_ID_SHIFT) | in s390_cpuid_from_cpu_model() 111 ((uint64_t)model->def->type << 16) | in s390_cpuid_from_cpu_model() 112 (model->def->gen == 7 ? 0 : (uint64_t)model->cpu_id_format << 15); in s390_cpuid_from_cpu_model() 118 bool kvm_s390_get_host_cpu_model(S390CPUModel *model, Error **errp); 119 bool kvm_s390_apply_cpu_model(const S390CPUModel *model, Error **errp);
|
/qemu/qapi/ |
H A D | machine-target.json | 12 # Virtual CPU model. 41 # model will never change, the expanded CPU model will be the 73 # @incompatible: If model A is incompatible to model B, model A is not 76 # @identical: If model A is identical to model B, model A is 79 # @superset: If model A is a superset of model B, model B is 83 # @subset: If model A is a subset of model B, model A is guaranteed to 140 # model of a certain configuration (e.g. the "host" model for KVM). 192 # third model. The created model will always be a static, 196 # model out two CPU models. The created CPU model will be identical 263 # Expands a given CPU model, @model, (or a combination of CPU model + [all …]
|
H A D | tpm.json | 14 # @tpm-tis: TPM TIS model 16 # @tpm-crb: TPM CRB model (since 2.12) 18 # @tpm-spapr: TPM SPAPR model (since 5.0) 152 # @model: The TPM frontend model 160 'model': 'TpmModel',
|
/qemu/target/arm/ |
H A D | arm-qmp-cmds.c | 118 if (!kvm_enabled() && !strcmp(model->name, "host")) { in qmp_query_cpu_model_expansion() 123 oc = cpu_class_by_name(TYPE_ARM_CPU, model->name); in qmp_query_cpu_model_expansion() 126 model->name); in qmp_query_cpu_model_expansion() 133 if (!strcmp(model->name, "host") || !strcmp(model->name, "max")) { in qmp_query_cpu_model_expansion() 140 if (strlen(model->name) == len && in qmp_query_cpu_model_expansion() 141 !strncmp(model->name, cpu_type, len)) { in qmp_query_cpu_model_expansion() 155 if (model->props) { in qmp_query_cpu_model_expansion() 159 visitor = qobject_input_visitor_new(model->props); in qmp_query_cpu_model_expansion() 166 qdict_in = qobject_to(QDict, model->props); in qmp_query_cpu_model_expansion() 194 expansion_info->model = g_malloc0(sizeof(*expansion_info->model)); in qmp_query_cpu_model_expansion() [all …]
|
/qemu/target/loongarch/ |
H A D | loongarch-qmp-cmds.c | 47 CpuModelInfo *model, in qmp_query_cpu_model_expansion() argument 64 if (model->props) { in qmp_query_cpu_model_expansion() 65 visitor = qobject_input_visitor_new(model->props); in qmp_query_cpu_model_expansion() 79 oc = cpu_class_by_name(TYPE_LOONGARCH_CPU, model->name); in qmp_query_cpu_model_expansion() 82 model->name); in qmp_query_cpu_model_expansion() 89 expansion_info->model = g_malloc0(sizeof(*expansion_info->model)); in qmp_query_cpu_model_expansion() 90 expansion_info->model->name = g_strdup(model->name); in qmp_query_cpu_model_expansion() 110 expansion_info->model->props = QOBJECT(qdict_out); in qmp_query_cpu_model_expansion()
|
/qemu/linux-user/s390x/ |
H A D | target_proc.h | 49 S390CPUModel *model = env_archcpu(cpu_env)->model; in show_cpu_summary() local 77 i, model->cpu_ver, cpu_ident(i), model->def->type); in show_cpu_summary() 83 S390CPUModel *model = env_archcpu(cpu_env)->model; in show_cpu_ids() local 85 dprintf(fd, "version : %02X\n", model->cpu_ver); in show_cpu_ids() 87 dprintf(fd, "machine : %04X\n", model->def->type); in show_cpu_ids()
|
/qemu/hw/block/ |
H A D | m25p80_sfdp.c | 14 #define define_sfdp_read(model) \ argument 15 uint8_t m25p80_sfdp_##model(uint32_t addr) \ 17 assert(is_power_of_2(sizeof(sfdp_##model))); \ 18 return sfdp_##model[addr & (sizeof(sfdp_##model) - 1)]; \
|
/qemu/linux-user/alpha/ |
H A D | target_proc.h | 14 char model[32]; in open_cpuinfo() local 21 assert(t < sizeof(model)); in open_cpuinfo() 22 memcpy(model, p, t); in open_cpuinfo() 23 model[t] = 0; in open_cpuinfo() 60 model, TARGET_PAGE_SIZE, TARGET_PHYS_ADDR_SPACE_BITS, in open_cpuinfo()
|
/qemu/target/riscv/ |
H A D | riscv-qmp-cmds.c | 170 CpuModelInfo *model, in qmp_query_cpu_model_expansion() argument 184 oc = cpu_class_by_name(TYPE_RISCV_CPU, model->name); in qmp_query_cpu_model_expansion() 187 model->name); in qmp_query_cpu_model_expansion() 200 if (model->props) { in qmp_query_cpu_model_expansion() 201 riscv_cpuobj_validate_qdict_in(obj, model->props, "model.props", in qmp_query_cpu_model_expansion() 218 expansion_info->model = g_malloc0(sizeof(*expansion_info->model)); in qmp_query_cpu_model_expansion() 219 expansion_info->model->name = g_strdup(model->name); in qmp_query_cpu_model_expansion() 236 expansion_info->model->props = QOBJECT(qdict_out); in qmp_query_cpu_model_expansion()
|
/qemu/target/i386/ |
H A D | cpu-sysemu.c | 154 static X86CPU *x86_cpu_from_model(const char *model, QObject *props, in x86_cpu_from_model() argument 161 xcc = X86_CPU_CLASS(cpu_class_by_name(TYPE_X86_CPU, model)); in x86_cpu_from_model() 163 error_setg(&err, "CPU model '%s' not found", model); in x86_cpu_from_model() 191 CpuModelInfo *model, in qmp_query_cpu_model_expansion() argument 200 xc = x86_cpu_from_model(model->name, model->props, "model.props", &err); in qmp_query_cpu_model_expansion() 206 ret->model = g_new0(CpuModelInfo, 1); in qmp_query_cpu_model_expansion() 207 ret->model->props = QOBJECT(props); in qmp_query_cpu_model_expansion() 220 base_name = model->name; in qmp_query_cpu_model_expansion() 230 ret->model->name = g_strdup(base_name); in qmp_query_cpu_model_expansion()
|
H A D | host-cpu.c | 130 void host_cpu_vendor_fms(char *vendor, int *family, int *model, int *stepping) in host_cpu_vendor_fms() argument 141 if (model) { in host_cpu_vendor_fms() 142 *model = ((eax >> 4) & 0x0F) | ((eax & 0xF0000) >> 12); in host_cpu_vendor_fms() 153 if (xcc->model) { in host_cpu_instance_init() 167 int family, model, stepping; in host_cpu_max_instance_init() local 172 host_cpu_vendor_fms(vendor, &family, &model, &stepping); in host_cpu_max_instance_init() 177 object_property_set_int(OBJECT(cpu), "model", model, &error_abort); in host_cpu_max_instance_init()
|
/qemu/docs/system/ |
H A D | cpu-models-x86.rst.inc | 15 This passes the host CPU model features, model, stepping, exactly to 22 (2) **Named model** 34 model". This uses the QEMU "Named model" feature, automatically picking 417 Host model:: 419 <cpu mode='host-model'/> 421 Host model with feature customization:: 423 <cpu mode='host-model'> 428 Named model:: 431 <model name="Westmere"/> 434 Named model with feature customization:: [all …]
|
H A D | cpu-models-mips.rst.inc | 1 Supported CPU model configurations on MIPS hosts 10 Administrators / applications are recommended to use the CPU model that 13 compatibility is required, use the newest CPU model that is compatible 42 Administrators / applications are recommended to use the CPU model that 45 compatibility is required, use the newest CPU model that is compatible 86 Administrators / applications are recommended to use the CPU model that 89 compatibility is required, use the newest CPU model that is compatible
|
/qemu/net/ |
H A D | net.c | 245 if (strcmp(nc->model, model) == 0) { in assign_name() 272 nc->model = g_strdup(model); in qemu_net_client_setup() 402 g_free(nc->model); in qemu_free_net_client() 1003 if (nic->model) { in net_init_nic() 1004 nd->model = g_strdup(nic->model); in net_init_nic() 1043 const char *model = key; in add_nic_result() local 1134 if ((match_default && !nd->model) || !g_strcmp0(nd->model, typename) in qemu_find_nic_info() 1178 const char *model; in qemu_create_nic_bus_devices() local 1202 model = nd->model ? nd->model : default_model; in qemu_create_nic_bus_devices() 1203 if (!model) { in qemu_create_nic_bus_devices() [all …]
|
H A D | socket.c | 330 const char *model, in net_socket_fd_init_dgram() argument 375 nc = qemu_new_net_client(&net_dgram_socket_info, peer, model, name); in net_socket_fd_init_dgram() 421 const char *model, in net_socket_fd_init_stream() argument 428 nc = qemu_new_net_client(&net_socket_info, peer, model, name); in net_socket_fd_init_stream() 492 const char *model, in net_socket_listen_init() argument 529 nc = qemu_new_net_client(&net_socket_info, peer, model, name); in net_socket_listen_init() 541 const char *model, in net_socket_connect_init() argument 580 s = net_socket_fd_init_stream(peer, model, name, fd, connected); in net_socket_connect_init() 591 const char *model, in net_socket_mcast_init() argument 622 s = net_socket_fd_init_dgram(peer, model, name, fd, 0, NULL, errp); in net_socket_mcast_init() [all …]
|
/qemu/tests/qtest/ |
H A D | pxe-test.c | 27 const char *model; /* NIC device model */ member 81 test->model, extra); in test_pxe_one() 111 if (!qtest_has_device(test->model)) { in test_batch() 116 test->machine, test->model); in test_batch() 122 test->machine, test->model); in test_batch()
|
/qemu/docs/system/devices/ |
H A D | virtio-snd.rst | 33 Add an audio device and an audio backend at once with ``-audio`` and ``model=virtio``: 35 * pulseaudio: ``-audio driver=pa,model=virtio`` 36 or ``-audio driver=pa,model=virtio,server=/run/user/1000/pulse/native`` 37 * sdl: ``-audio driver=sdl,model=virtio`` 38 * coreaudio: ``-audio driver=coreaudio,model=virtio``
|
/qemu/tests/avocado/ |
H A D | cpu_queries.py | 32 model = {'name': c['name']} 33 e = self.vm.cmd('query-cpu-model-expansion', model=model,
|
/qemu/target/s390x/kvm/ |
H A D | kvm.c | 2389 memset(model, 0, sizeof(*model)); in kvm_s390_get_host_cpu_model() 2408 model->cpu_id = cpuid_id(prop.cpuid); in kvm_s390_get_host_cpu_model() 2410 model->cpu_ver = 0xff; in kvm_s390_get_host_cpu_model() 2420 rc = query_cpu_feat(model->features); in kvm_s390_get_host_cpu_model() 2426 rc = query_cpu_subfunc(model->features); in kvm_s390_get_host_cpu_model() 2470 set_bit(S390_FEAT_ZPCI, model->features); in kvm_s390_get_host_cpu_model() 2483 if (!model->def) { in kvm_s390_get_host_cpu_model() 2504 query_uv_feat_guest(model->features); in kvm_s390_get_host_cpu_model() 2507 bitmap_and(model->features, model->features, model->def->full_feat, in kvm_s390_get_host_cpu_model() 2558 if (!model) { in kvm_s390_apply_cpu_model() [all …]
|
/qemu/hw/rtc/ |
H A D | m48t59.c | 72 .model = 2, 76 .model = 8, 80 .model = 59, 198 if ((NVRAM->model == 2 && addr < 0x7f8) || in m48t59_write() 199 (NVRAM->model == 8 && addr < 0x1ff8) || in m48t59_write() 200 (NVRAM->model == 59 && addr < 0x1ff0)) { in m48t59_write() 360 if ((NVRAM->model == 2 && addr < 0x078f) || in m48t59_read() 361 (NVRAM->model == 8 && addr < 0x1ff8) || in m48t59_read() 362 (NVRAM->model == 59 && addr < 0x1ff0)) { in m48t59_read() 569 if (s->model == 59) { in m48t59_realize_common() [all …]
|
/qemu/scripts/ |
H A D | cpu-x86-uarch-abi.py | 88 for model in models: 89 if "alias-of" in model: 91 names.append(model["name"]) 98 model={ "name": name })
|
/qemu/hw/ppc/ |
H A D | mpc8544ds.c | 22 const char model[] = "MPC8544DS"; in mpc8544ds_fixup_devtree() local 25 qemu_fdt_setprop(fdt, "/", "model", model, sizeof(model)); in mpc8544ds_fixup_devtree()
|
/qemu/target/m68k/ |
H A D | cpu-qom.h | 30 #define M68K_CPU_TYPE_NAME(model) model M68K_CPU_TYPE_SUFFIX argument
|