KVM: SVM: Handle tsc in svm_get_msr/svm_set_msr correctly
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 16 Sep 2009 13:24:18 +0000 (15:24 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 4 Oct 2009 11:57:23 +0000 (13:57 +0200)
commit20824f30bb0b8ae0a4099895fd4509f54cf2e1e2
tree253c30ec098720c1c2ac69f3bd38967c02d26b7b
parent77b1ab1732feb5e3dcbaf31d2f7547c5229f5f3a
KVM: SVM: Handle tsc in svm_get_msr/svm_set_msr correctly

When running nested we need to touch the l1 guests
tsc_offset. Otherwise changes will be lost or a wrong value
be read.

Cc: stable@kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c