aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-11-29 17:51:47 +0100
committerAvi Kivity <avi@redhat.com>2011-01-12 11:30:04 +0200
commitec9e60b21977007e3dfacc2b8fe3a8fbb9276b51 (patch)
tree419f1a51980fb3cd93ab857d0c47457795fa90ef /arch/x86/include/asm
parent6389ee946303cb4313dba0a49865e495a53351ff (diff)
downloadkernel_samsung_smdk4412-ec9e60b21977007e3dfacc2b8fe3a8fbb9276b51.zip
kernel_samsung_smdk4412-ec9e60b21977007e3dfacc2b8fe3a8fbb9276b51.tar.gz
kernel_samsung_smdk4412-ec9e60b21977007e3dfacc2b8fe3a8fbb9276b51.tar.bz2
KVM: X86: Introduce generic guest-mode representation
This patch introduces a generic representation of guest-mode fpr a vcpu. This currently only exists in the SVM code. Having this representation generic will help making the non-svm code aware of nesting when this is necessary. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 0c0941d..56e45a2 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -779,6 +779,7 @@ enum {
#define HF_VINTR_MASK (1 << 2)
#define HF_NMI_MASK (1 << 3)
#define HF_IRET_MASK (1 << 4)
+#define HF_GUEST_MASK (1 << 5) /* VCPU is in guest-mode */
/*
* Hardware virtualization extension instructions may fault if a