Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10589156ybi; Thu, 11 Jul 2019 07:45:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwInAGYsdnCIUgAk0i9iIuYIBv8QuKkPu0RagTkwgkXPPuutrFbORN3TepV1MTAy+W9wZPF X-Received: by 2002:a17:902:23:: with SMTP id 32mr5125952pla.34.1562856304954; Thu, 11 Jul 2019 07:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562856304; cv=none; d=google.com; s=arc-20160816; b=tcEvtET0ECopul5xFsUQN76W5rNpRAJyCKd0u1EpBgGzxgRyUaJ0/gN1liKOXbKzyv dggMIwhcSIOM4590N/6nnHAPgvrCjUtQnnQZWiO2KgHpJfjQqYz45sTXM0zFLMGJKARw LPTxpNwlIeEeQTjmHgdVs8B+O+08gcQng1yKWmh4tkI7XssgQeI1eh9hyTJV1tHDxcvB pXZo/19aMPgXgXyIIPglDuGm3bShGaGhCEHzkSzVxR08wZqsXW4lRBRhffPtSwxPXcuQ mKyFy4cOrVdASjPahVEp39nofPt6Y9UbevpNedfpPyg+t0XbVo83H/SPUkLSXZYfdX9I AWiA== 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; bh=30jzqXRP6+GOgOwibS9VkulqDbJVU9uGd8VoQbSQJQ8=; b=hW6iKehXKK0Cq5M/BypXRR9P0d/xcdwN3M1geJzo8R4dgjSb/TtQCczeb7Ezgba07t E45e6DxfFHv9An8RVboNst1+PS0eiplfzhYVS6XmmKvZ4YjHrQDuTrLAmGJ8rhCZ/xY9 XSSWzacvtExWvohU4Oiwh4+Ogb/pqfU15EtIr2U5MtoTJ+oldbFaW2LFZO8KlDkOuxm6 tYKd7fpr1gF8LGxTQNi5D+KczOwhmN+rj+fgpvdjwYlEIZx8vascimSTicOh5JySiDEA gyZx04y66X2kQ2d5nRUA1tliP7+OJ9SNnl4JdCY5vItAG8ay7AGZl4CrsNxdhFjFcgWF Wpeg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 31si5264167plc.356.2019.07.11.07.44.48; Thu, 11 Jul 2019 07:45:04 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728761AbfGKN6u (ORCPT + 99 others); Thu, 11 Jul 2019 09:58:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43573 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728472AbfGKN6u (ORCPT ); Thu, 11 Jul 2019 09:58:50 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2A03859442; Thu, 11 Jul 2019 13:58:50 +0000 (UTC) Received: from laptop.redhat.com (ovpn-116-46.ams2.redhat.com [10.36.116.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id AF48560A97; Thu, 11 Jul 2019 13:58:40 +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: kevin.tian@intel.com, ashok.raj@intel.com, marc.zyngier@arm.com, peter.maydell@linaro.org, vincent.stehle@arm.com, zhangfei.gao@gmail.com, tina.zhang@intel.com Subject: [PATCH v9 08/11] vfio: Add new IRQ for DMA fault reporting Date: Thu, 11 Jul 2019 15:56:22 +0200 Message-Id: <20190711135625.20684-9-eric.auger@redhat.com> In-Reply-To: <20190711135625.20684-1-eric.auger@redhat.com> References: <20190711135625.20684-1-eric.auger@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 11 Jul 2019 13:58:50 +0000 (UTC) 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 b53714ae02c5..58607809e81a 100644 --- a/include/uapi/linux/vfio.h +++ b/include/uapi/linux/vfio.h @@ -473,6 +473,9 @@ struct vfio_irq_info_cap_type { __u32 subtype; /* type specific */ }; +#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_irq_set) * -- 2.20.1