aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-07-05 10:39:35 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:33:07 -0400
commitfc61b800f9506ca47bf1439342a79847f2353562 (patch)
treeffb0f568dbb5e88604ceed93e8f1cf2fe544db03 /arch/x86/kvm/x86.c
parentcb24772140e09cb2503af7a4736ae3e08e9ac7d3 (diff)
KVM: Add Directed EOI support to APIC emulation
Directed EOI is specified by x2APIC, but is available even when lapic is in xAPIC mode. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index d32e3c6d3175..086f93137e3c 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -79,8 +79,6 @@ static u64 __read_mostly efer_reserved_bits = 0xfffffffffffffffeULL;
79 79
80static int kvm_dev_ioctl_get_supported_cpuid(struct kvm_cpuid2 *cpuid, 80static int kvm_dev_ioctl_get_supported_cpuid(struct kvm_cpuid2 *cpuid,
81 struct kvm_cpuid_entry2 __user *entries); 81 struct kvm_cpuid_entry2 __user *entries);
82struct kvm_cpuid_entry2 *kvm_find_cpuid_entry(struct kvm_vcpu *vcpu,
83 u32 function, u32 index);
84 82
85struct kvm_x86_ops *kvm_x86_ops; 83struct kvm_x86_ops *kvm_x86_ops;
86EXPORT_SYMBOL_GPL(kvm_x86_ops); 84EXPORT_SYMBOL_GPL(kvm_x86_ops);
@@ -1373,6 +1371,7 @@ static int kvm_vcpu_ioctl_set_cpuid(struct kvm_vcpu *vcpu,
1373 vcpu->arch.cpuid_nent = cpuid->nent; 1371 vcpu->arch.cpuid_nent = cpuid->nent;
1374 cpuid_fix_nx_cap(vcpu); 1372 cpuid_fix_nx_cap(vcpu);
1375 r = 0; 1373 r = 0;
1374 kvm_apic_set_version(vcpu);
1376 1375
1377out_free: 1376out_free:
1378 vfree(cpuid_entries); 1377 vfree(cpuid_entries);
@@ -1394,6 +1393,7 @@ static int kvm_vcpu_ioctl_set_cpuid2(struct kvm_vcpu *vcpu,
1394 cpuid->nent * sizeof(struct kvm_cpuid_entry2))) 1393 cpuid->nent * sizeof(struct kvm_cpuid_entry2)))
1395 goto out; 1394 goto out;
1396 vcpu->arch.cpuid_nent = cpuid->nent; 1395 vcpu->arch.cpuid_nent = cpuid->nent;
1396 kvm_apic_set_version(vcpu);
1397 return 0; 1397 return 0;
1398 1398
1399out: 1399out: