KVM: MMU: Introduce gfn_to_gpa()
authorAvi Kivity <avi@qumranet.com>
Wed, 21 Nov 2007 12:44:45 +0000 (14:44 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:11 +0000 (17:53 +0200)
Converting a frame number to an address is tricky since the data type changes
size.  Introduce a function to do it.  This fixes an actual bug when
accessing guest ptes.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/paging_tmpl.h

Simple merge
Simple merge