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 X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 1B1EEC33C9E for ; Tue, 14 Jan 2020 21:40:05 +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 B070824672 for ; Tue, 14 Jan 2020 21:40:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Op+etyLK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B070824672 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none 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 1irTuK-0005up-Vy; Tue, 14 Jan 2020 21:39:28 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1irTuJ-0005uk-FI for xen-devel@lists.xenproject.org; Tue, 14 Jan 2020 21:39:27 +0000 X-Inumbo-ID: 4fff2138-3716-11ea-a2eb-bc764e2007e4 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (unknown [40.107.7.48]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 4fff2138-3716-11ea-a2eb-bc764e2007e4; Tue, 14 Jan 2020 21:39:17 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dLLoKIaOeuCiy4bas4SUwnJ50CF2fgShzdQzoTEZ2RXUHNjt6TzrhpDArtOfqwBxwCN4E9Dj3pT3FUgb071gXFL1IzZMac2K/xQV5Se1jWzPEX2d8Ql6sm2HI3zjr1nai/O44Qo2JgGIlk6472bsgq/kcx9hyaeMsG3wrCIzx04OEtKGRPzpuD081/9U6zHDsodbQWpxP0+ba5Ju1g0TSR2URHQS3dUK21J3/fB7vQYEM1sEuQDGnKnKQ7zupPUIGMMi/5jG0xMJuCP30u4SFIJ8+IrVsvw5ibcEuJxW0fMlQHLRKBjeW64ERGqNvtyfuYSfrT5AmAq8r/8VKkIFfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QwG1TlyKlL+DXarZSULG7JD1O0Y1uF4SZ0xk4/a9j7E=; b=Q3nCwU0sMGNrr6C7bYhX/COX59HjFWevo20jNRmDluocRqg7gEXpBNgfJN84IKN0joPx7PohRXlJRWcQFS50LQ8aq9BRdlwy0zBpB6uxhdyLWTLarXM2sXuweVTCyfRmuKcave56/3mWSveGNZg56Ve9wttKFsh8X94pS5SBva3Rm5k7TPOiFL9gpCaDgmubgFiKuIeE96SKJvYJP2ZiA7juapbQSmo2f3kAJcIaCttIucnYocKzde3GegV5FQVduwQG6wcVyClmql4YIGJRVFCjjsjiqfrNGTRpF2ibqQIzZ3t5pT1Ec00uGdwti66eAxSTezABEAQGs5ElJQK/Og== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QwG1TlyKlL+DXarZSULG7JD1O0Y1uF4SZ0xk4/a9j7E=; b=Op+etyLK/UA74FhnoUkkyfE7aGq/GOoeHzYpnCjXaJucTK4F/cQXniVxCfO9vlKYor8YTg4LYhbNxWgeRrcwFfPZNZ5VbqhnmtbMW5auQ8KveBRLQWG4M4SDeGmXbwB2CK7QpliBnoo24I2bhau0QwyNQp2rFxuVjWZLsFpMBuI= Received: from AM6PR04MB5094.eurprd04.prod.outlook.com (20.177.32.148) by AM6PR04MB5255.eurprd04.prod.outlook.com (20.177.33.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.18; Tue, 14 Jan 2020 21:39:14 +0000 Received: from AM6PR04MB5094.eurprd04.prod.outlook.com ([fe80::fcdd:2e7:1a89:ecbd]) by AM6PR04MB5094.eurprd04.prod.outlook.com ([fe80::fcdd:2e7:1a89:ecbd%3]) with mapi id 15.20.2623.017; Tue, 14 Jan 2020 21:39:14 +0000 From: Jorge Pereira To: "xen-devel@lists.xenproject.org" Thread-Topic: Having a DOM-U guest with 1:1 mapping in the second stage MMU. Thread-Index: AdXLIqP6kZ9GrNU2S1+Q7w9nOZRIUw== Date: Tue, 14 Jan 2020 21:39:14 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=jorge.pereira@nxp.com; x-originating-ip: [93.3.33.12] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 246d5d4f-bd95-4ed5-0333-08d7993a3378 x-ms-traffictypediagnostic: AM6PR04MB5255: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 028256169F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(366004)(376002)(346002)(136003)(396003)(199004)(189003)(9326002)(7696005)(33656002)(478600001)(86362001)(52536014)(2906002)(81166006)(8676002)(186003)(4744005)(9686003)(44832011)(66946007)(5660300002)(81156014)(26005)(76116006)(66446008)(64756008)(66476007)(66556008)(8936002)(55016002)(6916009)(316002)(6506007)(71200400001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB5255; H:AM6PR04MB5094.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AVkTbC760Fa9XxNj95q/ozIxttoHq4iDjjelLbhRsmYoFy2j1U3RlS4xgqZ0cRV5hXiYHDYDF3JAmBAymbfkAv/E2/ko3jNP3pDWP2eOr6a6NX1tF9zuTrg3TI6C3LgCmExTcm3MWZeOxIri3yuNmfj491JyTg7LyMv3Par/6Ivo3VogXWzcwdhm3ZWzPmzNmlkanT7V2JOvmFso0EFeQIDm6g+81i+KAbxv2TAcvlEFrD0TWxvdnGTchtjo0OOCtdmIEErCMZ97t3ISKvFVmJpfg+a6FIsjmawDoivMVIMI3sc1OtKNI/Ms71emYlWGFgAS1hBrrapH+yfvF/eF0M0QXbZ2bgeriQMLMI2By5kJYzw8ryZbhRcdvmw8yi0rexjxC1c6fleL1zjXblvjrhqhorSKrJN12OyDW+XPupGRiFWnwPImf3AVBFhrrHiK x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 246d5d4f-bd95-4ed5-0333-08d7993a3378 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jan 2020 21:39:14.5701 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: PAomVqNQaU0MGnb4hqLjbwL/Lk3YftS/z6XWcdbxRzBhyb3jXNks7+lw3Vc6wwo/yt59ZuEHxeBEvCRjKOd/Hg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB5255 Subject: [Xen-devel] Having a DOM-U guest with 1:1 mapping in the second stage MMU. 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: , Content-Type: multipart/mixed; boundary="===============6519321185241752627==" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" --===============6519321185241752627== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_AM6PR04MB5094DE81655072BDA67F7922F0340AM6PR04MB5094eurp_" --_000_AM6PR04MB5094DE81655072BDA67F7922F0340AM6PR04MB5094eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Guys, I'm currently using XEN in order to run side-by-side a DOM-0 with a DOM-U g= uest. My use-case scenario requires in the DOM-U direct access to some dma-= capable devices such ethernet and some GPUs. Since our target platform (i.MX8MM) does not support IOMMU, we can't assign= dma-capable devices to the DOM-U guest because XEN does not create 1:1 map= ping for that guest in the 2nd stage MMU. So, guest-virtual addresses are d= ifferent than the physical ones. Is it possible to have 1:1 mapping for DOM-U guests? If not, I'm interested= to know what would be the estimated effort to support this feature? Thanks in advance, Cheers, Jorge --_000_AM6PR04MB5094DE81655072BDA67F7922F0340AM6PR04MB5094eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Guys,

 

I’m currently using XEN in order to run side-b= y-side a DOM-0 with a DOM-U guest. My use-case scenario requires in the DOM= -U direct access to some dma-capable devices such ethernet and some GPUs.

 

Since our target platform (i.MX8MM) does not support= IOMMU, we can’t assign dma-capable devices to the DOM-U guest becaus= e XEN does not create 1:1 mapping for that guest in the 2nd stag= e MMU. So, guest-virtual addresses are different than the physical ones.

 

Is it possible to have 1:1 mapping for DOM-U guests?= If not, I’m interested to know what would be the estimated effort to= support this feature?

 

Thanks in advance,

 

Cheers,

Jorge

--_000_AM6PR04MB5094DE81655072BDA67F7922F0340AM6PR04MB5094eurp_-- --===============6519321185241752627== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============6519321185241752627==--