diff options
author | Izik Eidus <izike@qumranet.com> | 2007-10-24 18:29:55 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:52:56 -0500 |
commit | cbc9402297b9a233981f74587786364cda21c771 (patch) | |
tree | 35ba97693ffc506bb08f6bafa9e61a260bc8189f /include/linux | |
parent | e0d62c7f48605119a7f9fa632e77561c89928963 (diff) |
KVM: Add ioctl to tss address from userspace,
Currently kvm has a wart in that it requires three extra pages for use
as a tss when emulating real mode on Intel. This patch moves the allocation
internally, only requiring userspace to tell us where in the physical address
space we can place the tss.
Signed-off-by: Izik Eidus <izike@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kvm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 971f465e26fa..71d33d62944f 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -358,6 +358,7 @@ struct kvm_signal_mask { | |||
358 | #define KVM_CAP_HLT 1 | 358 | #define KVM_CAP_HLT 1 |
359 | #define KVM_CAP_MMU_SHADOW_CACHE_CONTROL 2 | 359 | #define KVM_CAP_MMU_SHADOW_CACHE_CONTROL 2 |
360 | #define KVM_CAP_USER_MEMORY 3 | 360 | #define KVM_CAP_USER_MEMORY 3 |
361 | #define KVM_CAP_SET_TSS_ADDR 4 | ||
361 | 362 | ||
362 | /* | 363 | /* |
363 | * ioctls for VM fds | 364 | * ioctls for VM fds |
@@ -367,6 +368,7 @@ struct kvm_signal_mask { | |||
367 | #define KVM_GET_NR_MMU_PAGES _IO(KVMIO, 0x45) | 368 | #define KVM_GET_NR_MMU_PAGES _IO(KVMIO, 0x45) |
368 | #define KVM_SET_USER_MEMORY_REGION _IOW(KVMIO, 0x46,\ | 369 | #define KVM_SET_USER_MEMORY_REGION _IOW(KVMIO, 0x46,\ |
369 | struct kvm_userspace_memory_region) | 370 | struct kvm_userspace_memory_region) |
371 | #define KVM_SET_TSS_ADDR _IO(KVMIO, 0x47) | ||
370 | /* | 372 | /* |
371 | * KVM_CREATE_VCPU receives as a parameter the vcpu slot, and returns | 373 | * KVM_CREATE_VCPU receives as a parameter the vcpu slot, and returns |
372 | * a vcpu fd. | 374 | * a vcpu fd. |