From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 29681C433F5 for ; Thu, 2 Dec 2021 17:46:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id C358C83F33; Thu, 2 Dec 2021 17:46:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K5kC6dDmR9tu; Thu, 2 Dec 2021 17:46:13 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id AD80B83F20; Thu, 2 Dec 2021 17:46:12 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 17F67C0038; Thu, 2 Dec 2021 17:46:12 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2E7B1C001C for ; Thu, 2 Dec 2021 17:46:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 0D60440162 for ; Thu, 2 Dec 2021 17:46:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DXsN04GZNuxA for ; Thu, 2 Dec 2021 17:46:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp2.osuosl.org (Postfix) with ESMTPS id 30C4540101 for ; Thu, 2 Dec 2021 17:46:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638467166; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uKmzT1/YmP73qs650iyNoUcPQkfF4oMfX1WHEk8C8P8=; b=gKTuJrM3ufksjE9M+x+ZDmiDVHsR3llAdIMt2YD0zbPCSRR+SS54+iojjV+hGI0AfyVAGy aOOgr4aHr17CAQmJoYdVbW/i8muMU+CshX94pv+kJCWzSCoMuPSFZp0HbXsjjpKDYK8IqK gevmJtSrrN4mnfsv6pfx0tsx2MNDXBI= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-466-YMQqVHecPDyGameg3WMPbA-1; Thu, 02 Dec 2021 12:46:04 -0500 X-MC-Unique: YMQqVHecPDyGameg3WMPbA-1 Received: by mail-wm1-f71.google.com with SMTP id z138-20020a1c7e90000000b003319c5f9164so2060409wmc.7 for ; Thu, 02 Dec 2021 09:46:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=uKmzT1/YmP73qs650iyNoUcPQkfF4oMfX1WHEk8C8P8=; b=NDb8AtrGlOlD64jZNTXwZgo5N9v764KSWtU/eFe5lQa6/Q0hgneOQcXIoEHJMz7Hnv cEVESD8RNZe7qQnXqs29SsbQVhrf9ixas1w6VXMXRsiAwqlQtVzNNvgbp385EnvD8lwt kG02NwrbGMbQJ10F291nYUNTOS1MyewmO9LQ+rlIqEbt0CRLib/AQrlYRehSJZBQqVA9 I3qb7cocKMEmiXMyMEUUpuai9pe+tZZW2P5SMTWMYYbqiYvNGLOrtPL3CDMerfeejmX7 lm9lT/udkbC4ZNFJJWh1eNmHgtFarcfZlLtZOK6x5bzjK+qFiYv5d6Oiwuk8Sr3jwiOb TLQQ== X-Gm-Message-State: AOAM530AtQsvQlcnRHJSGIuYjE7FxoTvtPcxiYsbOH56GxZekCz5VdX7 bHJyjvcxHhEOECCmSNsoP3P6mPulHmqKcD+3pU0VJblSlc0PK3IIJZyWObIq3VVAdlhRbSi62A0 olkGA7dlYHjCf8JL2P+WnLi/CPOBjIw== X-Received: by 2002:a05:6000:1105:: with SMTP id z5mr15886514wrw.615.1638467163569; Thu, 02 Dec 2021 09:46:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLS7UY12kzWqPG9e4Bk9dvNbOkB949nYgl+o103/sy+tey7EMqUaRB+LHPfb7joZx4HomMXg== X-Received: by 2002:a05:6000:1105:: with SMTP id z5mr15886484wrw.615.1638467163332; Thu, 02 Dec 2021 09:46:03 -0800 (PST) Received: from ?IPv6:2a01:e0a:59e:9d80:527b:9dff:feef:3874? ([2a01:e0a:59e:9d80:527b:9dff:feef:3874]) by smtp.gmail.com with ESMTPSA id n4sm518368wri.41.2021.12.02.09.46.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Dec 2021 09:46:02 -0800 (PST) Subject: Re: [PATCH v3 1/5] iommu/virtio: Add definitions for VIRTIO_IOMMU_F_BYPASS_CONFIG To: Jean-Philippe Brucker , joro@8bytes.org, will@kernel.org, mst@redhat.com, jasowang@redhat.com References: <20211201173323.1045819-1-jean-philippe@linaro.org> <20211201173323.1045819-2-jean-philippe@linaro.org> From: Eric Auger Message-ID: <886fa0bd-bb43-32d3-52f1-c1cd2024be92@redhat.com> Date: Thu, 2 Dec 2021 18:46:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20211201173323.1045819-2-jean-philippe@linaro.org> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=eric.auger@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Cc: pasic@linux.ibm.com, iommu@lists.linux-foundation.org, sebastien.boeuf@intel.com, kevin.tian@intel.com, virtualization@lists.linux-foundation.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: eric.auger@redhat.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" Hi Jean, On 12/1/21 6:33 PM, Jean-Philippe Brucker wrote: > Add definitions for the VIRTIO_IOMMU_F_BYPASS_CONFIG, which supersedes > VIRTIO_IOMMU_F_BYPASS. > > Reviewed-by: Kevin Tian > Signed-off-by: Jean-Philippe Brucker Reviewed-by: Eric Auger Eric > --- > include/uapi/linux/virtio_iommu.h | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/include/uapi/linux/virtio_iommu.h b/include/uapi/linux/virtio_iommu.h > index 237e36a280cb..1ff357f0d72e 100644 > --- a/include/uapi/linux/virtio_iommu.h > +++ b/include/uapi/linux/virtio_iommu.h > @@ -16,6 +16,7 @@ > #define VIRTIO_IOMMU_F_BYPASS 3 > #define VIRTIO_IOMMU_F_PROBE 4 > #define VIRTIO_IOMMU_F_MMIO 5 > +#define VIRTIO_IOMMU_F_BYPASS_CONFIG 6 > > struct virtio_iommu_range_64 { > __le64 start; > @@ -36,6 +37,8 @@ struct virtio_iommu_config { > struct virtio_iommu_range_32 domain_range; > /* Probe buffer size */ > __le32 probe_size; > + __u8 bypass; > + __u8 reserved[3]; > }; > > /* Request types */ > @@ -66,11 +69,14 @@ struct virtio_iommu_req_tail { > __u8 reserved[3]; > }; > > +#define VIRTIO_IOMMU_ATTACH_F_BYPASS (1 << 0) > + > struct virtio_iommu_req_attach { > struct virtio_iommu_req_head head; > __le32 domain; > __le32 endpoint; > - __u8 reserved[8]; > + __le32 flags; > + __u8 reserved[4]; > struct virtio_iommu_req_tail tail; > }; > _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9960C433EF for ; Thu, 2 Dec 2021 17:46:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 442BD41DFD; Thu, 2 Dec 2021 17:46:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UhDfc0UYRLoN; Thu, 2 Dec 2021 17:46:12 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 03A9041DF0; Thu, 2 Dec 2021 17:46:11 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id D9426C001C; Thu, 2 Dec 2021 17:46:11 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 11A8BC000A for ; Thu, 2 Dec 2021 17:46:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 06B686065C for ; Thu, 2 Dec 2021 17:46:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JelvA-wMWUrX for ; Thu, 2 Dec 2021 17:46:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id BAC5760641 for ; Thu, 2 Dec 2021 17:46:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638467167; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uKmzT1/YmP73qs650iyNoUcPQkfF4oMfX1WHEk8C8P8=; b=TAhxwDYRRG84aYvU5+SYq6SE8E522of5INxKzKZsx7VqzGKQn29xH+awSPrUcvaUxp/Hg5 O9er0tCrRocR1f0hLL8uIazOCVUOP0+5CL4AGDMKLDyUNptQy1BCRkxicVmUSjKdCLEeVm IeOjDKgkZhQRuEf6mDGNTh6Ew1J3pU8= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-504-lRqiH4lvNm6ge0apU0FlrQ-1; Thu, 02 Dec 2021 12:46:04 -0500 X-MC-Unique: lRqiH4lvNm6ge0apU0FlrQ-1 Received: by mail-wm1-f69.google.com with SMTP id 69-20020a1c0148000000b0033214e5b021so223683wmb.3 for ; Thu, 02 Dec 2021 09:46:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=uKmzT1/YmP73qs650iyNoUcPQkfF4oMfX1WHEk8C8P8=; b=GM/UuEazZH47i47uPsdcHeTdHWGob408awEiazjjMrBYCk085klnLohs5QNHQyzAxd NPmXixt0834hyH/Aayy4vvZjIw34mrViDGC0aHpxbuyCo/RL7uC6ro07/VNvIcKT3B3v RAsb7410FHW35w7dk7Pep48HB0ArELaDXTAeLP2gkkSP+moCoGgf2d0u+X0kZ+8XehsH yt3ZX1xY/ysEMY1evdKA5m55UPH5ZYI/ClbcMXRkwcR8wSlxvtHZ3AIGpSQ8fMGHJesO gGE0WSSZgbc0LK+I2uOZv1mJ8B0tah9PJuW366nz2V6MJV3XcjhGii2wgGlYXhiEJZsu GAsA== X-Gm-Message-State: AOAM531hbbc2uWpTitaPIC7RR46GyG3Zj5ws9RxSIdCZM8LSEXU/c5zp kjwluwDib0iCy7q0vPYBBrIeYMzj2uGeNNgcKfoq9qU2tSK0ICEcVxvX7qVy926G5Y+XHKBUqOG F4W1rvHpR+gcP4f3IuSSxZp092AzkOLnge6gCHAyoUQ== X-Received: by 2002:a05:6000:1105:: with SMTP id z5mr15886508wrw.615.1638467163553; Thu, 02 Dec 2021 09:46:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLS7UY12kzWqPG9e4Bk9dvNbOkB949nYgl+o103/sy+tey7EMqUaRB+LHPfb7joZx4HomMXg== X-Received: by 2002:a05:6000:1105:: with SMTP id z5mr15886484wrw.615.1638467163332; Thu, 02 Dec 2021 09:46:03 -0800 (PST) Received: from ?IPv6:2a01:e0a:59e:9d80:527b:9dff:feef:3874? ([2a01:e0a:59e:9d80:527b:9dff:feef:3874]) by smtp.gmail.com with ESMTPSA id n4sm518368wri.41.2021.12.02.09.46.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Dec 2021 09:46:02 -0800 (PST) Subject: Re: [PATCH v3 1/5] iommu/virtio: Add definitions for VIRTIO_IOMMU_F_BYPASS_CONFIG To: Jean-Philippe Brucker , joro@8bytes.org, will@kernel.org, mst@redhat.com, jasowang@redhat.com References: <20211201173323.1045819-1-jean-philippe@linaro.org> <20211201173323.1045819-2-jean-philippe@linaro.org> From: Eric Auger Message-ID: <886fa0bd-bb43-32d3-52f1-c1cd2024be92@redhat.com> Date: Thu, 2 Dec 2021 18:46:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20211201173323.1045819-2-jean-philippe@linaro.org> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=eric.auger@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Cc: pasic@linux.ibm.com, iommu@lists.linux-foundation.org, sebastien.boeuf@intel.com, virtualization@lists.linux-foundation.org X-BeenThere: virtualization@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux virtualization List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: eric.auger@redhat.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: virtualization-bounces@lists.linux-foundation.org Sender: "Virtualization" Hi Jean, On 12/1/21 6:33 PM, Jean-Philippe Brucker wrote: > Add definitions for the VIRTIO_IOMMU_F_BYPASS_CONFIG, which supersedes > VIRTIO_IOMMU_F_BYPASS. > > Reviewed-by: Kevin Tian > Signed-off-by: Jean-Philippe Brucker Reviewed-by: Eric Auger Eric > --- > include/uapi/linux/virtio_iommu.h | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/include/uapi/linux/virtio_iommu.h b/include/uapi/linux/virtio_iommu.h > index 237e36a280cb..1ff357f0d72e 100644 > --- a/include/uapi/linux/virtio_iommu.h > +++ b/include/uapi/linux/virtio_iommu.h > @@ -16,6 +16,7 @@ > #define VIRTIO_IOMMU_F_BYPASS 3 > #define VIRTIO_IOMMU_F_PROBE 4 > #define VIRTIO_IOMMU_F_MMIO 5 > +#define VIRTIO_IOMMU_F_BYPASS_CONFIG 6 > > struct virtio_iommu_range_64 { > __le64 start; > @@ -36,6 +37,8 @@ struct virtio_iommu_config { > struct virtio_iommu_range_32 domain_range; > /* Probe buffer size */ > __le32 probe_size; > + __u8 bypass; > + __u8 reserved[3]; > }; > > /* Request types */ > @@ -66,11 +69,14 @@ struct virtio_iommu_req_tail { > __u8 reserved[3]; > }; > > +#define VIRTIO_IOMMU_ATTACH_F_BYPASS (1 << 0) > + > struct virtio_iommu_req_attach { > struct virtio_iommu_req_head head; > __le32 domain; > __le32 endpoint; > - __u8 reserved[8]; > + __le32 flags; > + __u8 reserved[4]; > struct virtio_iommu_req_tail tail; > }; > _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization