Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp867862ybb; Fri, 20 Mar 2020 09:21:48 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsTPqcCZvWdNa/2Z+8ZXgXSPjc5ps49YgK906mvQQGjzgllY5OD2eUhUSVXC/mCKaxWBM2r X-Received: by 2002:aca:7285:: with SMTP id p127mr6952418oic.32.1584721308475; Fri, 20 Mar 2020 09:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584721308; cv=none; d=google.com; s=arc-20160816; b=M7vvviiCBM8vDx/ASTA3x9Ty5DRf95QbSkkzZi2dztMaNuSCPn44azY+lIbFtlizI3 PcPxZ7V/LKj6CtekG2j6JUBwXyAyU8enX6HygQtf+rK23gF0NZzd12qsFOSJl+NiHv4T eKkrpRRLYoeDCvMjYhdVWOGHhpDYVDB6CPRy+O4Hek3RjPLMvjXnv7nPU0XAvo/sOa3D NWymqYvB2zgUCIYm4rkSqd/nGptCPzs1YvozBskVBc9RVdLnvPGSbhJ1xvGSVhoCDkNd QIf6FNMN9C7Zd0EdM8ZIum6eww3DHhcRkYlmV/aC54AJBeaJWMzNzy/mnjm2A+/UCxj6 Alrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=j6wpkVOhrALhliBcm/nB+srGGCIEf6rmi76ebuGZLJI=; b=QTiVdYgT+fhsJ4rp3kn2Q4/FdYpVgBnulzBESOS8duoNVtpwL7PBjL88p6SgBtk+/9 Y3M0Fuk89wKYarKBEBLi6PDXMf9vGrhNJ2vN7pj3lwJ2Z58KjNTdoVgkqqL89JRq/L05 hqowLIdksD7ATTNV7qjw+vedHBSrpNhGQ+g7Ipi9qPHrVCjwMVfLFWhSm7caid/pXzYD l9FnXDC6Z0xhoppWGCiRqO02+37gy7MrflGyJ0bVBMTOjeZWC7apZG15BayxH4mqBY8I LP9HU4Y7gAUHkj4198yin2NhcGfSpX/l5k2YCHDw9McYAZmvXDKViH3gejm9fk7ZypMQ P2xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VRP4SnYj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si3168961otq.138.2020.03.20.09.21.34; Fri, 20 Mar 2020 09:21:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VRP4SnYj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727787AbgCTQUp (ORCPT + 99 others); Fri, 20 Mar 2020 12:20:45 -0400 Received: from us-smtp-delivery-74.mimecast.com ([63.128.21.74]:43649 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727773AbgCTQUp (ORCPT ); Fri, 20 Mar 2020 12:20:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584721244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j6wpkVOhrALhliBcm/nB+srGGCIEf6rmi76ebuGZLJI=; b=VRP4SnYjArmPyzRBiq6sx3pkXHXu0wapKjwnIq90kfCvJE5zOXjC6cc8/THZCsNxtqjKts bQssD+ouABiwI+kZVBwaXLUkal00cnQaD4qWF7WJJZTOymn9Im3yMyVsvE9/3DQfSI2M1Q //08MnRaNhix4qnl/6MQ9YTPAANr724= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-100-k3ftg87EOhmwm3wzeLtrDg-1; Fri, 20 Mar 2020 12:20:39 -0400 X-MC-Unique: k3ftg87EOhmwm3wzeLtrDg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 39735108443A; Fri, 20 Mar 2020 16:20:37 +0000 (UTC) Received: from laptop.redhat.com (ovpn-113-142.ams2.redhat.com [10.36.113.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id DCE5760BFB; Fri, 20 Mar 2020 16:20:27 +0000 (UTC) From: Eric Auger To: eric.auger.pro@gmail.com, eric.auger@redhat.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, joro@8bytes.org, alex.williamson@redhat.com, jacob.jun.pan@linux.intel.com, yi.l.liu@intel.com, jean-philippe.brucker@arm.com, will.deacon@arm.com, robin.murphy@arm.com Cc: marc.zyngier@arm.com, peter.maydell@linaro.org, zhangfei.gao@gmail.com Subject: [PATCH v10 08/11] vfio: Add new IRQ for DMA fault reporting Date: Fri, 20 Mar 2020 17:19:08 +0100 Message-Id: <20200320161911.27494-9-eric.auger@redhat.com> In-Reply-To: <20200320161911.27494-1-eric.auger@redhat.com> References: <20200320161911.27494-1-eric.auger@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a new IRQ type/subtype to get notification on nested stage DMA faults. Signed-off-by: Eric Auger --- include/uapi/linux/vfio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index f0fd26d058c9..73a6bf072b10 100644 --- a/include/uapi/linux/vfio.h +++ b/include/uapi/linux/vfio.h @@ -480,6 +480,9 @@ struct vfio_irq_info_cap_type { __u32 subtype; /* type specific */ }; =20 +#define VFIO_IRQ_TYPE_NESTED (1) +#define VFIO_IRQ_SUBTYPE_DMA_FAULT (1) + /** * VFIO_DEVICE_SET_IRQS - _IOW(VFIO_TYPE, VFIO_BASE + 10, struct vfio_ir= q_set) * --=20 2.20.1