History | View | Annotate | Download (58.5 kB)
target-i386: Use QEMU instead of Qemu
This new 'QEmu' was recently added.Replace it by the official all upper case 'QEMU'.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Allow machines to configure the QEMU_VERSION that's exposed via hardware
QEMU exposes its version to the guest's hardware and in some cases that is wrong(e.g. Windows prints messages about driver updates when you switchthe QEMU version).There is a new field now on the struct QEmuMachine, hw_version, which may...
target-i386: Use uint32 visitor for [x]level properties
This simplifies the code and resolves TODOs.
Signed-off-by: Andreas Färber <afaerber@suse.de>Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Expose CPUID leaf 7 only for -cpu host
Changes v2 -> v3; - Check for kvm_enabled() before setting cpuid_7_0_ebx_features
Changes v1 -> v2: - Use kvm_arch_get_supported_cpuid() instead of host_cpuid() on cpu_x86_fill_host().
We should use GET_SUPPORTED_CPUID for all bits on "-cpu host"...
target-i386: Defer MCE init
Commit de024815e3b523addf58f1f79846b7fe74643678 (target-i386: QOM'ifyCPU init) moved mce_init() call from helper.c:cpu_x86_init() intoX86CPU's cpu.c:x86_cpu_initfn().mce_init() checks for a family >= 6 though, so we could end up with a...
target-i386: Introduce "xlevel" property for X86CPU
Signed-off-by: Andreas Färber <afaerber@suse.de>Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>Reviewed-by: Igor Mammedov <imammedo@redhat.com>
target-i386: Prepare "vendor" property for X86CPU
Using it now would incur converting the three x86_def_t vendor wordsinto a string for object_property_set_str(), then back to three wordsin the "vendor" setter.The built-in CPU definitions use numeric preprocessor defines to...
target-i386: Introduce "tsc-frequency" property for X86CPU
Use Hz as unit.
target-i386: Pass X86CPU to cpu_x86_register()
Avoids an x86_env_get_cpu() call there, to work with QOM properties.
target-i386: Add range check for -cpu ,family=x
A family field value of 0xf and extended family field value of 0xff isthe maximum representable unsigned family number.All other CPUID property values are bounds-checked, so add a check herefor symmetry before we adopt it in a property setter....
target-i386: Add "family" property to X86CPU
Add the property early in the initfn so that it can be used in helperssuch as mce_init().
Signed-off-by: Andreas Färber <afaerber@suse.de>Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>[AF: Add an error_free(), spotted by Michael Roth]...
target-i386: Add "model" property to X86CPU
target-i386: Add "stepping" property to X86CPU
target-i386: Add "model-id" property to X86CPU
target-i386: Add property getter for CPU family
target-i386: Add property getter for CPU model
Signed-off-by: Andreas Färber <afaerber@suse.de>Reviewed-by: Igor Mammedov <imammedo@redhat.com>Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-i386: Add property getter for CPU stepping
target-i386: Add property getter for CPU model-id
target-i386: Introduce "level" property for X86CPU
target-i386: Fix x86_cpuid_set_model_id()
Don't assume zeroed cpuid_model[] fields.
This didn't break anything yet but QOM properties should be able to setthe value to something else without setting an intermediate zero string.
Reviewed-by: Eduardo Habhost <ehabkost@redhat.com>...
target-i386: Rename cpuid.c
Name it cpu.c to align with other QOM'ified targets.
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386: QOM'ify CPU
Embed CPUX86State as first member of X86CPU.Distinguish between "x86_64-cpu" and "i386-cpu".Drop cpu_x86_close() in favor of calling object_delete() directly.
For now let CPUClass::reset() call cpu_state_reset().
target-i386: QOM'ify CPU init
Move code from cpu_x86_init() to new QOM x86_cpu_initfn().Also move mce_init() to cpu.c since it's used nowhere else.
target-i386: QOM'ify CPU reset
Move code from cpu_state_reset() into QOM x86_cpu_reset(),fixing style issues for FPU init.