KVM: Simply gfn_to_page()
authorAvi Kivity <avi@qumranet.com>
Fri, 30 Mar 2007 11:02:32 +0000 (14:02 +0300)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:28 +0000 (10:52 +0300)
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: Avi Kivity <avi@qumranet.com>

No differences found