Skip to content
Commit 09dfc8a5 authored by Alex Williamson's avatar Alex Williamson
Browse files

vfio/pci: Fallback huge faults for unaligned pfn

The PFN must also be aligned to the fault order to insert a huge
pfnmap.  Test the alignment and fallback when unaligned.

Fixes: f9e54c3a ("vfio/pci: implement huge_fault support")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=219619


Reported-by: default avatarAthul Krishna <athul.krishna.kr@protonmail.com>
Reported-by: default avatarPrecific <precification@posteo.de>
Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
Tested-by: default avatarPrecific <precification@posteo.de>
Link: https://lore.kernel.org/r/20250102183416.1841878-1-alex.williamson@redhat.com


Cc: stable@vger.kernel.org
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent fc033cf2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment