Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6001124imu; Wed, 30 Jan 2019 07:11:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN6R/x21sp2F6IsE+/4HaHHLdeWC5cWLMTu7iy+ix2hSdzLBKYPPJp8f42911oSdf3AIvR9v X-Received: by 2002:a17:902:7005:: with SMTP id y5mr30941198plk.7.1548861068554; Wed, 30 Jan 2019 07:11:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548861068; cv=none; d=google.com; s=arc-20160816; b=OJoY87gc6i5KVkyY7GiD3qtWhOLzIrDL4uF6UoDzQHe+WXLR2Q/wLsZpualtwSlotQ tuKJghDbddLPoixX2/IRa5Gfywlpa3+nYaBEs7BHfr0T1ltf1dExVfXuxWkisysOLsR1 dAp1vR9DtxGEc33ACWjjUl15bhSpb1WumkGNQY5l+jEUQZVMNP/5gyH6WOZkzjN7tP+G 6els5dF+wmKZ5wBJUudQfBpRW0OZ0Ba3gFuNJULu2s5pyxswKHQmEY4ivB8qg9DGMjPN 8LiCmeC9F7G5yQ5DUNUlhVnFdCFw0J7G9Fy5rqp8nALYiakAq5s1nEBmLKY/5H0TWr83 8Kfg== 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-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=DCjQpwtmb9lxjDv6t+MekMSpE58/bWDAiLNYsGxb680=; b=yAKJOBZzkWGk7/9spUwZDVn06x+CZClbS7B01BUM7tNAH+j/DyTTddCHHdN02gmzN+ ikPBBqlXULxzmmx7YGQNXHzDaGssAGG+ZxqgDWikKXBQDQRlCXfLRXNbmj3gxe7gRw32 hBWDFa3IWFxILx/6VHaLA+WYqDtrLNDZSv82LC1Y713OQXbsCdryjMMjQJ0HwW5vcHls +6jsYIX7Cjlo8aikukvQWKcNAMJ/tUbBFemAQH4ccLE95wPQa0TtpS5+qCvvZUrJRNKu 05srymeIrf0CZPwQ0il8vZXWwLsKP8/pxde8zg6cySxjnB38J9sVZh5Lk+Zimtjnr9fm FhYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b="oa8t/X5J"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x128si1820303pfb.128.2019.01.30.07.10.50; Wed, 30 Jan 2019 07:11:08 -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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b="oa8t/X5J"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730254AbfA3PKp (ORCPT + 99 others); Wed, 30 Jan 2019 10:10:45 -0500 Received: from mail-eopbgr690042.outbound.protection.outlook.com ([40.107.69.42]:45184 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726332AbfA3PKp (ORCPT ); Wed, 30 Jan 2019 10:10:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DCjQpwtmb9lxjDv6t+MekMSpE58/bWDAiLNYsGxb680=; b=oa8t/X5J5v5KVsFbnG12FfuSaeR8yg7bGKOeM80+/pcAOcmg8N9Mv1sxGgFosm2yf+p0nzSwESDbCd09yMEAxuJ6gO4qjvxAnyPH+th/PlmtZXk9iIYG7ZzwmRApH/4oQ1Fhk9W+T2Ff9cEz2HYMg+Fqqp0v2+TP9yxbwXK1ZNg= Received: from MN2PR12MB3631.namprd12.prod.outlook.com (20.178.243.19) by MN2PR12MB3632.namprd12.prod.outlook.com (20.178.243.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1580.16; Wed, 30 Jan 2019 15:10:29 +0000 Received: from MN2PR12MB3631.namprd12.prod.outlook.com ([fe80::a861:43c0:476d:e044]) by MN2PR12MB3631.namprd12.prod.outlook.com ([fe80::a861:43c0:476d:e044%5]) with mapi id 15.20.1580.017; Wed, 30 Jan 2019 15:10:29 +0000 From: "Lendacky, Thomas" To: Joerg Roedel , "Michael S . Tsirkin" , Jason Wang , Konrad Rzeszutek Wilk , Christoph Hellwig CC: Jens Axboe , "virtualization@lists.linux-foundation.org" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "jfehlig@suse.com" , "Grimm, Jon" , "Singh, Brijesh" , "jroedel@suse.de" Subject: Re: [PATCH 4/5] virtio: Introduce virtio_max_dma_size() Thread-Topic: [PATCH 4/5] virtio: Introduce virtio_max_dma_size() Thread-Index: AQHUt677Jk4fk5o5Fke87yAomV3Fp6XH7H0A Date: Wed, 30 Jan 2019 15:10:29 +0000 Message-ID: References: <20190129084342.26030-1-joro@8bytes.org> <20190129084342.26030-5-joro@8bytes.org> In-Reply-To: <20190129084342.26030-5-joro@8bytes.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0501CA0064.namprd05.prod.outlook.com (2603:10b6:803:41::41) To MN2PR12MB3631.namprd12.prod.outlook.com (2603:10b6:208:cc::19) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.78.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MN2PR12MB3632;20:HaJDKAazBdY5rtUYVKQxWcMGns92D89cn3ff7vIMOPvd8jv6GGtsMDtsdEacEhknPtjTeqztj09xC4Gk74NVrwMZ0+pdv2zJ4O/VpEYppHOuwE38HnbsSqZ99Bz1RR1/seEkPshOsU6OiIrjYtHhex5o0CKGbL/tAEb4uTkVRBBK1Bane/paIJ74MLvzZ/GChDkOy7yAR1vbPLrj79nDqIZ0Cls7MV7CX2ZnrUsNVmdwQbSAJ7KoCMP/XqWZp6WO x-ms-office365-filtering-correlation-id: 3de963d8-90a2-428a-9267-08d686c5122d 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:MN2PR12MB3632; x-ms-traffictypediagnostic: MN2PR12MB3632: x-microsoft-antispam-prvs: x-forefront-prvs: 0933E9FD8D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(39860400002)(366004)(396003)(346002)(136003)(189003)(199004)(31696002)(6512007)(86362001)(31686004)(6116002)(53936002)(486006)(6246003)(6486002)(6436002)(7736002)(71190400001)(476003)(446003)(4326008)(68736007)(66066001)(2616005)(3846002)(106356001)(99286004)(11346002)(14444005)(36756003)(305945005)(97736004)(71200400001)(256004)(105586002)(229853002)(25786009)(6506007)(110136005)(26005)(76176011)(478600001)(386003)(72206003)(53546011)(54906003)(52116002)(8676002)(81166006)(8936002)(14454004)(2906002)(81156014)(186003)(316002)(7416002)(102836004);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR12MB3632;H:MN2PR12MB3631.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: YOtyxEPgMJ18LFne7XurXhNKqS8n9N0emsRbbBczamqyUVYcMIGdHzA6lpUI5BANtUiEQC740cy68nL3qVFGi+d+ujTlpZvzXwMgeya78+vz2QjajXqAFl7X0ge6V0Tmz5cKUHK+hUsrfibGHRsYuP6Tq7bArpqBFM3bNn/D9inP46T6EA7cHKfcDF/u4tJ2aKQ6GN9GViTrasqMXptszCg/n3LC8f5SwMk5CaMaRwKuNQml15MSmIRvgRUJRAxIjPQW9y6xa8m0hz/inHQVOuwpxmBWGyFPjk7lWIZQHFrfasJEtibJBTnVe3nqhVXWiTpsmvQvM678LQn2AhSKpDC8WhvlPNt+VIbyrGsJgJEMgDv4YVpyKNZsmbVf4D+QQhw0EkO8cNMywBA9iSqNx1NGS0Bgb1f2EEyDbRQ/mFI= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3de963d8-90a2-428a-9267-08d686c5122d X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2019 15:10:28.2273 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3632 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMS8yOS8xOSAyOjQzIEFNLCBKb2VyZyBSb2VkZWwgd3JvdGU6DQo+IEZyb206IEpvZXJnIFJv ZWRlbCA8anJvZWRlbEBzdXNlLmRlPg0KPiANCj4gVGhpcyBmdW5jdGlvbiByZXR1cm5zIHRoZSBt YXhpbXVtIHNlZ21lbnQgc2l6ZSBmb3IgYSBzaW5nbGUNCj4gZG1hIHRyYW5zYWN0aW9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