aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/x86.c')
-rw-r--r--drivers/kvm/x86.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/kvm/x86.c b/drivers/kvm/x86.c
index bbfa810bf8bd..609792637fb4 100644
--- a/drivers/kvm/x86.c
+++ b/drivers/kvm/x86.c
@@ -599,6 +599,26 @@ void decache_vcpus_on_cpu(int cpu)
599 spin_unlock(&kvm_lock); 599 spin_unlock(&kvm_lock);
600} 600}
601 601
602int kvm_dev_ioctl_check_extension(long ext)
603{
604 int r;
605
606 switch (ext) {
607 case KVM_CAP_IRQCHIP:
608 case KVM_CAP_HLT:
609 case KVM_CAP_MMU_SHADOW_CACHE_CONTROL:
610 case KVM_CAP_USER_MEMORY:
611 case KVM_CAP_SET_TSS_ADDR:
612 r = 1;
613 break;
614 default:
615 r = 0;
616 break;
617 }
618 return r;
619
620}
621
602long kvm_arch_dev_ioctl(struct file *filp, 622long kvm_arch_dev_ioctl(struct file *filp,
603 unsigned int ioctl, unsigned long arg) 623 unsigned int ioctl, unsigned long arg)
604{ 624{