]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: MMU: Make gfn_to_page() always safe
authorIzik Eidus <avi@qumranet.com>
Wed, 17 Oct 2007 17:17:48 +0000 (19:17 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:54 +0000 (17:52 +0200)
commitcea7bb21280e3a825e64b54740edc5d3e6e4193c
treed9714d8c13491a433951b83a176f2a04f6521009
parent9647c14c98687d0abf5197e74b9d1448ab6ebb95
KVM: MMU: Make gfn_to_page() always safe

In case the page is not present in the guest memory map, return a dummy
page the guest can scribble on.

This simplifies error checking in its users.

Signed-off-by: Izik Eidus <izike@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/mmu.c
drivers/kvm/paging_tmpl.h