From: Gleb Natapov Date: Sun, 12 Jul 2009 13:10:55 +0000 (+0300) Subject: KVM: Always report x2apic as supported feature X-Git-Tag: v2.6.32-rc1~693^2~89 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0d1de2d901f4ba0972a3886496a44fb1d3300dbd;p=~emulex%2Finfiniband.git KVM: Always report x2apic as supported feature We emulate x2apic in software, so host support is not required. Signed-off-by: Gleb Natapov Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index e3d9040f215..dfb0e37b3c6 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -1504,6 +1504,9 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, case 1: entry->edx &= kvm_supported_word0_x86_features; entry->ecx &= kvm_supported_word4_x86_features; + /* we support x2apic emulation even if host does not support + * it since we emulate x2apic in software */ + entry->ecx |= F(X2APIC); break; /* function 2 entries are STATEFUL. That is, repeated cpuid commands * may return different values. This forces us to get_cpu() before