From: Avi Kivity Date: Fri, 30 Mar 2007 11:02:32 +0000 (+0300) Subject: KVM: Simply gfn_to_page() X-Git-Tag: v2.6.22-rc1~1008^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=954bbbc236afe23b368abdf4942f313a5f6e1d50;p=pandora-kernel.git 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: Avi Kivity --- Reading git-diff-tree failed