From 2d29ea3b2683cab599f7abcd33f933dff8b804c0 Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Mon, 15 Feb 2021 14:40:55 -0500 Subject: [PATCH] Fix backport of kvm-x86-cleanup-cr3-reserved-bits-checks.patch to 5.10 Signed-off-by: Sasha Levin --- queue-5.10/kvm-x86-cleanup-cr3-reserved-bits-checks.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue-5.10/kvm-x86-cleanup-cr3-reserved-bits-checks.patch b/queue-5.10/kvm-x86-cleanup-cr3-reserved-bits-checks.patch index 1ed091f7501..8f68d8f0ac5 100644 --- a/queue-5.10/kvm-x86-cleanup-cr3-reserved-bits-checks.patch +++ b/queue-5.10/kvm-x86-cleanup-cr3-reserved-bits-checks.patch @@ -83,7 +83,7 @@ index 18a315bbcb79e..3bcde449938e6 100644 || !(sregs->efer & EFER_LMA)) return -EINVAL; + if (sregs->cr3 & vcpu->arch.cr3_lm_rsvd_bits) -+ return false; ++ return -EINVAL; } else { /* * Not in 64-bit mode: EFER.LMA is clear and the code -- 2.47.2