[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v9 4/8] iommu: make map and unmap take a page count, similar to flush
- To: Paul Durrant <paul@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
- Date: Thu, 17 Sep 2020 06:38:37 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none
- 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=enV8Crh3BdotEevrv+bj8v2CtJOgHc0jXRd7CyBjd4A=; b=U2ERuf301PigAjnkcaVLfcMKVgXuGBDDZYB1j+TEJcmNjET+SWA4I/HDz+dZboAGRLuC5CEO8JuUdOda5MFmS5JaWzLQdUHQyiPfBXFJOATvmpvm1SaccuEPwcM+i+EN6v56M+yMRfmOX4D3/wKWmNnGPLQskXrtiZPNF8dNQmqbaCocX038Qfa909f3eGxMxbhW7uW3W1/3P/53XlbrAFx4MIA1wv8NetJKs4G8bituc+CViI66xTMfjRbfvsQ3TAN7C/J1skCuvZczyJgq9XRpSTvoUe62WD0rFmpkk6RsgRzN/WZnhP6tozDshmK1WN/G55FVBowMOUhQ0+KqUQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FV5LqSTjzZaPaTLIE8euWzBowumrjx7rUtD19qAprIEFJ4BXznBDzFcuv0kI6ny0NLt4NR5mA3h5reYf3LBCMo2AantWL26ZoBLhpUvYWxnRXIwUtaYZCjWbTobPFPqNDw6YyCIgHxvt2wV7heFtSd5Q7wjBuUsveq1+/phhqQJ1+WJj8UkoJaER69jVXGs2vnH8i9x3ABBpzm2QzAIM8aet8LMsGCJrMvpWYzwqgsZBf1fgUYidprnw6DColIQdsSRjxhv0yqk9lg3O8geeORiXsp782E/O9vs+c8dS5nVscsps2l8LlUwwDidprNxr3D2oOluRdSNe0ncMxfrQkA==
- Authentication-results: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=intel.com;
- Cc: Paul Durrant <pdurrant@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, "Wei Liu" <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Oleksandr Tyshchenko <olekstysh@xxxxxxxxx>
- Delivery-date: Thu, 17 Sep 2020 06:39:08 +0000
- Dlp-product: dlpe-windows
- Dlp-reaction: no-action
- Dlp-version: 11.5.1.3
- Ironport-sdr: VW7R6iKH7+rW+KOzyE79k6CnBmrHUvs99PQb+y3ah0lM3aqCMNOifxiAv0U1q9Ng7qjKGxDhuD 4oQMNKja3XwA==
- Ironport-sdr: 1klpFRb93gzjtAePgS2/JQmv2DMczF33OZXV8bagvBIUVDGAlCN603l1Yd9AYl6x4GHWFlcjPF IZTmkCPypNKA==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHWizpu2HFhoXKThUmBn3OEbnxAq6lsYmmw
- Thread-topic: [PATCH v9 4/8] iommu: make map and unmap take a page count, similar to flush
> From: Paul Durrant <paul@xxxxxxx>
> Sent: Tuesday, September 15, 2020 4:30 PM
>
> From: Paul Durrant <pdurrant@xxxxxxxxxx>
>
> At the moment iommu_map() and iommu_unmap() take a page order rather
> than a
> count, whereas iommu_iotlb_flush() takes a page count rather than an order.
> This patch makes them consistent with each other, opting for a page count
> since
> CPU page orders are not necessarily the same as those of an IOMMU.
>
> NOTE: The 'page_count' parameter is also made an unsigned long in all the
> aforementioned functions.
>
> Signed-off-by: Paul Durrant <pdurrant@xxxxxxxxxx>
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
> Reviewed-by: Julien Grall <julien@xxxxxxx>
Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>
|