aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm.h
diff options
context:
space:
mode:
authorIzik Eidus <izike@qumranet.com>2007-10-02 12:52:55 -0400
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:52:50 -0500
commit82ce2c96831f049a37118733ced5c8f7c8848102 (patch)
tree609fed010ebbb1ced6f0f24698148e69a72da5fd /include/linux/kvm.h
parent195aefde9cc2cee38dd54ef92a866721fba4413e (diff)
KVM: Allow dynamic allocation of the mmu shadow cache size
The user is now able to set how many mmu pages will be allocated to the guest. Signed-off-by: Izik Eidus <izike@qumranet.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r--include/linux/kvm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 057a7f34ee36..d2fd973d81fe 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -347,11 +347,14 @@ struct kvm_signal_mask {
347 */ 347 */
348#define KVM_CAP_IRQCHIP 0 348#define KVM_CAP_IRQCHIP 0
349#define KVM_CAP_HLT 1 349#define KVM_CAP_HLT 1
350#define KVM_CAP_MMU_SHADOW_CACHE_CONTROL 2
350 351
351/* 352/*
352 * ioctls for VM fds 353 * ioctls for VM fds
353 */ 354 */
354#define KVM_SET_MEMORY_REGION _IOW(KVMIO, 0x40, struct kvm_memory_region) 355#define KVM_SET_MEMORY_REGION _IOW(KVMIO, 0x40, struct kvm_memory_region)
356#define KVM_SET_NR_MMU_PAGES _IO(KVMIO, 0x44)
357#define KVM_GET_NR_MMU_PAGES _IO(KVMIO, 0x45)
355/* 358/*
356 * KVM_CREATE_VCPU receives as a parameter the vcpu slot, and returns 359 * KVM_CREATE_VCPU receives as a parameter the vcpu slot, and returns
357 * a vcpu fd. 360 * a vcpu fd.