aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorZhang Xiantao <xiantao.zhang@intel.com>2007-11-15 10:07:47 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:53:03 -0500
commit018d00d2fef27fc65f2917bec8f72b93615c18e1 (patch)
treef2591e8da457287195e138a62e2d34a8bdfbe14c /drivers/kvm/kvm.h
parenta7e6c88a78b7c3d67491bf90b2b95e66437dbdb6 (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.h3
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);
629void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu); 629void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu);
630void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu); 630void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu);
631
632int kvm_dev_ioctl_check_extension(long ext);
633
631int kvm_vm_ioctl_set_memory_region(struct kvm *kvm, 634int 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,