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=-0.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 0431EC2BA19 for ; Tue, 14 Apr 2020 11:58:50 +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 BD907206D5 for ; Tue, 14 Apr 2020 11:58:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hdE4yeHx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD907206D5 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 localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jOKD0-0006j3-UY; Tue, 14 Apr 2020 11:58:30 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jOKCz-0006iy-R5 for xen-devel@lists.xenproject.org; Tue, 14 Apr 2020 11:58:29 +0000 X-Inumbo-ID: 40f09654-7e47-11ea-b58d-bc764e2007e4 Received: from mail-ed1-x544.google.com (unknown [2a00:1450:4864:20::544]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 40f09654-7e47-11ea-b58d-bc764e2007e4; Tue, 14 Apr 2020 11:58:29 +0000 (UTC) Received: by mail-ed1-x544.google.com with SMTP id v1so16709916edq.8 for ; Tue, 14 Apr 2020 04:58:29 -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:content-language :thread-index; bh=v1aTs8gBKrFG7WXTg/hGEoWX4C0e8azPGKqQQchQmTk=; b=hdE4yeHxn5chh1zcg21GItSrpVRI/xKNK1zvZgjnGcbUW8/sjJX+9Z6l8/Iomacxyv Mmg5Pg9lXRKzlXZkvnpGivoPNFMib0UiqvSWGU89I/B5qiXG0IjwOFN+UcpbbhyGJuFX p0LuzxxqbvW4kt1y5dN0YzA8KD/hpJL8tLkrEiUer3rt5FicKK9WC84s+IJ2KRDvAyA7 Bi72yhhQf1tPQZnx6rhq6+stqJ2n6rg2DCUI0WsxaHxGV4/qd2lazS/w46f4aBcd03TQ 72t02CAVh5E72y6VoxtHMozvzqwsDAgmjUUUjnl8zKzSp2/7gD82RzGl7IF6iUhkXlfq q00Q== 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 :content-language:thread-index; bh=v1aTs8gBKrFG7WXTg/hGEoWX4C0e8azPGKqQQchQmTk=; b=r6WYS4soFBr4ZaKTh9Bawi5ks9zVmdagkH6VmpNl7eCpMO/gI+/jKT0uGg+ok4x5hX GqrzdIpC2DH21kfGc8F0VWh7O/VRXO6QncLegoCHbbA3G405QO4/R5yv6uGQ/jPHMC4h 27K0HyWmC2ezqxFqtNeqgyca+SKfiUjx7TKVAJqrWQIMvIl3cRtjn8W6kEqTGa9t8h1V fe1HgRlwqc8KmcuDxoMgr9gNaqGJS3g3d2m5Dhpwn+B+c6O8fI6LajbdiKsCNplf/L0R aXWm0U4jLad9uArvC+7RdUacaPTXVrg+hPhoWmfyzB64dZnJsh2MEIfh/OAPmLd44aR+ hZUA== X-Gm-Message-State: AGi0PuZlRzPkAS8lmZu3+sfbGUw4jmYwmLC2+8RT5JAEF5zqw8+3BL5N q5RJA/bZ3uklKVl4wiSSydw= X-Google-Smtp-Source: APiQypIoJE7ToGYD3n9KjKEQGkn8qo7VPuB2vaiU4Gh+HzAKMbRe/eRp+KTAtKaWiiAgn+KflnXioQ== X-Received: by 2002:a50:954b:: with SMTP id v11mr20374873eda.28.1586865508241; Tue, 14 Apr 2020 04:58:28 -0700 (PDT) Received: from CBGR90WXYV0 ([54.239.6.187]) by smtp.gmail.com with ESMTPSA id i23sm1695700edr.54.2020.04.14.04.58.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Apr 2020 04:58:27 -0700 (PDT) From: Paul Durrant X-Google-Original-From: "Paul Durrant" To: "'Jan Beulich'" References: <612892f2fed5cb02cbec289589e437d9badb8cc1.camel@amazon.com> <6e3732e8-01d0-e9de-e89a-cd1b5833e5a1@suse.com> <000001d6124c$0aced570$206c8050$@xen.org> <90fd6e75-32b6-a140-1d20-083947bf1681@suse.com> In-Reply-To: <90fd6e75-32b6-a140-1d20-083947bf1681@suse.com> Subject: RE: [XEN PATCH v2] hvmloader: Enable MMIO and I/O decode, after all resource allocation Date: Tue, 14 Apr 2020 12:58:26 +0100 Message-ID: <000001d61254$020b0dc0$06212940$@xen.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: en-gb Thread-Index: AQFuCy2uGI4jNh4hl1w2kkxxIVrUTADKkfs7Amx1u9ABXrUQQAMwPUabAgJH1CUBoTRAhwIYHsW9qNyD6KA= X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Reply-To: paul@xen.org Cc: wl@xen.org, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, "'Shamsundara Havanur, Harsha'" , xen-devel@lists.xenproject.org, roger.pau@citrix.com Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" > -----Original Message----- > From: Jan Beulich > Sent: 14 April 2020 12:40 > To: paul@xen.org > Cc: 'Shamsundara Havanur, Harsha' ; = xen-devel@lists.xenproject.org; > andrew.cooper3@citrix.com; ian.jackson@eu.citrix.com; wl@xen.org; = roger.pau@citrix.com > Subject: Re: [XEN PATCH v2] hvmloader: Enable MMIO and I/O decode, = after all resource allocation >=20 > On 14.04.2020 13:01, Paul Durrant wrote: > >> -----Original Message----- > >>> > >>> Previous commit enabled MASTER for all functions. I am bit = confused > >>> here on the consensus on enabling/disabling/retaining BME. > >>> Should we even care about MASTER? > >> > >> With the commit introducing its universal setting, I'm afraid to > >> avoid regressions we can't sensibly alter the behavior unless it > >> can be explained clearly why the original change must have been > >> outright wrong. > >> > > > > Well the original code IIRC had no justification for setting BME > > and doing it unconditionally does seem dangerous. >=20 > I'm not viewing this as dangerous, merely as (typically) pointless. > A well behaved device won't start issuing DMA requests merely > because it had its bus mastering capability enabled. (And in the > context of some IOMMU work of yours you actually stated there are > devices where clearing of this bit won't stop them from doing so.) >=20 It's a line of defence against some devices at least, but others may = choke. I still think it should be cleared by default and turned on with = quirks if that is necessary. > > Could we at least make it configurable? > Well, the main question then would be - configurable by which > mechanism? >=20 The usual for hvmloader... a xenstore platform key. Paul