KVM: Lazy guest cr3 switching
authorAvi Kivity <avi@qumranet.com>
Mon, 4 Jun 2007 12:58:30 +0000 (15:58 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:45 +0000 (12:05 +0300)
commit17c3ba9d37dbda490792a2b52953f09d0dee30d6
tree44749b8658b61c7aa6cdb38d7823fa061d24b12c
parentbd2b2baa5c5fbb08b4b0df7508ff419407f7ece6
KVM: Lazy guest cr3 switching

Switch guest paging context may require us to allocate memory, which
might fail.  Instead of wiring up error paths everywhere, make context
switching lazy and actually do the switch before the next guest entry,
where we can return an error if allocation fails.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/mmu.c
drivers/kvm/svm.c
drivers/kvm/vmx.c
This page took 0.030037 seconds and 5 git commands to generate.