diff mbox series

[kvm-unit-tests] svm: allow CR4.PKS

Message ID 20240603092753.608379-1-pbonzini@redhat.com (mailing list archive)
State New, archived
Headers show
Series [kvm-unit-tests] svm: allow CR4.PKS | expand

Commit Message

Paolo Bonzini June 3, 2024, 9:27 a.m. UTC
While no AMD processor supports PKS yet, QEMU does and this causes a
failure when running SVM tests with TCG.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 x86/svm.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/x86/svm.h b/x86/svm.h
index 308daa55..c1dd84af 100644
--- a/x86/svm.h
+++ b/x86/svm.h
@@ -362,8 +362,8 @@  struct __attribute__ ((__packed__)) vmcb {
 #define	SVM_CR3_LONG_MBZ_MASK			0xfff0000000000000U
 #define	SVM_CR3_LONG_RESERVED_MASK		0x0000000000000fe7U
 #define SVM_CR3_PAE_LEGACY_RESERVED_MASK	0x0000000000000007U
-#define	SVM_CR4_LEGACY_RESERVED_MASK		0xff08e000U
-#define	SVM_CR4_RESERVED_MASK			0xffffffffff08e000U
+#define	SVM_CR4_LEGACY_RESERVED_MASK		0xfe08e000U
+#define	SVM_CR4_RESERVED_MASK			0xfffffffffe08e000U
 #define	SVM_DR6_RESERVED_MASK			0xffffffffffff1ff0U
 #define	SVM_DR7_RESERVED_MASK			0xffffffff0000cc00U
 #define	SVM_EFER_RESERVED_MASK			0xffffffffffff0200U