aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/kvm_svm.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2008-11-25 14:17:05 -0500
committerAvi Kivity <avi@redhat.com>2009-03-24 05:02:46 -0400
commitb286d5d8b0836e76832dafcc5a18b0e8e5a3bc5e (patch)
tree5512694ea51b5d435b81763019f3c2c61d6a6b21 /arch/x86/kvm/kvm_svm.h
parent1371d90460189d02bf1bcca19dbfe6bd10dc6031 (diff)
KVM: SVM: Implement hsave
Implement the hsave MSR, that gives the VCPU a GPA to save the old guest state in. v2 allows userspace to save/restore hsave v4 dummys out the hsave MSR, so we use a host page v6 remembers the guest's hsave and exports the MSR Acked-by: Joerg Roedel <joro@8bytes.org> Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/kvm_svm.h')
-rw-r--r--arch/x86/kvm/kvm_svm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/kvm_svm.h b/arch/x86/kvm/kvm_svm.h
index 8e5ee99551f6..a0877cac7b9c 100644
--- a/arch/x86/kvm/kvm_svm.h
+++ b/arch/x86/kvm/kvm_svm.h
@@ -41,6 +41,8 @@ struct vcpu_svm {
41 unsigned long host_dr7; 41 unsigned long host_dr7;
42 42
43 u32 *msrpm; 43 u32 *msrpm;
44 struct vmcb *hsave;
45 u64 hsave_msr;
44}; 46};
45 47
46#endif 48#endif