KVM: SVM: set accessed bit for VMCB segment selectors
authorAndre Przywara <andre.przywara@amd.com>
Thu, 26 Mar 2009 23:05:09 +0000 (23:05 +0000)
committerChris Wright <chrisw@sous-sol.org>
Thu, 2 Apr 2009 20:55:16 +0000 (13:55 -0700)
commit0b7f8d0aba7562cb7baa9e92dd5144c11f610595
treec87e08c322c76b61f264c10924a63a27b137ff6b
parentf438349efb8247cd0c1d453a4131b1f801bf5691
KVM: SVM: set accessed bit for VMCB segment selectors

upstream commit: 1fbdc7a58512a6283e10fd27108197679db95ffa

In the segment descriptor _cache_ the accessed bit is always set
(although it can be cleared in the descriptor itself). Since Intel
checks for this condition on a VMENTRY, set this bit in the AMD path
to enable cross vendor migration.

Cc: stable@kernel.org
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Acked-By: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/x86/kvm/svm.c