Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4444809imu; Tue, 29 Jan 2019 01:29:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN7o9cF8PNz/t9XFpa1suGe7DDSj1bvQVlpPqpvOkJmJ5zhJxWVlEO4r9SyfsIOIXyrLn+sj X-Received: by 2002:a63:c904:: with SMTP id o4mr22802542pgg.331.1548754175226; Tue, 29 Jan 2019 01:29:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548754175; cv=none; d=google.com; s=arc-20160816; b=cN8PokNClqylOhZwFUfSQOr2/jso0U391VHEhUPFhOhEYKo0MDkhk2QQ5lC/hRDIcU GIAp2dPQcS66YDGzHEQkbxL+AZEenUcgdBJn74KkTzeHcGOs5BOgrjNBd01t/5FduQIt Btixz9Qb9uVRo7VyhD+dXlARtYMMpwZW7xNaCWNGfVEYSCrrGe1e7dWQ7eqcadA6ItQy PA70A2B2SxhKwPdT9vb4LHQAjVXA0foKptRC3SYBYOwAGLSEZWZkZ0WwrZD6L5pZkphI YKTIjEnNjwjDN0KB+KaXhIlbbuo7iNdn0v9D0WJ91yA5Gnck5JXu1LGhsFt8iqY/KOgg oI1Q== 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=1+pzC84rXpvxv+fbLD1IfwWr2q4rWIWW306IBuS3jbg=; b=ZIh53CapjGiiDqisqP+xR8CeZEXvcS4XHMl+mUB7lL7y84vfOAQg/3MXaF1wipymAh n3iyXAfZ1bQ7XFkH1abyt6zdfJanrRT9XIxY2966fqaivTdOGdBZmlMbaVqCA4n+VQHw fuPWGjaofP9G9y8GWNLDtXSL53X39yBI2dRPN6RJoOXzSYLgxOG3rJohtjzuG2pjTY62 RnB/TfZD0XmFDKtEoufwdz2W8VffjPMUOEqjJbLYMolhGkcxKS3jzjhIjs9zSRiLR5Ai QQP+R8kv3U3gL2s6KUKBVDLE0WCcxRQb0B8lZ0QgG+9uGNtysrqWXuXBFBXn3GNKsJaj xiJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=FXN3f0Cv; 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 h31si1074021pgl.482.2019.01.29.01.29.19; Tue, 29 Jan 2019 01:29:35 -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=FXN3f0Cv; 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 S1727936AbfA2J1Z (ORCPT + 99 others); Tue, 29 Jan 2019 04:27:25 -0500 Received: from mail-eopbgr50064.outbound.protection.outlook.com ([40.107.5.64]:61229 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725799AbfA2J1Z (ORCPT ); Tue, 29 Jan 2019 04:27:25 -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=1+pzC84rXpvxv+fbLD1IfwWr2q4rWIWW306IBuS3jbg=; b=FXN3f0Cvo32PhA7vdDpTFnhoB//GTc4WW4VsmXkw9RY/oHO0npvEn2U/ZTBjglzl6FXitdZJACaut9V3Skux2xYJ9VeL1tEECq7yi/KZOIYkCY9a/AwDGnpWEX71C6+Kl/l0mlJQv+neGGVVk8xCuwMC1nQCNQBT7YWHtfgwwac= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.148.143) by AM0PR04MB4835.eurprd04.prod.outlook.com (20.176.215.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.21; Tue, 29 Jan 2019 09:26:41 +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.1558.023; Tue, 29 Jan 2019 09:26:41 +0000 From: Peng Fan To: "hch@infradead.org" CC: Stefano Stabellini , "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+AgAC8CgCAAOh3gIAAAqqAgAJgxoCABJ0ngIABj44Q Date: Tue, 29 Jan 2019 09:26:41 +0000 Message-ID: References: <20190121050056.14325-1-peng.fan@nxp.com> <20190123071232.GA20526@infradead.org> <20190123211405.GA4971@infradead.org> <20190128080028.GA18476@infradead.org> In-Reply-To: <20190128080028.GA18476@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.198] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB4835;6:a66CUhZyTY/Jqnbyo2Dg5NHXV9ybIUc4G6DWKkYD9CwLcDrqY1NHvo3Ay1td237c4J5qm0TO8qBPT/3/qj2x9+jsu29oBkwhU+0sXzGJZ8nXTvXfLdsu7nxZao2br9qAX+TJp4rXqGGvDS5tJnxwWPbOmtHoR/d2FssHTapd/bskm2d0Wsz4PrejMoSgzYWhzvsYcf4/ZneEeR/kIvcTOfvC7uFMMLm2pRnaIlZMno6WUpl7SY4BgDzl62MWDXOWSwPj3p2BicVG1q8cOk1/WJuvg5PbHjfieS8fnWvofPeu1QtVzo+ExjthH/owrCiVrmP41DO7dXP32zD/0xhpIderXRQYgTErdI0mR6u/5fYoju5Z70wqtGABRf3+MEAG765OJcnYnl+t2Y0GIiGw7TiHj6tHRzhzE1jhiL/j0p0d1Ggeosxj5kd5TcOgiLHyrLO6jKkhhzqOnYyhlc1URQ==;5:yLlg/+1UOtEto9/ACyKTFDK3p/Db2CQCP3WVHQGuPKAuIZYZYElxE4PUcabcvTZSiJUPil/30Xmru8yTUV7FjU4kuT9YUpFfzNWP+VLt1OEZ44+2lrQnZMCdcZ9wRpxzLPH3c41o+VUG7w1WWtdCpsRh5OUb2THed1gwrEkrO5MtRFxsR+lS0ASHUYMVH1Mel9S9dk92yRUSAgnFBi8F9g==;7:TRFgBjx+m0i+d0Uya9JoROsO3N+IHtUswK6Sl6uJE716DeUldFm+D1uTMcNniz88Eim4LNbCl0+w/U3njnTW1z3sz/60o6hanCDD2x/46hVsNsuK8lvUxQlnaZQMSyLYghYQZmAyiAbhnlB/CzyfRA== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: c1acabf1-9502-4069-b94f-08d685cbe09e 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:AM0PR04MB4835; x-ms-traffictypediagnostic: AM0PR04MB4835: x-microsoft-antispam-prvs: x-forefront-prvs: 093290AD39 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(396003)(366004)(39860400002)(136003)(346002)(13464003)(51914003)(199004)(189003)(6916009)(2906002)(478600001)(2501003)(33656002)(229853002)(26005)(7416002)(53936002)(53546011)(4326008)(6506007)(66066001)(86362001)(446003)(25786009)(102836004)(105586002)(256004)(14454004)(486006)(44832011)(11346002)(316002)(7696005)(106356001)(476003)(55016002)(2351001)(54906003)(7736002)(6246003)(186003)(5640700003)(9686003)(99286004)(74316002)(6436002)(93886005)(68736007)(305945005)(8936002)(1730700003)(71200400001)(8676002)(76176011)(71190400001)(3846002)(6116002)(81156014)(97736004)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4835;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: Oh4jJqVm4uSpkGxjuaIdkHgJIj+0KrttZZ5cRcjGZRc5HMO8xKr+RZJy0mDUBoyl1bMb6u6k9A+/IT8bT2kuBvlsbr+mi7pIez/Y1rq5yjET1d6x5h9miGdHBqSd0uw+DaaO8Y2C7RoAaBOHqIa2aFTXyKBbMPMmSLxWrinNzV6Kqo+Znv9h/d+1ZllGQPIV/Bv2LFURAoMIF7MimPdHAR0RP1S8YUVkJbagqgJFERqeHpPgoORffLxrQcKCC8TeDo5gRDS1HLlQA7xDslucWoRWJD10mJqXsjMoooB/juvR/exDaMrrIzOcv1H9f6j4wPvz06MpmJ/ClIm7DMYYAXRHHsds9ahWg91RQZdvibALQp1O4uMPTOvIbWNYLXnyLRhz6YDViTSgr+Juoq+3Un2ApiZbhRLCsV+LR8O0FC0= 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: c1acabf1-9502-4069-b94f-08d685cbe09e X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jan 2019 09:26:41.2047 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4835 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogaGNoQGluZnJhZGVhZC5v cmcgW21haWx0bzpoY2hAaW5mcmFkZWFkLm9yZ10NCj4gU2VudDogMjAxOcTqMdTCMjjI1SAxNjow MA0KPiBUbzogUGVuZyBGYW4gPHBlbmcuZmFuQG54cC5jb20+DQo+IENjOiBoY2hAaW5mcmFkZWFk Lm9yZzsgU3RlZmFubyBTdGFiZWxsaW5pIDxzc3RhYmVsbGluaUBrZXJuZWwub3JnPjsNCj4gbXN0 QHJlZGhhdC5jb207IGphc293YW5nQHJlZGhhdC5jb207IHhlbi1kZXZlbEBsaXN0cy54ZW5wcm9q ZWN0Lm9yZzsNCj4gbGludXgtcmVtb3RlcHJvY0B2Z2VyLmtlcm5lbC5vcmc7IGxpbnV4LWtlcm5l bEB2Z2VyLmtlcm5lbC5vcmc7DQo+IHZpcnR1YWxpemF0aW9uQGxpc3RzLmxpbnV4LWZvdW5kYXRp b24ub3JnOyBsdXRvQGtlcm5lbC5vcmc7IGpncm9zc0BzdXNlLmNvbTsNCj4gYm9yaXMub3N0cm92 c2t5QG9yYWNsZS5jb207IEFuZHkgRHVhbiA8ZnVnYW5nLmR1YW5AbnhwLmNvbT4NCj4gU3ViamVj dDogUmU6IFtYZW4tZGV2ZWxdIFtSRk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