diff options
author | Carsten Otte <cotte@de.ibm.com> | 2007-10-29 11:08:35 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:52:57 -0500 |
commit | 1fe779f8eccd16e527315e1bafd2b3a876ff2489 (patch) | |
tree | 1af54558db85a9dcb8c9a78861849c2798d86cf5 /drivers/kvm/kvm.h | |
parent | b733bfb524af69612f85c36a511f0109c5e3fe8d (diff) |
KVM: Portability: Split kvm_vm_ioctl v3
This patch splits kvm_vm_ioctl into archtecture independent parts, and
x86 specific parts which go to kvm_arch_vcpu_ioctl in x86.c.
The patch is unchanged since last submission.
Common ioctls for all architectures are:
KVM_CREATE_VCPU, KVM_GET_DIRTY_LOG, KVM_SET_USER_MEMORY_REGION
x86 specific ioctls are:
KVM_SET_MEMORY_REGION,
KVM_GET/SET_NR_MMU_PAGES, KVM_SET_MEMORY_ALIAS, KVM_CREATE_IRQCHIP,
KVM_CREATE_IRQ_LINE, KVM_GET/SET_IRQCHIP
KVM_SET_TSS_ADDR
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 3d07d9b1b815..516f79ffd126 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -620,6 +620,13 @@ long kvm_arch_vcpu_ioctl(struct file *filp, | |||
620 | unsigned int ioctl, unsigned long arg); | 620 | unsigned int ioctl, unsigned long arg); |
621 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu); | 621 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu); |
622 | void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu); | 622 | void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu); |
623 | int kvm_vm_ioctl_set_memory_region(struct kvm *kvm, | ||
624 | struct | ||
625 | kvm_userspace_memory_region *mem, | ||
626 | int user_alloc); | ||
627 | long kvm_arch_vm_ioctl(struct file *filp, | ||
628 | unsigned int ioctl, unsigned long arg); | ||
629 | void kvm_arch_destroy_vm(struct kvm *kvm); | ||
623 | 630 | ||
624 | __init void kvm_arch_init(void); | 631 | __init void kvm_arch_init(void); |
625 | 632 | ||