summaryrefslogtreecommitdiffstats
path: root/drivers/vfio/pci
diff options
context:
space:
mode:
authorAlexey Kardashevskiy2018-12-19 09:52:29 +0100
committerMichael Ellerman2018-12-21 06:20:46 +0100
commit58629c0dc34904d135af944d120eb23165ec3b61 (patch)
treec6e96ae78213fc95c6f7181047ee68210d6440d1 /drivers/vfio/pci
parentpowerpc/powernv/npu: Check mmio_atsd array bounds when populating (diff)
downloadkernel-qcow2-linux-58629c0dc34904d135af944d120eb23165ec3b61.tar.gz
kernel-qcow2-linux-58629c0dc34904d135af944d120eb23165ec3b61.tar.xz
kernel-qcow2-linux-58629c0dc34904d135af944d120eb23165ec3b61.zip
powerpc/powernv/npu: Fault user page into the hypervisor's pagetable
When a page fault happens in a GPU, the GPU signals the OS and the GPU driver calls the fault handler which populated a page table; this allows the GPU to complete an ATS request. On the bare metal get_user_pages() is enough as it adds a pte to the kernel page table but under KVM the partition scope tree does not get updated so ATS will still fail. This reads a byte from an effective address which causes HV storage interrupt and KVM updates the partition scope tree. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/vfio/pci')
0 files changed, 0 insertions, 0 deletions