Statistics
| Branch: | Revision:

root / target-i386 @ 26ca8c06

Name Size
Makefile.objs 394 Bytes
TODO 1 kB
arch_dump.c 12 kB
arch_memory_mapping.c 7.7 kB
cc_helper.c 8.9 kB
cc_helper_template.h 7 kB
cpu-qom.h 1.9 kB
cpu.c 75.7 kB
cpu.h 37.1 kB
excp_helper.c 4.1 kB
fpu_helper.c 29.8 kB
helper.c 40.6 kB
helper.h 7.2 kB
hyperv.c 1.2 kB
hyperv.h 1.2 kB
int_helper.c 10.4 kB
ioport-user.c 1.6 kB
kvm-stub.c 375 Bytes
kvm.c 64.9 kB
kvm_i386.h 1.3 kB
machine.c 15.1 kB
mem_helper.c 3.6 kB
misc_helper.c 15 kB
ops_sse.h 70.9 kB
ops_sse_header.h 12.5 kB
seg_helper.c 79.1 kB
shift_helper_template.h 3 kB
smm_helper.c 10.1 kB
svm.h 5.7 kB
svm_helper.c 26.7 kB
translate.c 265.4 kB

Latest revisions

# Date Author Comment
fcb93c03 01/08/2013 10:03 pm Eduardo Habkost

target-i386: kvm: -cpu host: Use GET_SUPPORTED_CPUID for SVM features

The existing -cpu host code simply sets every bit inside svm_features
(initializing it to -1), and that makes it impossible to make the
enforce/check options work properly when the user asks for SVM features...

bd004bef 01/08/2013 10:03 pm Eduardo Habkost

target-i386: kvm: Enable all supported KVM features for -cpu host

When using -cpu host, we don't need to use the kvm_default_features
variable, as the user is explicitly asking QEMU to enable all feature
supported by the host.

This changes the kvm_cpu_fill_host() code to use GET_SUPPORTED_CPUID to...

8b4beddc 01/08/2013 10:03 pm Eduardo Habkost

target-i386: check/enforce: Fix CPUID leaf numbers on error messages

The -cpu check/enforce warnings are printing incorrect information about the
missing flags. There are no feature flags on CPUID leaves 0 and 0x80000000, but
there were references to 0 and 0x80000000 in the table at...

54830ff8 01/08/2013 10:03 pm Eduardo Habkost

target-i386: check/enforce: Do not ignore "hypervisor" flag

We don't need any hack to ignore CPUID_EXT_HYPERVISOR anymore, because
kvm_arch_get_supported_cpuid() now sets CPUID_EXT_HYPERVISOR properly.
So, this shouldn't introduce any behavior change, but it makes the code...

22714625 01/08/2013 10:03 pm Eduardo Habkost

target-i386: check/enforce: Check all CPUID.80000001H.EDX bits

I have no idea why PPRO_FEATURES was being ignored on the check of the
CPUID.80000001H.EDX bits. I believe it was a mistake, and it was
supposed to be ~(PPRO_FEATURES & CPUID_EXT2_AMD_ALIASES) or just...

396d2cfc 01/08/2013 10:03 pm Eduardo Habkost

target-i386: check/enforce: Check SVM flag support as well

When nested SVM is supported, the kernel returns the SVM flag on
GET_SUPPORTED_CPUID1, so we can check the SVM flag safely in
kvm_check_features_against_host().

I don't know why the original code ignored the SVM flag. Maybe it was...

e8beac00 01/08/2013 10:03 pm Eduardo Habkost

target-i386: check/enforce: Eliminate check_feat field

Now that all entries have check_feat=~0 in
kvm_check_features_against_host(), we can eliminate check_feat entirely
and make the code check all bits.

This patch shouldn't introduce any behavior change, as check_feat is set...

4586f157 01/08/2013 10:03 pm Igor Mammedov

target-i386: Filter out unsupported features at realize time

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Igor Mammedov <>
Reviewed-by: Eduardo Habkost <>
Signed-off-by: Andreas Färber <>

9b15cd9e 01/08/2013 10:03 pm Igor Mammedov

target-i386: Sanitize AMD's ext2_features at realize time

When CPU properties are implemented, ext2_features may change
between object_new(CPU) and cpu_realize_fn(). Sanitizing
ext2_features for AMD based CPU at realize() time will keep
current behavior after CPU features are converted to properties....

ebe8b9c6 01/08/2013 10:03 pm Igor Mammedov

target-i386: Explicitly set vendor for each built-in cpudef

Since cpudef config is not supported anymore and all remaining sources
now always set x86_def_t.vendor123 fields, remove setting default
vendor to simplify future re-factoring.

Signed-off-by: Igor Mammedov <>...

View revisions

Also available in: Atom