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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 1ABBEC433EF for ; Fri, 15 Apr 2022 11:31:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Resent-Message-ID:Resent-Date:Resent-CC: Resent-To:Resent-From:Reply-To:Content-ID:Content-Description:Resent-Sender: List-Owner; bh=HQg5At7Dlb3JfYFnx7twYgFCJ6JMlbMOddUkRKPZQ0U=; b=QRnnfk4MiOSdQo kwCIpdHjVai7Q4YEBUdhAmxusjgc/XSJSH2iI6sbzHiPP1FNav+v5qaZ1T20zwFJqUBQ5yVmpKAU3 oW/ss6FUKoNW5GwqavoITeOx4KwuMv5ZwkKn3STA+X8ugLZop04pUuBMuz7eRVx+rwVn+FgB22ETt kgSZ7b8evk+LPKj1atepMqlTrDMvxDn7YuDQCsM1r1VQOm0rG712wCozyIUF4C9XiAyeszOOqbkXe U4B9BpPvmihihz1pgIcpgzmQiJ7aW7W9cbMvhInOb1vCsTVCFOPCTalcy+ksyVdMxY33OJp8+YR23 T3nT3bsrjerpA53W5pUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfK9T-009pjT-U8; Fri, 15 Apr 2022 11:30:12 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfK9Q-009pia-Ri for linux-arm-kernel@lists.infradead.org; Fri, 15 Apr 2022 11:30:10 +0000 Received: by mail-lf1-x12f.google.com with SMTP id bq30so13635207lfb.3 for ; Fri, 15 Apr 2022 04:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=resent-from:resent-to:resent-cc:resent-date:resent-message-id:from :to:cc:subject:date:message-id:in-reply-to:references; bh=R46jQ8Mh8wQzPdylSEViVF+ujde6F3v3VBI24iINPTM=; b=KeWfl67mdcuRvrKBa5wIPPFe8y9QMAOfCy01692FgAhUzvumB1hzx3pLSABU1WPtm3 +lRmBJVXnJElMN1jUwAb9PCqeInAr6EOr8SnmjmbRfjNH2YwnvmfPPy7RHyvotLoN+lH rXDwKyCQ/snna5cLLYzChv9K4hDFiXEMMHNNdrhMuAqVbWm9rtoF6aKAToVtn4RiIqho PSbYl/WRIt8FmOEGM7+zbcy8bfdqwkaBSyrzWNhOo/L3Yoqq4kDrrp1mum+H39upnI7A J2ZqC+EVvJltXvmV6gpUVY7Khvh6bLO3vWTxchEFeOCC1LMPh+dM6krX+3Q6z/4Xdvn6 Wb7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:resent-from:resent-to:resent-cc:resent-date :resent-message-id:from:to:cc:subject:date:message-id:in-reply-to :references; bh=R46jQ8Mh8wQzPdylSEViVF+ujde6F3v3VBI24iINPTM=; b=cb4yyuGzFjmpnCfzQx3g1jfpU4O698hgzEC2Fk+teyULnlmHmVcdT78xwhlFsxt9Us yS1jOoVOxjrzzNVd85axzNvLiRS8EfbPhu3rZ7bITIPzVQ3BIl2MsMRUHW3icVfiAQ4y HUVY17nWS8kqWwqCgQ9nJSVGaTeieYTVWgrIsdt7vHXHnNKERmmHnypTGzOTJ7lV/Cl3 MBV3PTyRzub5SQpdVrlC3Oygis45762Z6r5kCX1oiiq70lhq/E7SLnWY/pJ04uXzNOeP TZLyUpRTZ0RATqpuR8wdHRLSerQFVlHRHACfHO7YVgBaRlwj3Ip429wcm27NTfyjsyj0 z+Hg== X-Gm-Message-State: AOAM5316p4rvc8TYez7cEdZOK8lyuuCDlt8TRlU3Wvt7xsiUNg4fqDmE FnOK5uoCOWsQfUkSpnhgZZBPIllzuAU= X-Google-Smtp-Source: ABdhPJy0FCKmbFf2JDff5fmfPTV6me2hKoRdU0V2jxeL8S9+vRmbeZHVDqBY+M2jw+k9yMQgmAM7DA== X-Received: by 2002:a05:6512:1585:b0:448:3936:a5a0 with SMTP id bp5-20020a056512158500b004483936a5a0mr4896645lfb.108.1650022206220; Fri, 15 Apr 2022 04:30:06 -0700 (PDT) Received: from [192.168.1.7] ([212.22.223.21]) by smtp.gmail.com with ESMTPSA id 25-20020ac24d59000000b0046d06f31bc2sm298746lfp.282.2022.04.15.04.30.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Apr 2022 04:30:05 -0700 (PDT) Resent-From: Oleksandr Resent-To: linux-arm-kernel@lists.infradead.org Resent-CC: Christoph Hellwig Resent-Date: Fri, 15 Apr 2022 14:30:05 +0300 Resent-Message-ID: <52174902-60ae-d322-f158-c0839f5de214@gmail.com> Received: from otyshchenko.router ([212.22.223.21]) by smtp.gmail.com with ESMTPSA id l3-20020a194943000000b0046b928d2795sm85001lfj.67.2022.04.14.12.19.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Apr 2022 12:19:41 -0700 (PDT) From: Oleksandr Tyshchenko To: xen-devel@lists.xenproject.org, virtualization@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Oleksandr Tyshchenko , "Michael S. Tsirkin" , Jason Wang , Rob Herring , Krzysztof Kozlowski , Julien Grall , Juergen Gross , Stefano Stabellini Subject: [RFC PATCH 3/6] dt-bindings: xen: Add xen, dev-domid property description for xen-virtio layer Date: Thu, 14 Apr 2022 22:19:30 +0300 Message-Id: <1649963973-22879-4-git-send-email-olekstysh@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1649963973-22879-1-git-send-email-olekstysh@gmail.com> References: <1649963973-22879-1-git-send-email-olekstysh@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220415_043008_920677_260AC1C8 X-CRM114-Status: GOOD ( 18.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Oleksandr Tyshchenko Introduce Xen specific binding for the virtio-mmio device to be used by Xen virtio support driver in a subsequent commit. This binding specifies the ID of Xen domain where the corresponding device (backend) resides. This is needed for the option to restrict memory access using Xen grant mappings to work. Signed-off-by: Oleksandr Tyshchenko --- .../devicetree/bindings/virtio/xen,dev-domid.yaml | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/virtio/xen,dev-domid.yaml diff --git a/Documentation/devicetree/bindings/virtio/xen,dev-domid.yaml b/Documentation/devicetree/bindings/virtio/xen,dev-domid.yaml new file mode 100644 index 00000000..78be993 --- /dev/null +++ b/Documentation/devicetree/bindings/virtio/xen,dev-domid.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/virtio/xen,dev-domid.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xen specific binding for the virtio device + +maintainers: + - Oleksandr Tyshchenko + +select: true + +description: + This binding specifies the ID of Xen domain where the corresponding device + (backend) resides. This is needed for the option to restrict memory access + using Xen grant mappings to work. + + Note that current and generic "iommus" bindings are mutually exclusive, since + the restricted memory access model on Xen behaves as a kind of software IOMMU. + +properties: + xen,dev-domid: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Should contain the ID of device's domain. + +additionalProperties: true + +examples: + - | + virtio_block@3000 { + compatible = "virtio,mmio"; + reg = <0x3000 0x100>; + interrupts = <41>; + + /* The device is located in Xen domain with ID 1 */ + xen,dev-domid = <1>; + }; -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel