diff options
author | Zhang Xiantao <xiantao.zhang@intel.com> | 2007-11-15 16:07:47 +0100 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 16:53:03 +0100 |
commit | 018d00d2fef27fc65f2917bec8f72b93615c18e1 (patch) | |
tree | f2591e8da457287195e138a62e2d34a8bdfbe14c /drivers/kvm/kvm.h | |
parent | KVM: x86 emulator: modify 'lods', and 'stos' not to depend on CR2 (diff) | |
download | linux-018d00d2fef27fc65f2917bec8f72b93615c18e1.tar.xz linux-018d00d2fef27fc65f2917bec8f72b93615c18e1.zip |
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, unsigned int ioctl, unsigned long arg); void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu); void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu); + +int kvm_dev_ioctl_check_extension(long ext); + int kvm_vm_ioctl_set_memory_region(struct kvm *kvm, struct kvm_userspace_memory_region *mem, |