KVM: Always report x2apic as supported feature
We emulate x2apic in software, so host support is not required. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -1504,6 +1504,9 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
|
|||||||
case 1:
|
case 1:
|
||||||
entry->edx &= kvm_supported_word0_x86_features;
|
entry->edx &= kvm_supported_word0_x86_features;
|
||||||
entry->ecx &= kvm_supported_word4_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;
|
break;
|
||||||
/* function 2 entries are STATEFUL. That is, repeated cpuid commands
|
/* function 2 entries are STATEFUL. That is, repeated cpuid commands
|
||||||
* may return different values. This forces us to get_cpu() before
|
* may return different values. This forces us to get_cpu() before
|
||||||
|
Reference in New Issue
Block a user