KVM: SVM: use explicit 64bit storage for sysenter values
commit017cb99e875f2d8ff375cbb576c794b081cd0bd5
authorAndre Przywara <andre.przywara@amd.com>
Thu, 28 May 2009 09:56:31 +0000 (28 11:56 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:43 +0000 (10 08:32 +0300)
tree082e502aa174a68f86266e57b55cf35e7d93a13c
parente7333391403b31feb27a05bc0dcd052a471f1276
KVM: SVM: use explicit 64bit storage for sysenter values

Since AMD does not support sysenter in 64bit mode, the VMCB fields storing
the MSRs are truncated to 32bit upon VMRUN/#VMEXIT. So store the values
in a separate 64bit storage to avoid truncation.

[andre: fix amd->amd migration]

Signed-off-by: Christoph Egger <christoph.egger@amd.com>
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/kvm_svm.h
arch/x86/kvm/svm.c