KVM: direct mmio pfn check
authorBen-Ami Yassour <benami@il.ibm.com>
Mon, 28 Jul 2008 16:26:24 +0000 (19:26 +0300)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:17 +0000 (10:15 +0200)
commitcbff90a7caa49507d399c9a55ba4a411e840bfb4
treebadd7eb07475ace6098f0bff66ce296c5ac0f7b7
parent0293615f3fb9886b6b23800c121be293bb7483e9
KVM: direct mmio pfn check

Userspace may specify memory slots that are backed by mmio pages rather than
normal RAM.  In some cases it is not enough to identify these mmio pages
by pfn_valid().  This patch adds checking the PageReserved as well.

Signed-off-by: Ben-Ami Yassour <benami@il.ibm.com>
Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
virt/kvm/kvm_main.c