Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6884392imu; Mon, 21 Jan 2019 18:33:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN6w1DFVjwJnO3gB6fHkt9c33cb3qhjPlnHX2/QOn4O4gAAAgQeOLbz0RgNr0Y/y4aAb/RE7 X-Received: by 2002:a17:902:bb98:: with SMTP id m24mr31579350pls.71.1548124426477; Mon, 21 Jan 2019 18:33:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548124426; cv=none; d=google.com; s=arc-20160816; b=xOzoVFVbzJj/pL2139FWUQIPWBjPnHTAOQ97wcZ9Q7JvsnAdYGhmLI5HtEbmWrUzW1 Va0ywVXn1oE+fj0QqLW/bKgDZeIzeaKE3FcMD7MO4Mp2Ze5brqFfwU9q31oAJBG6D/N2 02U4IJQALmF/P6gFZS7wTyTMxdRIAYSpiL2JCL3J7DeS90KhAH3IsEL7aoJrwFuBvAwP KEPTeCXO8TC+oeO2bRBO2xhOKNzu5cDhAlhaytwbV/7xmDpGmG+WJkx1rZJHlYL0wyai A3Wfb2JWoj9XViAPcNrS/+tFgaI3hS8JZKQ6g8stlW/jO5MuChdForCAfWXKK8U3HhND 9o7w== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=Cr9dTHZo3qWTn7vfr1giNyR6yYP+xxcdeWiut5PQ6DY=; b=DykvmxZO47GnJza0pN9EAhS7PpeVI8+T3OKBicSXdLqPwUkthSZlKN7HluC3Mk8ZKX z6D80ZdFNb0ApyxHQFOAZuQyJ/w4gFUO/CWIpXdxWgxs9ceAR3jJ2/6l6xADPgYRrDvh vMHEFXZTgPyTecZuFUmKFYH1JJZiIGCX/PNc3gheWm4eWxglzfhjVCQOmwL68FR/pwpe XNSwm0hp+U/9is1OL68IOQYRPbWrerIfUFOtzeA2jbbdfYmcY4tri2KEEzEvZmeSXG9S UiJvxci7Pf1QUhN6v+h74RY8GHKWp+8cicIVzZLW5uwyJFePKEZ/o5mj9seXujjhIX8+ jnSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=bSfbdANj; 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 59si14342699ple.291.2019.01.21.18.33.30; Mon, 21 Jan 2019 18:33:46 -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=bSfbdANj; 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 S1726867AbfAVCcZ (ORCPT + 99 others); Mon, 21 Jan 2019 21:32:25 -0500 Received: from mail-eopbgr130078.outbound.protection.outlook.com ([40.107.13.78]:64319 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725950AbfAVCcY (ORCPT ); Mon, 21 Jan 2019 21:32:24 -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=Cr9dTHZo3qWTn7vfr1giNyR6yYP+xxcdeWiut5PQ6DY=; b=bSfbdANjyc7Wq13C4eDTh70Zul4jSZ7xkQFmR8p1HHtO6dlUEchzbhsLQfjQbA8VJydwj9+Zjyo68mXM22TBYj+YMeozuZ37N/6lRdJbZdYvuz1XHsYJ7e4WsS4HC9DqB6pJbg6BctvHfIMTaRPktp2go5E51Ic71svbiVgyP3g= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.148.143) by AM0PR04MB6211.eurprd04.prod.outlook.com (20.179.34.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.26; Tue, 22 Jan 2019 02:32:19 +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.031; Tue, 22 Jan 2019 02:32:19 +0000 From: Peng Fan To: "hch@infradead.org" CC: "mst@redhat.com" , "jasowang@redhat.com" , "sstabellini@kernel.org" , "virtualization@lists.linux-foundation.org" , "xen-devel@lists.xenproject.org" , "linux-kernel@vger.kernel.org" , "linux-remoteproc@vger.kernel.org" Subject: RE: [RFC] virtio_ring: check dma_mem for xen_domain Thread-Topic: [RFC] virtio_ring: check dma_mem for xen_domain Thread-Index: AQHUsUUJrf+HCksNJUevQFBecw2Jm6W5ZAkAgAErX3A= Date: Tue, 22 Jan 2019 02:32:19 +0000 Message-ID: References: <20190121050056.14325-1-peng.fan@nxp.com> <20190121082830.GC12420@infradead.org> In-Reply-To: <20190121082830.GC12420@infradead.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [92.121.36.197] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB6211;6:gbbBEfhXfPhkKNp9TNmRkFU16wi8w2H+3OS/tWHBaN2zSkWx6uYrnkr7fI5KEF10/+/JM20V7JrlnKADI0vea+lt+0IX448YzSqzxxUap5Ec5WHmXG2h22klM59AwDPDtUrVC2vUcXOPakFakVyMrPTBHb0rqhE8bBmfn5H3A7+mr43EC7fBxuhhZm5O9FiKF+PsbN10g7mLxOqDk3GhFZbrk56/DouI0IBCKlJkbbD4cPZ50/63wLK2eEDSQioY4MZLWyEfyQaSD+wb7S9UIcWrSJE1LcYHHxhTuw94u1vVx28Lx3pes59dCFyWYP6uUnKOI0kRq1U/GM5YsbnkYmqB6Q5WKzi5oDnKtbLzKpKq5Gdo5pRwgp1VIxXXSpDLDhtJoHCIB0myfOh2mATieaeocu872//KpJbkmQl0kVqKXJ+dqu8a5EG9t7dxU+OOYqwN2PjyTWKGSvGQg4PkPw==;5:jKnVDxdFchZ+vjSW8BS26fnL2N0uIGRL/tIrXfDkmyXBJRbtHLVUdJvcd4iG9aSLNyMYrbAYtP/QVw9gG58pT8t+hiY3AhZNjQj9V+gvuSSzZbN//+KUqG/FGXz7XhQvDRmIEOkOwi8WGN7qn+tZNSAfMRL5Qg+IJ9l9SdJnN8DCdKJgKd31462hs3GqhYL2eBOv2gr5hMO3wi7GqpHqcQ==;7:edhCmutU1iW6U2g0h+FXKPHApYNog234Z6JMFelA4WNPdkaqWPkyTsNAywPyBauel55P1gOwqtG20CF2ZQWjmswRWkH0s+m+B5ireRTscxzP2r5FL4nphjbAsHZA2P4if6VPp0bR9j3pOyH1RT2TyA== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: ea2de6cc-22df-4952-504d-08d68011d4d5 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB6211; x-ms-traffictypediagnostic: AM0PR04MB6211: x-microsoft-antispam-prvs: x-forefront-prvs: 0925081676 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(366004)(396003)(39860400002)(346002)(136003)(13464003)(189003)(199004)(476003)(3846002)(11346002)(316002)(53546011)(26005)(99286004)(6506007)(102836004)(446003)(6346003)(7696005)(76176011)(86362001)(6116002)(8936002)(81166006)(81156014)(1730700003)(8676002)(68736007)(44832011)(486006)(53936002)(2501003)(55016002)(9686003)(7736002)(2351001)(6306002)(105586002)(71190400001)(71200400001)(106356001)(305945005)(966005)(2906002)(74316002)(33656002)(6436002)(186003)(54906003)(5640700003)(6916009)(6246003)(66066001)(256004)(478600001)(25786009)(14454004)(4326008)(97736004)(229853002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB6211;H:AM0PR04MB4481.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 24gtk7fpTy4xh797oOD1M+St3YGWml3Qr1n/8yGAdQ/Hm5yy9FstGLdAypTRG2VXKoXVgwHhbpZj+armA7Vjv7QaeAklbtHay1gucAAbXpQmivDNb24qRp4bo5B6MwFQB+A03SEvQGGgHJPGUsNDDUFQTQ96DJLVyYFhC6UMd4OUPv2r22IdXRgAkeyHiDxZt5WUhfeza7VG49lo6dN/QnAcfzAPHJx53ePOVplEq9XhD6H6nmOTfxtVazYbVxIvzidrZqeIau2vtNH6E0qVR5uB8y1HcAk5glr3lJd0gJqBFNF2zL53OCUtOoVVjKRHtbO0tNXsjIRs+1pu0l6jneIyETGm/QHOkAG8vUn/A8QsNlEsZIN55+h6tv964Z2Ag6D9VeJ/D5s6zkZRgDVokzrHCswEKAyiBd+HRBZSzCk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea2de6cc-22df-4952-504d-08d68011d4d5 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jan 2019 02:32:19.2271 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6211 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBoY2hAaW5mcmFkZWFk Lm9yZyBbbWFpbHRvOmhjaEBpbmZyYWRlYWQub3JnXQ0KPiBTZW50OiAyMDE5xOox1MIyMcjVIDE2 OjI5DQo+IFRvOiBQZW5nIEZhbiA8cGVuZy5mYW5AbnhwLmNvbT4NCj4gQ2M6IG1zdEByZWRoYXQu Y29tOyBqYXNvd2FuZ0ByZWRoYXQuY29tOyBzc3RhYmVsbGluaUBrZXJuZWwub3JnOw0KPiBoY2hA aW5mcmFkZWFkLm9yZzsgdmlydHVhbGl6YXRpb25AbGlzdHMubGludXgtZm91bmRhdGlvbi5vcmc7 DQo+IHhlbi1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZzsgbGludXgta2VybmVsQHZnZXIua2Vy bmVsLm9yZzsNCj4gbGludXgtcmVtb3RlcHJvY0B2Z2VyLmtlcm5lbC5vcmcNCj4gU3ViamVjdDog UmU6IFtSRkNdIHZpcnRpb19yaW5nOiBjaGVjayBkbWFfbWVtIGZvciB4ZW5fZG9tYWluDQo+IA0K PiBPbiBNb24sIEphbiAyMSwgMjAxOSBhdCAwNDo1MTo1N0FNICswMDAwLCBQZW5nIEZhbiB3cm90 ZToNCj4gPiBvbiBpLk1YOFFNLCBNNF8xIGlzIGNvbW11bmljYXRpbmcgd2l0aCBEb21VIHVzaW5n IHJwbXNnIHdpdGggYSBmaXhlZA0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