Skip to content

Commit 5f19a10

Browse files
committed
vfio: use the new follow_pfnmap API
jira LE-3557 Rebuild_History Non-Buildable kernel-5.14.0-570.26.1.el9_6 commit-author Peter Xu <[email protected]> commit a77f948 Empty-Commit: Cherry-Pick Conflicts during history rebuild. Will be included in final tarball splat. Ref for failed cherry-pick at: ciq/ciq_backports/kernel-5.14.0-570.26.1.el9_6/a77f9489.failed Use the new API that can understand huge pfn mappings. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Peter Xu <[email protected]> Cc: Alex Williamson <[email protected]> Cc: Jason Gunthorpe <[email protected]> Cc: Alexander Gordeev <[email protected]> Cc: Aneesh Kumar K.V <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Christian Borntraeger <[email protected]> Cc: Dave Hansen <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Gavin Shan <[email protected]> Cc: Gerald Schaefer <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Niklas Schnelle <[email protected]> Cc: Paolo Bonzini <[email protected]> Cc: Ryan Roberts <[email protected]> Cc: Sean Christopherson <[email protected]> Cc: Sven Schnelle <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vasily Gorbik <[email protected]> Cc: Will Deacon <[email protected]> Cc: Zi Yan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> (cherry picked from commit a77f948) Signed-off-by: Jonathan Maple <[email protected]> # Conflicts: # drivers/vfio/vfio_iommu_type1.c
1 parent ced875c commit 5f19a10

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
vfio: use the new follow_pfnmap API
2+
3+
jira LE-3557
4+
Rebuild_History Non-Buildable kernel-5.14.0-570.26.1.el9_6
5+
commit-author Peter Xu <[email protected]>
6+
commit a77f9489f1d7873a56e1d6640cc0c4865f64176b
7+
Empty-Commit: Cherry-Pick Conflicts during history rebuild.
8+
Will be included in final tarball splat. Ref for failed cherry-pick at:
9+
ciq/ciq_backports/kernel-5.14.0-570.26.1.el9_6/a77f9489.failed
10+
11+
Use the new API that can understand huge pfn mappings.
12+
13+
Link: https://lkml.kernel.org/r/[email protected]
14+
Signed-off-by: Peter Xu <[email protected]>
15+
Cc: Alex Williamson <[email protected]>
16+
Cc: Jason Gunthorpe <[email protected]>
17+
Cc: Alexander Gordeev <[email protected]>
18+
Cc: Aneesh Kumar K.V <[email protected]>
19+
Cc: Borislav Petkov <[email protected]>
20+
Cc: Catalin Marinas <[email protected]>
21+
Cc: Christian Borntraeger <[email protected]>
22+
Cc: Dave Hansen <[email protected]>
23+
Cc: David Hildenbrand <[email protected]>
24+
Cc: Gavin Shan <[email protected]>
25+
Cc: Gerald Schaefer <[email protected]>
26+
Cc: Heiko Carstens <[email protected]>
27+
Cc: Ingo Molnar <[email protected]>
28+
Cc: Matthew Wilcox <[email protected]>
29+
Cc: Niklas Schnelle <[email protected]>
30+
Cc: Paolo Bonzini <[email protected]>
31+
Cc: Ryan Roberts <[email protected]>
32+
Cc: Sean Christopherson <[email protected]>
33+
Cc: Sven Schnelle <[email protected]>
34+
Cc: Thomas Gleixner <[email protected]>
35+
Cc: Vasily Gorbik <[email protected]>
36+
Cc: Will Deacon <[email protected]>
37+
Cc: Zi Yan <[email protected]>
38+
Signed-off-by: Andrew Morton <[email protected]>
39+
(cherry picked from commit a77f9489f1d7873a56e1d6640cc0c4865f64176b)
40+
Signed-off-by: Jonathan Maple <[email protected]>
41+
42+
# Conflicts:
43+
# drivers/vfio/vfio_iommu_type1.c
44+
diff --cc drivers/vfio/vfio_iommu_type1.c
45+
index 6c6586af7953,bf391b40e576..000000000000
46+
--- a/drivers/vfio/vfio_iommu_type1.c
47+
+++ b/drivers/vfio/vfio_iommu_type1.c
48+
@@@ -515,12 -513,10 +515,14 @@@ static int follow_fault_pfn(struct vm_a
49+
unsigned long vaddr, unsigned long *pfn,
50+
bool write_fault)
51+
{
52+
- pte_t *ptep;
53+
- pte_t pte;
54+
- spinlock_t *ptl;
55+
+ struct follow_pfnmap_args args = { .vma = vma, .address = vaddr };
56+
int ret;
57+
58+
++<<<<<<< HEAD
59+
+ ret = follow_pte(vma->vm_mm, vaddr, &ptep, &ptl);
60+
++=======
61+
+ ret = follow_pfnmap_start(&args);
62+
++>>>>>>> a77f9489f1d7 (vfio: use the new follow_pfnmap API)
63+
if (ret) {
64+
bool unlocked = false;
65+
66+
@@@ -534,7 -530,7 +536,11 @@@
67+
if (ret)
68+
return ret;
69+
70+
++<<<<<<< HEAD
71+
+ ret = follow_pte(vma->vm_mm, vaddr, &ptep, &ptl);
72+
++=======
73+
+ ret = follow_pfnmap_start(&args);
74+
++>>>>>>> a77f9489f1d7 (vfio: use the new follow_pfnmap API)
75+
if (ret)
76+
return ret;
77+
}
78+
* Unmerged path drivers/vfio/vfio_iommu_type1.c

0 commit comments

Comments
 (0)