commit | 17c3ba9d37dbda490792a2b52953f09d0dee30d6 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@qumranet.com> | Mon Jun 04 15:58:30 2007 +0300 |
committer | Avi Kivity <avi@qumranet.com> | Mon Jul 16 12:05:45 2007 +0300 |
tree | 44749b8658b61c7aa6cdb38d7823fa061d24b12c | |
parent | bd2b2baa5c5fbb08b4b0df7508ff419407f7ece6 [diff] |
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>