KVM: fix coexistence of KVM and Hyper-V leaves
kvm_arch_init_vcpu's initialization of the KVM leaves at 0x40000100is broken, because KVM_CPUID_FEATURES is left at 0x40000001. Moveit to 0x40000101 if Hyper-V is enabled.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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 specifiedfeatures that, like relaxed timing, in principle don't require them....
kvm: make hyperv hypercall and guest os id MSRs migratable.
Signed-off-by: Vadim Rozenfeld <vrozenfe@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
kvm: make hyperv vapic assist page migratable
kvm: add support for hyper-v timers
http://msdn.microsoft.com/en-us/library/windows/hardware/ff541625%28v=vs.85%29.aspx
This code is generic for activating reference time counter or virtual reference time stamp counter
Signed-off-by: Vadim Rozenfeld <vrozenfe@redhat.com>...
target-i386: Eliminate CONFIG_KVM #ifdefs
The compiler is already able to eliminate the kvm_arch_get_supported_cpuid()calls in kvm_cpu_fill_host() and filter_features_for_kvm(), so we caneliminate the CONFIG_KVM #ifdefs there.
Also, kvm_cpu_fill_host() and host_cpuid() don't need to check...
target-i386: Don't change x86_def_t struct on cpu_x86_register()
As eventually the x86_def_t data is going to be provided by the CPUclass, it's better to not touch it, and handle the special cases on theX86CPU object itself.
Current behavior of the code should stay exactly the same....
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 setthe feature word array using a simple loop.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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 haseverything we need.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>...
kvm: print suberror on all internal errors
KVM introduced internal error exit reason and suberror at the same time,and later extended it with internal error data.QEMU does not report suberror on hosts between these two events becausewe check for the extension. (half a year in 2009, but it is misleading)...
View all revisions | View revisions
Also available in: Atom