/qemu/target/s390x/ |
H A D | cpu_models_system.c | 27 const S390CPUModel *model, in check_unavailable_features() argument 32 /* check general model compatibility */ in check_unavailable_features() 33 if (max_model->def->gen < model->def->gen || in check_unavailable_features() 34 (max_model->def->gen == model->def->gen && in check_unavailable_features() 35 max_model->def->ec_ga < model->def->ec_ga)) { in check_unavailable_features() 40 bitmap_andnot(missing, model->features, max_model->features, in check_unavailable_features() 49 S390CPUModel *model; member 69 if (cpu_list_data->model) { in create_cpu_model_list() 74 if (sc->model) { in create_cpu_model_list() 76 check_unavailable_features(cpu_list_data->model, sc->model, in create_cpu_model_list() [all …]
|
H A D | cpu_models.c | 92 CPUDEF_INIT(0x3907, 14, 1, 47, 0x08000000U, "z14ZR1", "IBM z14 Model ZR1 GA1"), 106 /* features part of a base model but not relevant for finding a base model */ 167 if (!cpu || !cpu->model) { in s390_get_hmfai() 170 return cpu->model->def->hmfai; in s390_get_hmfai() 181 if (!cpu || !cpu->model) { in s390_get_mha_pow() 184 return cpu->model->def->mha_pow; in s390_get_mha_pow() 196 if (!cpu || !cpu->model) { in s390_get_ibc_val() 199 unblocked_ibc = s390_ibc_from_cpu_model(cpu->model); in s390_get_ibc_val() 200 lowest_ibc = cpu->model->lowest_ibc; in s390_get_ibc_val() 212 if (!cpu || !cpu->model) { in s390_get_feat_block() [all …]
|
H A D | cpu_models.h | 43 /* CPU model based on a CPU definition */ 47 /* values copied from the "host" model, can change during migration */ 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() [all …]
|
/qemu/target/arm/ |
H A D | arm-qmp-cmds.c | 87 * These are cpu model features we want to advertise. The order here 103 CpuModelInfo *model, in qmp_query_cpu_model_expansion() argument 119 if (!kvm_enabled() && !strcmp(model->name, "host")) { in qmp_query_cpu_model_expansion() 120 error_setg(errp, "The CPU type '%s' requires KVM", model->name); in qmp_query_cpu_model_expansion() 124 oc = cpu_class_by_name(TYPE_ARM_CPU, model->name); in qmp_query_cpu_model_expansion() 127 model->name); in qmp_query_cpu_model_expansion() 134 if (!strcmp(model->name, "host") || !strcmp(model->name, "max")) { in qmp_query_cpu_model_expansion() 141 if (strlen(model->name) == len && in qmp_query_cpu_model_expansion() 142 !strncmp(model->name, cpu_type, len)) { in qmp_query_cpu_model_expansion() 149 "with KVM on this host", model->name); in qmp_query_cpu_model_expansion() [all …]
|
/qemu/docs/system/ |
H A D | cpu-models-x86.rst.inc | 1 Recommendations for KVM CPU model configuration on x86 hosts 15 This passes the host CPU model features, model, stepping, exactly to 16 the guest. Note that KVM may filter out some host CPU model features 22 (2) **Named model** 34 model". This uses the QEMU "Named model" feature, automatically picking 35 a CPU model that is similar the host CPU, and then adding extra features 36 to approximate the host model as closely as possible. This does not 51 lists the long term stable CPU model versions (eg Haswell-v4). 52 In addition to what is listed, there are also many CPU model 53 aliases which resolve to a different CPU model version, [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/qapi/ |
H A D | machine.json | 182 # @default-cpu-type: default CPU model typename if none is requested 1923 # Virtual CPU model. 1925 # A CPU model consists of the name of a CPU definition, to which delta 1931 # @name: the name of the CPU definition the model is based on 1944 # An enumeration of CPU model expansion types. 1946 # @static: Expand to a static CPU model, a combination of a static 1947 # base model name and property delta changes. As the static base 1948 # model will never change, the expanded CPU model will be the 1951 # model can be used by tooling without having to specify a 1952 # compatibility machine - e.g. when displaying the "host" 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', 176 # { "model": "tpm-tis",
|
/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() 66 if (!visit_start_struct(visitor, "model.props", NULL, 0, errp)) { 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/target/i386/ |
H A D | cpu-system.c | 43 "model", in x86_cpu_static_props() 45 "model-id", in x86_cpu_static_props() 84 /* Convert CPU model data from X86CPU object to a property dictionary 85 * that can recreate exactly the same CPU model. 98 /* Convert CPU model data from X86CPU object to a property dictionary 99 * that can recreate exactly the same CPU model, including every 153 /* Create X86CPU object according to model+props specification */ 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() [all …]
|
H A D | host-cpu.c | 86 * Get CPUID model ID string from host CPU. 108 void host_cpu_vendor_fms(char *vendor, int *family, int *model, int *stepping) in host_cpu_vendor_fms() argument 115 if (!family && !model && !stepping) { in host_cpu_vendor_fms() 123 if (model) { in host_cpu_vendor_fms() 124 *model = ((eax >> 4) & 0x0F) | ((eax & 0xF0000) >> 12); in host_cpu_vendor_fms() 135 if (xcc->model) { in host_cpu_instance_init() 147 int family, model, stepping; in host_cpu_max_instance_init() local 152 host_cpu_vendor_fms(vendor, &family, &model, &stepping); in host_cpu_max_instance_init() 157 object_property_set_int(OBJECT(cpu), "model", model, &error_abort); in host_cpu_max_instance_init() 160 object_property_set_str(OBJECT(cpu), "model-id", model_id, in host_cpu_max_instance_init()
|
/qemu/scripts/ |
H A D | cpu-x86-uarch-abi.py | 6 # compatibility levels for each CPU model. 65 # the CPU model definitions, as does KVM. 81 "model", 82 "model-id", 88 for model in models: 89 if "alias-of" in model: 91 names.append(model["name"]) 96 cpu = shell.cmd("query-cpu-model-expansion", 98 model={ "name": name }) 101 for (feature, present) in cpu["model"]["props"].items(): [all …]
|
/qemu/tests/functional/ |
H A D | test_cpu_queries.py | 17 Run query-cpu-model-expansion for each CPU model, and validate results 31 model = {'name': c['name']} 32 e = self.vm.cmd('query-cpu-model-expansion', model=model, 34 self.assertEqual(e['model']['name'], c['name'])
|
H A D | test_x86_cpu_model_versions.py | 3 # Basic validation of x86 versioned CPU models and CPU model aliases 30 Validation of PC CPU model versions and CPU model aliases 35 # all aliases must point to a valid CPU model name: 37 … '%s.alias-of (%s) is not a valid CPU model name' % (c['name'], c['alias-of'])) 77 Check if pc-*-4.0 unversioned CPU model won't be reported as aliases 82 # with older QEMU versions that didn't have the versioned CPU model 89 'unversioned Cascadelake-Server CPU model must not be static') 96 'unversioned qemu64 CPU model must not be static') 104 # On pc-*-4.0, no CPU model should be reported as an alias: 110 Check if unversioned CPU model is an alias pointing to right version [all …]
|
/qemu/include/net/ |
H A D | net.h | 103 char *model; member 147 const char *model, 151 const char *model, 155 const char *model, 198 * @match_default: Match NIC configurations with no model specified 199 * @alias: Additional model string to match (for user convenience and 202 * Search for a NIC configuration matching the NIC model constraints. 209 * @match_default: Match NIC configurations with no model specified 210 * @alias: Additional model string to match 228 * @match_default: Match NIC configurations with no model specified [all …]
|
/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/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/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() 36 "cpu model\t\t: %s\n" in open_cpuinfo() 60 model, TARGET_PAGE_SIZE, TARGET_PHYS_ADDR_SPACE_BITS, in open_cpuinfo()
|
/qemu/net/ |
H A D | net.c | 162 qemu_set_info_str(nc, "model=%s,macaddr=%02x:%02x:%02x:%02x:%02x:%02x", in qemu_format_nic_info_str() 163 nc->model, macaddr[0], macaddr[1], macaddr[2], in qemu_format_nic_info_str() 236 static char *assign_name(NetClientState *nc1, const char *model) in assign_name() argument 245 if (strcmp(nc->model, model) == 0) { in assign_name() 250 return g_strdup_printf("%s.%d", model, id); in assign_name() 266 const char *model, in qemu_net_client_setup() argument 272 nc->model = g_strdup(model); in qemu_net_client_setup() 276 nc->name = assign_name(nc, model); in qemu_net_client_setup() 294 const char *model, in qemu_new_net_client() argument 302 qemu_net_client_setup(nc, info, peer, model, name, in qemu_new_net_client() [all …]
|
/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/hw/vmapple/ |
H A D | cfg.c | 52 char model[32]; /* 0x3c0 */ member 64 char *model; member 114 if (!s->model) { in vmapple_cfg_realize() 115 s->model = g_strdup("VM0001"); in vmapple_cfg_realize() 122 set_fixlen_property_or_return(s->cfg.model, s->model, errp, "model"); in vmapple_cfg_realize() 167 DEFINE_PROP_STRING("model", VMAppleCfgState, model),
|
/qemu/scripts/coverity-scan/ |
H A D | model.c | 1 /* Coverity Scan model 15 * This is the source code for our Coverity user model file. The 21 * - A model file can't import any header files. Some built-in primitives are 28 * The model file must be uploaded by an admin in the analysis settings of 132 * model that. See Coverity's realloc() model in g_realloc_n() 220 * model that. See Coverity's realloc() model in g_realloc()
|
/qemu/python/qemu/qmp/ |
H A D | models.py | 21 class Model: class 23 Abstract data model, representing some QMP object of some kind. 55 class Greeting(Model): 83 class QMPGreeting(Model): 105 class ErrorResponse(Model): 127 class ErrorInfo(Model):
|
/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()
|
H A D | arm-cpu-features.c | 25 #define QUERY_HEAD "{ 'execute': 'query-cpu-model-expansion', " \ 31 return qtest_qmp(qts, QUERY_HEAD "'model': { 'name': %s }" in do_query_no_props() 49 resp = qtest_qmp(qts, QUERY_HEAD "'model': { 'name': %s, " in do_query() 97 if (!qdict_haskey(qdict, "model")) { in resp_has_props() 100 qdict = qdict_get_qdict(qdict, "model"); in resp_has_props() 113 qdict = qdict_get_qdict(qdict, "model"); in resp_get_props() 191 resp = qtest_qmp(qts, "{ 'execute': 'query-cpu-model-expansion', " in assert_type_full() 193 "'model': { 'name': 'foo' }}}"); in assert_type_full() 207 resp = qtest_qmp(qts, "{ 'execute': 'query-cpu-model-expansion', " in assert_bad_props() 209 "'model': { 'name': %s, " in assert_bad_props() [all …]
|