From: Avi Kivity Date: Sun, 3 May 2009 13:34:21 +0000 (+0300) Subject: KVM: Fix NX support reporting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=334b8ad7b182fc14d720acd7729afda3ab4c7e3a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git KVM: Fix NX support reporting NX support is bit 20, not bit 1. Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 7c1ce5ac6131..834a7bf25e48 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -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_MMX) | bit(X86_FEATURE_FXSR) | bit(X86_FEATURE_SYSCALL) | - (bit(X86_FEATURE_NX) && is_efer_nx()) | + (is_efer_nx() ? bit(X86_FEATURE_NX) : 0) | #ifdef CONFIG_X86_64 bit(X86_FEATURE_LM) | #endif