KVM: Fix NX support reporting
NX support is bit 20, not bit 1. Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
Родитель
19bca6ab75
Коммит
334b8ad7b1
|
@ -1259,7 +1259,7 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
|
||||||
bit(X86_FEATURE_CMOV) | bit(X86_FEATURE_PSE36) |
|
bit(X86_FEATURE_CMOV) | bit(X86_FEATURE_PSE36) |
|
||||||
bit(X86_FEATURE_MMX) | bit(X86_FEATURE_FXSR) |
|
bit(X86_FEATURE_MMX) | bit(X86_FEATURE_FXSR) |
|
||||||
bit(X86_FEATURE_SYSCALL) |
|
bit(X86_FEATURE_SYSCALL) |
|
||||||
(bit(X86_FEATURE_NX) && is_efer_nx()) |
|
(is_efer_nx() ? bit(X86_FEATURE_NX) : 0) |
|
||||||
#ifdef CONFIG_X86_64
|
#ifdef CONFIG_X86_64
|
||||||
bit(X86_FEATURE_LM) |
|
bit(X86_FEATURE_LM) |
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче