KVM: SVM: Implement hsave
authorAlexander Graf <agraf@suse.de>
Tue, 25 Nov 2008 19:17:05 +0000 (20:17 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:46 +0000 (11:02 +0200)
commitb286d5d8b0836e76832dafcc5a18b0e8e5a3bc5e
tree5512694ea51b5d435b81763019f3c2c61d6a6b21
parent1371d90460189d02bf1bcca19dbfe6bd10dc6031
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>
arch/x86/kvm/kvm_svm.h
arch/x86/kvm/svm.c
arch/x86/kvm/x86.c