Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp262556imu; Fri, 25 Jan 2019 01:47:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN6h1xRbxe/6i/uuD+zGb/Ex+NkY/et5o4qlQCoQ5Yho2WXLVvfXCKQc5xhE9TrowOV8pVfl X-Received: by 2002:a17:902:145:: with SMTP id 63mr10212290plb.256.1548409632121; Fri, 25 Jan 2019 01:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548409632; cv=none; d=google.com; s=arc-20160816; b=ROFMyLT1ygkR2PAy4HvaG1H8qQ8vKlUMBR6fGZ34nvZfZDVvIJ04DXqSn9f8VuU+ag MEPwQ/iPducLi1epvzcWD0MekMR803Isjvncf5lR6qoms9f9B8Z170+ll2Uv94peyeCt cLb/5kuHGMV97v8Y0YOQ9eQrTxvFBcsyMNbm4myvO7GaS5WkuFl4Eni0Ma21SH4bBXg1 ygjCgdu9tW2jWOugP6cF1Rj3KbIlIXfWjWRjEw3UUMzb+NVytC+fOJ/EMaf/H248kxpN XZYXE6+jVKleL5mvfqSHd62co2qYlVCRa20mYdaYSTaWQhoM9YFhWGDwH5YfIIn5ilH9 9sxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=wrkToTWg46AKA/YnezVCLe+JqTllz3ij3C03cFnfLKE=; b=mvKOMzvfb4ZW/bdgwQvMyGcMx+Ikj2w8pck2co5bZV2xxyny9XrscNyZ86STvpAwbk J6E8KT2XobZ3KFdMmshagNDoCYuxlQR1I9oDsIm63k64qw9iTB+E5VaYCIV5HXW7OPEv oT3VLXDxOnyyFcjMu1o1aiTbUS1uV4vPb5p8ust44gsZdtTSTwzOk18ypoA3ym8Eufji JZbASvM7dZBEjVRn/iQE/qBTapM3rDC96U0etKxfpczK6ogmbfVnNgqSKU4HpYkxrzzw a+8KLirdjSQkR7AKqi6rjxwNJ7QtxIaYk0nFM/eyAleOzaXOCCLp4+ELvAp39H97Ltni iKHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=Opp5m9Cm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p22si24236296pgl.340.2019.01.25.01.46.56; Fri, 25 Jan 2019 01:47:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=Opp5m9Cm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728973AbfAYJpa (ORCPT + 99 others); Fri, 25 Jan 2019 04:45:30 -0500 Received: from mail-eopbgr00080.outbound.protection.outlook.com ([40.107.0.80]:40838 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727689AbfAYJpa (ORCPT ); Fri, 25 Jan 2019 04:45:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wrkToTWg46AKA/YnezVCLe+JqTllz3ij3C03cFnfLKE=; b=Opp5m9CmTRssVNOvaDicU6Nb1Av+7vnYMojLM+IdOHK/yQQEK/ALXf/POtnUaFs+zlLlHa9eLDlBnruSaM5yJzZfVCfxCUEbA2uC5f3LgkhSrhXubqJm17cTzbHBidQio3e9XoEtF09Y/tl8UGqw8G3heJfc1ogWzCbWRNbdAv4= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.148.143) by AM0PR04MB5636.eurprd04.prod.outlook.com (20.178.118.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.19; Fri, 25 Jan 2019 09:45:26 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::69ce:7da3:3bcf:d903]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::69ce:7da3:3bcf:d903%3]) with mapi id 15.20.1537.032; Fri, 25 Jan 2019 09:45:26 +0000 From: Peng Fan To: "hch@infradead.org" , Stefano Stabellini CC: "mst@redhat.com" , "jasowang@redhat.com" , "xen-devel@lists.xenproject.org" , "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "luto@kernel.org" , "jgross@suse.com" , "boris.ostrovsky@oracle.com" , Andy Duan Subject: RE: [Xen-devel] [RFC] virtio_ring: check dma_mem for xen_domain Thread-Topic: [Xen-devel] [RFC] virtio_ring: check dma_mem for xen_domain Thread-Index: AQHUsUUJrf+HCksNJUevQFBecw2Jm6W7t2+AgAC8CgCAAOh3gIAAAqqAgAJgxoA= Date: Fri, 25 Jan 2019 09:45:26 +0000 Message-ID: References: <20190121050056.14325-1-peng.fan@nxp.com> <20190123071232.GA20526@infradead.org> <20190123211405.GA4971@infradead.org> In-Reply-To: <20190123211405.GA4971@infradead.org> 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=peng.fan@nxp.com; x-originating-ip: [92.121.36.197] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB5636;6:NMERXxFSzhhxylxN0unqzD1s5OWmgW/umJBdUMw230eozuG5kO61wTS/ElKXhnIQi1Qx5gyfLnGN65oqb3wPiik0T6M4iB8NkP/zw/02rzxCmjw3XWuOkMiVWJK2iZcmCY3V85h3c9hdV0KtA3zce6QfvCvAvKRpKsJyv12b2g6d31LqanTtdU6IWbu/XDDPI0Rc4QbF2REr37oMGgwb1d7V1z7w8/ahGklqj1VZc52JRm5De7jZHmB4pcXv02yyvCIZyXiElMz3KRQohlxjc/RuhzML5e89xb+fT6oX8r6uJ04BjAekz9Et/65pwd1HMNK2TiarspJqck1LuRHonejO0pnMXtwLAwmFsqKILnRuW+qm1nsqIkZWeODR5tR/5BRq6+zTRdfVr5gi6XVCjxPJraZFNH/etvSe2TYxCP+lwI1xdO61J1Q049Bno1OaRaHMtcShYcS98E4nQDErDA==;5:tgAMHyHf6LUle4bUyDaVZXpZwMkmedbmnqrhlQ3OHFya4rovbBgBpmAyCqRLkLIllv3+u1jfH6bFq9zYmxaMFk6G6fUbISdqyUV6W1mm5EsVcDuhBxzsj7wv9YzOWnmobRozwq7lOgF16HKmbhWXyKHyWuKP+QC9yflHz+KemzoD7ceU7s9DP1J1vB00PWmbtlge/uGjj4w9zVfPINL+zA==;7:QEjzpCtNtazOF45tZLhNkQf8RVJTX8Vk4wdoVDNnj1yD7wYJeri/RSaEYclxWNJgkWtKvLnuJkDoIaa/JR0OikJs3KGVxdOpqdscdwnmokPCutiHxhQstls8v7jGv+LXc/22l49+vmRVUiJbwEyB+Q== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 48f2dae2-2b67-4545-b1e0-08d682a9d5ca x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB5636; x-ms-traffictypediagnostic: AM0PR04MB5636: x-microsoft-antispam-prvs: x-forefront-prvs: 0928072091 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(366004)(136003)(396003)(39860400002)(199004)(189003)(13464003)(105586002)(2906002)(106356001)(66066001)(6246003)(2501003)(305945005)(11346002)(446003)(486006)(476003)(478600001)(7736002)(74316002)(44832011)(256004)(53936002)(33656002)(14454004)(71190400001)(71200400001)(4326008)(7416002)(25786009)(93886005)(68736007)(26005)(81166006)(8676002)(81156014)(3846002)(186003)(8936002)(53546011)(6506007)(97736004)(54906003)(110136005)(6116002)(316002)(86362001)(76176011)(229853002)(9686003)(55016002)(102836004)(99286004)(6436002)(7696005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5636;H:AM0PR04MB4481.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-message-info: EboySHfvzVLNcgK4MEeZ8hL2zRZJ0iSrwE7z758Sd5RifWzrXlksfnoVIEDRc2ALhEk2fpK8qQjzcjHt3MKW+oz3eHyIsBlNJrZr+rxYDlEv7s6Ja1L56x8hz9lWTz4fA/favuzrAOO9ug6mLOLRGnIWfNSi+ilIO9tZw4qhRvvyF0sQ412IqYn7QkRo2dgldCe+8qLOU/LiLCm08tQnnVFH8da+tdGwRztEP0pxq3aFcgwQ/ypnFaxPx9M0JgjoW+i18QsRyMxxMX2CscaGVhdJyw+4Lr9MmqtaG9jhU3tcVPMnjC7E69FvPqFyIzWk7ZBpZFtzNdO04VqPcO0b069t5fVqKTkVgG3LgZ+bpB2fnYlr42hFbWCNmGtHR2s8xNjoJjlI+BIDdXMs4yvv1/QJNmktE5sIrhW2oqgcP8c= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 48f2dae2-2b67-4545-b1e0-08d682a9d5ca X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jan 2019 09:45:26.6481 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5636 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogaGNoQGluZnJhZGVh ZC5vcmcgW21haWx0bzpoY2hAaW5mcmFkZWFkLm9yZ10NCj4gU2VudDogMjAxOeW5tDHmnIgyNOaX pSA1OjE0DQo+IFRvOiBTdGVmYW5vIFN0YWJlbGxpbmkgPHNzdGFiZWxsaW5pQGtlcm5lbC5vcmc+ DQo+IENjOiBoY2hAaW5mcmFkZWFkLm9yZzsgUGVuZyBGYW4gPHBlbmcuZmFuQG54cC5jb20+OyBt c3RAcmVkaGF0LmNvbTsNCj4gamFzb3dhbmdAcmVkaGF0LmNvbTsgeGVuLWRldmVsQGxpc3RzLnhl bnByb2plY3Qub3JnOw0KPiBsaW51eC1yZW1vdGVwcm9jQHZnZXIua2VybmVsLm9yZzsgbGludXgt a2VybmVsQHZnZXIua2VybmVsLm9yZzsNCj4gdmlydHVhbGl6YXRpb25AbGlzdHMubGludXgtZm91 bmRhdGlvbi5vcmc7IGx1dG9Aa2VybmVsLm9yZzsgamdyb3NzQHN1c2UuY29tOw0KPiBib3Jpcy5v c3Ryb3Zza3lAb3JhY2xlLmNvbQ0KPiBTdWJqZWN0OiBSZTogW1hlbi1kZXZlbF0gW1JGQ10gdmly dGlvX3Jpbmc6IGNoZWNrIGRtYV9tZW0gZm9yIHhlbl9kb21haW4NCj4gDQo+IE9uIFdlZCwgSmFu IDIzLCAyMDE5IGF0IDAxOjA0OjMzUE0gLTA4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