From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Xu Subject: [RFC PATCH 2/2] kvm: add new cap KVM_CAP_GSI_EVENTFD Date: Wed, 8 Feb 2017 15:58:46 +0800 Message-ID: <1486540726-15954-3-git-send-email-peterx@redhat.com> References: <1486540726-15954-1-git-send-email-peterx@redhat.com> Cc: Paolo Bonzini , peterx@redhat.com, =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:55126 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932387AbdBHH7C (ORCPT ); Wed, 8 Feb 2017 02:59:02 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EECF43A769D for ; Wed, 8 Feb 2017 07:59:02 +0000 (UTC) In-Reply-To: <1486540726-15954-1-git-send-email-peterx@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: This is corresponding capability bit for the newly introduced KVM_GSI_ROUTING_EVENTFD type. Currently it only works for x86. Signed-off-by: Peter Xu --- arch/x86/kvm/x86.c | 1 + include/uapi/linux/kvm.h | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 51ccfe0..73428029 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2633,6 +2633,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) case KVM_CAP_DISABLE_QUIRKS: case KVM_CAP_SET_BOOT_CPU_ID: case KVM_CAP_SPLIT_IRQCHIP: + case KVM_CAP_GSI_EVENTFD: #ifdef CONFIG_KVM_DEVICE_ASSIGNMENT case KVM_CAP_ASSIGN_DEV_IRQ: case KVM_CAP_PCI_2_3: diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index efe530c..7e7854d 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -871,6 +871,7 @@ struct kvm_ppc_smmu_info { #define KVM_CAP_S390_USER_INSTR0 130 #define KVM_CAP_MSI_DEVID 131 #define KVM_CAP_PPC_HTM 132 +#define KVM_CAP_GSI_EVENTFD 133 #ifdef KVM_CAP_IRQ_ROUTING -- 2.7.4