Statistics
| Branch: | Revision:

root / target-i386 @ 1c90ef26

Name Size
Makefile.objs 414 Bytes
TODO 1 kB
arch_dump.c 12.4 kB
arch_memory_mapping.c 8 kB
cc_helper.c 10.1 kB
cc_helper_template.h 6.6 kB
cpu-qom.h 3.8 kB
cpu.c 91.3 kB
cpu.h 39.7 kB
excp_helper.c 4.1 kB
fpu_helper.c 29.8 kB
gdbstub.c 7.8 kB
helper.c 41.2 kB
helper.h 7.3 kB
int_helper.c 10.5 kB
ioport-user.c 1.6 kB
kvm-stub.c 696 Bytes
kvm.c 73 kB
kvm_i386.h 1.3 kB
machine.c 21.3 kB
mem_helper.c 3.8 kB
misc_helper.c 16.3 kB
ops_sse.h 73.4 kB
ops_sse_header.h 13 kB
seg_helper.c 80.5 kB
shift_helper_template.h 2.8 kB
smm_helper.c 10.6 kB
svm.h 5.7 kB
svm_helper.c 27.1 kB
topology.h 4.8 kB
translate.c 271 kB

Latest revisions

# Date Author Comment
234cc647 02/03/2014 06:33 pm Paolo Bonzini

KVM: fix coexistence of KVM and Hyper-V leaves

kvm_arch_init_vcpu's initialization of the KVM leaves at 0x40000100
is broken, because KVM_CPUID_FEATURES is left at 0x40000001. Move
it to 0x40000101 if Hyper-V is enabled.

Signed-off-by: Paolo Bonzini <>

7bc3d711 02/03/2014 06:33 pm Paolo Bonzini

kvm: make availability of Hyper-V enlightenments dependent on KVM_CAP_HYPERV

The MS docs specify HV_X64_MSR_HYPERCALL as a mandatory interface,
thus we must provide the MSRs even if the user only specified
features that, like relaxed timing, in principle don't require them....

1c90ef26 02/03/2014 06:33 pm Vadim Rozenfeld

kvm: make hyperv hypercall and guest os id MSRs migratable.

Signed-off-by: Vadim Rozenfeld <>
Signed-off-by: Paolo Bonzini <>

81e20770 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_cpu_fill_host(): Kill unused code

Those host_cpuid() calls are useless. They are leftovers from when the
old code using host_cpuid() was removed.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Paolo Bonzini <>

7171a393 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_cpu_fill_host(): No need to check level

There's no need to check level (CPUID0.EAX) before calling
kvm_arch_get_supported_cpuid(s, 0x7, 0, R_EBX), because:

  • The kernel won't return any entry for CPUID 7 if CPUID0.EAX is < 7
    on the host (See kvm_dev_ioctl_get_cpuid() on the kernel code);...
b73dcfb1 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_cpu_fill_host(): No need to check CPU vendor

There's no need to check CPU vendor before calling
kvm_arch_get_supported_cpuid(s, 0xC0000000, 0, R_EAX), because:

  • The kernel won't return any entry for 0xC0000000 if host CPU vendor
    is not Centaur (See kvm_dev_ioctl_get_cpuid() on the kernel code);...
803a9327 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_cpu_fill_host(): No need to check xlevel2

There's no need to check CPU xlevel2 before calling
kvm_arch_get_supported_cpuid(s, 0xC0000001, 0, R_EDX), because:

  • The kernel won't return any entry for 0xC0000000 if host CPU vendor
    is not Centaur (See kvm_dev_ioctl_get_supported_cpuid() on the kernel...
2a573259 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_cpu_fill_host(): Set all feature words at end of function

Reorder the code so all the code that sets x86_cpu_def->features is at
the end of the function.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Paolo Bonzini <>

2bc65d2b 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_cpu_fill_host(): Fill feature words in a loop

Now that the kvm_cpu_fill_host() code is simplified, we can simply set
the feature word array using a simple loop.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Paolo Bonzini <>

f0b9b111 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_check_features_against_host(): Kill feature word array

We don't need the ft[] array on kvm_check_features_against_host()
anymore, as we can simply use the feature_word_info[] array, that has
everything we need.

Signed-off-by: Eduardo Habkost <>...

View revisions

Also available in: Atom