aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>2020-04-09 16:50:34 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-04-16 09:59:19 -0400
commit33a6576c6e1bfd98fd35402c9f64dfd7537dd2ff (patch)
tree1e455ed86b20617c64e0bd575367dcfcd1ed7de2
parent4b4fb247215957fe57a9ebd04bc4e73e1d0ade33 (diff)
downloadkvm-unit-tests-33a6576c6e1bfd98fd35402c9f64dfd7537dd2ff.tar.gz
kvm-unit-tests: SVM: Add #defines for CR0.CD and CR0.NW
Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com> Message-Id: <20200409205035.16830-3-krish.sadhukhan@oracle.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--lib/x86/processor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/x86/processor.h b/lib/x86/processor.h
index 3adddee..804673b 100644
--- a/lib/x86/processor.h
+++ b/lib/x86/processor.h
@@ -32,6 +32,8 @@
#define X86_CR0_TS 0x00000008
#define X86_CR0_WP 0x00010000
#define X86_CR0_AM 0x00040000
+#define X86_CR0_NW 0x20000000
+#define X86_CR0_CD 0x40000000
#define X86_CR0_PG 0x80000000
#define X86_CR3_PCID_MASK 0x00000fff
#define X86_CR4_TSD 0x00000004