diff options
author | Zhang Xiantao <xiantao.zhang@intel.com> | 2007-11-15 10:07:47 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:03 -0500 |
commit | 018d00d2fef27fc65f2917bec8f72b93615c18e1 (patch) | |
tree | f2591e8da457287195e138a62e2d34a8bdfbe14c /drivers/kvm/kvm.h | |
parent | a7e6c88a78b7c3d67491bf90b2b95e66437dbdb6 (diff) |
KVM: Portability: move KVM_CHECK_EXTENSION
Make KVM_CHECK_EXTENSION code into a function, all archs can define its
capability independently.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Acked-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 96d9c7da14c2..a7be0733bc48 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -628,6 +628,9 @@ long kvm_arch_vcpu_ioctl(struct file *filp, | |||
628 | unsigned int ioctl, unsigned long arg); | 628 | unsigned int ioctl, unsigned long arg); |
629 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu); | 629 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu); |
630 | void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu); | 630 | void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu); |
631 | |||
632 | int kvm_dev_ioctl_check_extension(long ext); | ||
633 | |||
631 | int kvm_vm_ioctl_set_memory_region(struct kvm *kvm, | 634 | int kvm_vm_ioctl_set_memory_region(struct kvm *kvm, |
632 | struct | 635 | struct |
633 | kvm_userspace_memory_region *mem, | 636 | kvm_userspace_memory_region *mem, |