KVM: Fetch guest cr3 from hardware on demand
authorAvi Kivity <avi@redhat.com>
Sun, 5 Dec 2010 16:56:11 +0000 (18:56 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:31:16 +0000 (11:31 +0200)
Instead of syncing the guest cr3 every exit, which is expensince on vmx
with ept enabled, sync it only on demand.

[sheng: fix incorrect cr3 seen by Windows XP]

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found