Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C641C433DF for ; Mon, 19 Oct 2020 07:33:12 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D4BE922243 for ; Mon, 19 Oct 2020 07:33:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oaknzuBu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D4BE922243 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.8616.23096 (Exim 4.92) (envelope-from ) id 1kUPfC-0006y8-B5; Mon, 19 Oct 2020 07:33:02 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 8616.23096; Mon, 19 Oct 2020 07:33:02 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kUPfC-0006y1-83; Mon, 19 Oct 2020 07:33:02 +0000 Received: by outflank-mailman (input) for mailman id 8616; Mon, 19 Oct 2020 07:33:00 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kUPfA-0006xw-Kf for xen-devel@lists.xenproject.org; Mon, 19 Oct 2020 07:33:00 +0000 Received: from mail-wm1-x343.google.com (unknown [2a00:1450:4864:20::343]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 5bea8250-dc53-49df-9d9d-584004cf35b9; Mon, 19 Oct 2020 07:32:59 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id q5so11660151wmq.0 for ; Mon, 19 Oct 2020 00:32:59 -0700 (PDT) Received: from CBGR90WXYV0 (54-240-197-235.amazon.com. [54.240.197.235]) by smtp.gmail.com with ESMTPSA id v8sm15657225wmb.20.2020.10.19.00.32.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2020 00:32:58 -0700 (PDT) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kUPfA-0006xw-Kf for xen-devel@lists.xenproject.org; Mon, 19 Oct 2020 07:33:00 +0000 X-Inumbo-ID: 5bea8250-dc53-49df-9d9d-584004cf35b9 Received: from mail-wm1-x343.google.com (unknown [2a00:1450:4864:20::343]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 5bea8250-dc53-49df-9d9d-584004cf35b9; Mon, 19 Oct 2020 07:32:59 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id q5so11660151wmq.0 for ; Mon, 19 Oct 2020 00:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=jZa8/08xg2HhiRyEdtd7JzfFusEcmIi51CFreIpCG4Q=; b=oaknzuBuzHg+xmxEA0qkQsjp/Efv6ufRT5UVz5FpHhDcRjL/KWpwbpK+zbzqHLCem+ SK9S0ZbEW+ZfGD/lqF3oN4xZ+Yd/Ja+mafVKxSjeMDB4sCt4P7st7UE+4ZI0TGT8rpq6 wEI4MpUsde4SgX3VL7GLiImsD9gmR2LLP7vTRxLICUKIic4NtU/aM0VLBS35UqzGAa7y kz8eNgpxbdol3QN+dC+DzkLrzNLNIUngGj40H+n9SBYOSZ1C+cVj+0rkgTPRykDuQdDu hr1Dq0adX2Q94ZTexSCLxct0YPxww8Rx5E+0SIHaEzXTw4BuekNRtTQp2foyVXQptVWN vkpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:to:cc:references:in-reply-to :subject:date:message-id:mime-version:content-transfer-encoding :thread-index:content-language; bh=jZa8/08xg2HhiRyEdtd7JzfFusEcmIi51CFreIpCG4Q=; b=qFennhfQc4vI/4aOI60+6Lub8K2pORi5Ty6w1WkA7wG6eDOP8arPTTYeLSXdITFoM6 f2AdAa5G23lzA1iKjhk7gTEJbTdHiAJ7SWDmwm88XcDudGm92Vimf3aHJNcC9rGgfPH+ hjwkzFrhNotsSLwf2EvaIuwMxIylN9ZH/LHx3ZqO69BUBk0Q30UIzX/9TMHZHUOFQy2j vP7vBWawGk4kPRBL2QesBoI9YYhUo0GW2t4NEH+RS1dc8QiVBdCm2nIKeBvMuVv8U8B0 Fw55ccfZ9+4NA6dVBahZwXECdfJo5p1GWLZnicreLre2jAiiaAif+KWcaa8tZ9FD8nft T3SQ== X-Gm-Message-State: AOAM531ZwlEWvS5NdbR22G6Al/AR/gVSIswDlm0gbg+wawIVd2spS4L2 xrIHdxmiKUkjmlUk+i7HLfU= X-Google-Smtp-Source: ABdhPJx2BiYyfhVZ1HGWs4WCT5Aj9TYeliEOXidJVSUkUcsFTbrMhQeZhGr4xK2koWgpYBcfHES3Mw== X-Received: by 2002:a1c:9a4b:: with SMTP id c72mr15711301wme.157.1603092778890; Mon, 19 Oct 2020 00:32:58 -0700 (PDT) Received: from CBGR90WXYV0 (54-240-197-235.amazon.com. [54.240.197.235]) by smtp.gmail.com with ESMTPSA id v8sm15657225wmb.20.2020.10.19.00.32.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2020 00:32:58 -0700 (PDT) From: Paul Durrant X-Google-Original-From: "Paul Durrant" Reply-To: To: "'Jan Beulich'" Cc: "'Julien Grall'" , , "'Paul Durrant'" , "'Daniel De Graaf'" , "'Ian Jackson'" , "'Wei Liu'" , "'Andrew Cooper'" , "'George Dunlap'" , "'Stefano Stabellini'" References: <20201005094905.2929-1-paul@xen.org> <20201005094905.2929-3-paul@xen.org> <97648df3-dcce-cd19-9074-6ca63d94b518@xen.org> <002a01d6a5e8$c36bb5a0$4a4320e0$@xen.org> <7c4a0cda-5fff-c9ae-2fc1-4256aec5f694@suse.com> In-Reply-To: <7c4a0cda-5fff-c9ae-2fc1-4256aec5f694@suse.com> Subject: RE: [PATCH 2/5] iommu / domctl: introduce XEN_DOMCTL_iommu_ctl Date: Mon, 19 Oct 2020 08:32:57 +0100 Message-ID: <002d01d6a5ea$112d9aa0$3388cfe0$@xen.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQH+ubxU5MmdI1NaD6dn626TcODZdgGmi3hFAim7XvUAu7WuFwHUyrZTqRtZupA= Content-Language: en-gb > -----Original Message----- > From: Jan Beulich > Sent: 19 October 2020 08:30 > To: paul@xen.org > Cc: 'Julien Grall' ; xen-devel@lists.xenproject.org; = 'Paul Durrant' > ; 'Daniel De Graaf' ; 'Ian = Jackson' ; > 'Wei Liu' ; 'Andrew Cooper' ; = 'George Dunlap' > ; 'Stefano Stabellini' = > Subject: Re: [PATCH 2/5] iommu / domctl: introduce = XEN_DOMCTL_iommu_ctl >=20 > On 19.10.2020 09:23, Paul Durrant wrote: > >> From: Julien Grall > >> Sent: 16 October 2020 16:47 > >> > >> On 05/10/2020 10:49, Paul Durrant wrote: > >>> diff --git a/xen/include/public/domctl.h = b/xen/include/public/domctl.h > >>> index 791f0a2592..75e855625a 100644 > >>> --- a/xen/include/public/domctl.h > >>> +++ b/xen/include/public/domctl.h > >>> @@ -1130,6 +1130,18 @@ struct xen_domctl_vuart_op { > >>> */ > >>> }; > >>> > >>> +/* > >>> + * XEN_DOMCTL_iommu_ctl > >>> + * > >>> + * Control of VM IOMMU settings > >>> + */ > >>> + > >>> +#define XEN_DOMCTL_IOMMU_INVALID 0 > >> > >> I can't find any user of XEN_DOMCTL_IOMMU_INVALID. What's the = purpose > >> for it? > >> > > > > It's just a placeholder. I think it's generally safer that a zero = opcode value is invalid. >=20 > But does this then need a #define? Starting valid command from 1 > ought to be sufficient? >=20 Seems harmless enough, and it also seemed the best way since to reserve = 0 since this patch doesn't actually introduce any ops. As it has caused = so much controversy though, I'll remove it. Paul > Jan