Skip to content
Commit 954bbbc2 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: Simply gfn_to_page()



Mapping a guest page to a host page is a common operation.  Currently,
one has first to find the memory slot where the page belongs (gfn_to_memslot),
then locate the page itself (gfn_to_page()).

This is clumsy, and also won't work well with memory aliases.  So simplify
gfn_to_page() not to require memory slot translation first, and instead do it
internally.

Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent e0fa826f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment