diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-07-20 22:42:48 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:33:16 -0400 |
commit | b927a3cec081a605142f5b7e90b730611bee28b1 (patch) | |
tree | ed7609e83e89c0830d568aa8304200cdb0c58736 /include | |
parent | b792c344dfd57ee2cf737440e4a9b4a5bc39d1db (diff) |
KVM: VMX: Introduce KVM_SET_IDENTITY_MAP_ADDR ioctl
Now KVM allow guest to modify guest's physical address of EPT's identity mapping page.
(change from v1, discard unnecessary check, change ioctl to accept parameter
address rather than value)
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'include')
-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 230a91aa61c9..f8f8900fc5ec 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -435,6 +435,7 @@ struct kvm_ioeventfd { | |||
435 | #define KVM_CAP_PIT_STATE2 35 | 435 | #define KVM_CAP_PIT_STATE2 35 |
436 | #endif | 436 | #endif |
437 | #define KVM_CAP_IOEVENTFD 36 | 437 | #define KVM_CAP_IOEVENTFD 36 |
438 | #define KVM_CAP_SET_IDENTITY_MAP_ADDR 37 | ||
438 | 439 | ||
439 | #ifdef KVM_CAP_IRQ_ROUTING | 440 | #ifdef KVM_CAP_IRQ_ROUTING |
440 | 441 | ||
@@ -512,6 +513,7 @@ struct kvm_irqfd { | |||
512 | #define KVM_SET_USER_MEMORY_REGION _IOW(KVMIO, 0x46,\ | 513 | #define KVM_SET_USER_MEMORY_REGION _IOW(KVMIO, 0x46,\ |
513 | struct kvm_userspace_memory_region) | 514 | struct kvm_userspace_memory_region) |
514 | #define KVM_SET_TSS_ADDR _IO(KVMIO, 0x47) | 515 | #define KVM_SET_TSS_ADDR _IO(KVMIO, 0x47) |
516 | #define KVM_SET_IDENTITY_MAP_ADDR _IOW(KVMIO, 0x48, __u64) | ||
515 | /* Device model IOC */ | 517 | /* Device model IOC */ |
516 | #define KVM_CREATE_IRQCHIP _IO(KVMIO, 0x60) | 518 | #define KVM_CREATE_IRQCHIP _IO(KVMIO, 0x60) |
517 | #define KVM_IRQ_LINE _IOW(KVMIO, 0x61, struct kvm_irq_level) | 519 | #define KVM_IRQ_LINE _IOW(KVMIO, 0x61, struct kvm_irq_level) |