diff options
author | 2020-11-05 12:34:58 -0400 | |
---|---|---|
committer | 2020-12-02 13:03:12 -0700 | |
commit | 7b06a56d468b756ad6bb43ac21b11e474ebc54a0 (patch) | |
tree | 31e5f91bf959f10bbbc2707832534cc934a5792a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | vfio/pci: Move dummy_resources_list init in vfio_pci_probe() (diff) | |
download | wireguard-linux-7b06a56d468b756ad6bb43ac21b11e474ebc54a0.tar.xz wireguard-linux-7b06a56d468b756ad6bb43ac21b11e474ebc54a0.zip |
vfio-pci: Use io_remap_pfn_range() for PCI IO memory
commit f8f6ae5d077a ("mm: always have io_remap_pfn_range() set
pgprot_decrypted()") allows drivers using mmap to put PCI memory mapped
BAR space into userspace to work correctly on AMD SME systems that default
to all memory encrypted.
Since vfio_pci_mmap_fault() is working with PCI memory mapped BAR space it
should be calling io_remap_pfn_range() otherwise it will not work on SME
systems.
Fixes: 11c4cd07ba11 ("vfio-pci: Fault mmaps to enable vma tracking")
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Acked-by: Peter Xu <peterx@redhat.com>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions