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)
commit1755fbcc6666906cada43c1c839ca1fc6616d4a6
tree2f878da8de7c7e9043337d7ee028116b0c397829
parent38c335f1f57bd9edc3cd894e8f5f3fc133320ad3
KVM: MMU: Introduce gfn_to_gpa()

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