From: Joerg Roedel<joro@xxxxxxxxxx>
This patch introduces a new pointer which always points to
the VMCB used for running the L1 guest.
Signed-off-by: Joerg Roedel<joro@xxxxxxxxxx>
---
arch/x86/kvm/svm.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 475d1c9..3d5990f 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -113,7 +113,9 @@ static u32 msrpm_offsets[MSRPM_OFFSETS] __read_mostly;
struct vcpu_svm {
struct kvm_vcpu vcpu;
struct vmcb *vmcb;
+ struct vmcb *host_vmcb;
unsigned long vmcb_pa;
+ unsigned long host_vmcb_pa;