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>
Tento commit je obsažen v:
Alexander Graf
2008-11-25 20:17:05 +01:00
odevzdal Avi Kivity
rodič 1371d90460
revize b286d5d8b0
3 změnil soubory, kde provedl 16 přidání a 1 odebrání

Zobrazit soubor

@@ -41,6 +41,8 @@ struct vcpu_svm {
unsigned long host_dr7;
u32 *msrpm;
struct vmcb *hsave;
u64 hsave_msr;
};
#endif