diff options
author | Avi Kivity <avi@qumranet.com> | 2007-12-26 06:57:04 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 11:01:20 -0500 |
commit | 774ead3ad9bcbc05ef6aaebb9bdf8b4c3126923b (patch) | |
tree | 0395ee65292f99bd43ab2cd07beb554d99cb096f /arch/x86/kvm/x86.c | |
parent | b93463aa59d67b21b4921e30bd5c5dcc7c35ffbd (diff) |
KVM: Disable vapic support on Intel machines with FlexPriority
FlexPriority accelerates the tpr without any patching.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index e7eac27adb7f..1f48ec871035 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -684,9 +684,11 @@ int kvm_dev_ioctl_check_extension(long ext) | |||
684 | case KVM_CAP_USER_MEMORY: | 684 | case KVM_CAP_USER_MEMORY: |
685 | case KVM_CAP_SET_TSS_ADDR: | 685 | case KVM_CAP_SET_TSS_ADDR: |
686 | case KVM_CAP_EXT_CPUID: | 686 | case KVM_CAP_EXT_CPUID: |
687 | case KVM_CAP_VAPIC: | ||
688 | r = 1; | 687 | r = 1; |
689 | break; | 688 | break; |
689 | case KVM_CAP_VAPIC: | ||
690 | r = !kvm_x86_ops->cpu_has_accelerated_tpr(); | ||
691 | break; | ||
690 | default: | 692 | default: |
691 | r = 0; | 693 | r = 0; |
692 | break; | 694 | break; |