diff options
author | Avi Kivity <avi@qumranet.com> | 2007-03-07 06:05:38 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-03 03:52:24 -0400 |
commit | 07c45a366d89f8eaec5d9890e810171b408f9a52 (patch) | |
tree | 2f54f8c4ba795a1432ee6ac2e8042a472b87550a /include | |
parent | 1961d276c877b99f5f16aaf36377c75e0e191c3a (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kvm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index c0d10cd8088e..dad90816cad8 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -253,6 +253,10 @@ struct kvm_signal_mask { | |||
253 | * return is 1 (yes) or 0 (no, sorry). | 253 | * return is 1 (yes) or 0 (no, sorry). |
254 | */ | 254 | */ |
255 | #define KVM_CHECK_EXTENSION _IO(KVMIO, 0x03) | 255 | #define KVM_CHECK_EXTENSION _IO(KVMIO, 0x03) |
256 | /* | ||
257 | * Get size for mmap(vcpu_fd) | ||
258 | */ | ||
259 | #define KVM_GET_VCPU_MMAP_SIZE _IO(KVMIO, 0x04) /* in bytes */ | ||
256 | 260 | ||
257 | /* | 261 | /* |
258 | * ioctls for VM fds | 262 | * ioctls for VM fds |