• Avi Kivity's avatar
    KVM: Lazy guest cr3 switching · 17c3ba9d
    Avi Kivity authored
    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: default avatarAvi Kivity <avi@qumranet.com>
    17c3ba9d
vmx.c 57.5 KB