KVM: Allow kernel to select size of mmap() buffer
authorAvi Kivity <avi@qumranet.com>
Wed, 7 Mar 2007 11:05:38 +0000 (13:05 +0200)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:24 +0000 (10:52 +0300)
commit07c45a366d89f8eaec5d9890e810171b408f9a52
tree2f54f8c4ba795a1432ee6ac2e8042a472b87550a
parent1961d276c877b99f5f16aaf36377c75e0e191c3a
KVM: Allow kernel to select size of mmap() buffer

This allows us to store offsets in the kernel/user kvm_run area, and be
sure that userspace has them mapped.  As offsets can be outside the
kvm_run struct, userspace has no way of knowing how much to mmap.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c
include/linux/kvm.h