diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-10 19:21:11 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-10 19:21:11 -0400 |
| commit | 06ab838c2024db468855118087db16d8fa905ddc (patch) | |
| tree | 316ddb218bf3d5482bf16d38c129b71504780835 /include/xen | |
| parent | 573c577af079184ca523984e3279644eb37756a3 (diff) | |
| parent | 5f51042f876b88a3b81a135cc4ca0adb3d246112 (diff) | |
Merge tag 'for-linus-4.3-rc0b-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull xen terminology fixes from David Vrabel:
"Use the correct GFN/BFN terms more consistently"
* tag 'for-linus-4.3-rc0b-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
xen/xenbus: Rename the variable xen_store_mfn to xen_store_gfn
xen/privcmd: Further s/MFN/GFN/ clean-up
hvc/xen: Further s/MFN/GFN clean-up
video/xen-fbfront: Further s/MFN/GFN clean-up
xen/tmem: Use xen_page_to_gfn rather than pfn_to_gfn
xen: Use correctly the Xen memory terminologies
arm/xen: implement correctly pfn_to_mfn
xen: Make clear that swiotlb and biomerge are dealing with DMA address
Diffstat (limited to 'include/xen')
| -rw-r--r-- | include/xen/page.h | 4 | ||||
| -rw-r--r-- | include/xen/xen-ops.h | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/xen/page.h b/include/xen/page.h index a5983da2f5cd..1daae485e336 100644 --- a/include/xen/page.h +++ b/include/xen/page.h | |||
| @@ -3,9 +3,9 @@ | |||
| 3 | 3 | ||
| 4 | #include <asm/xen/page.h> | 4 | #include <asm/xen/page.h> |
| 5 | 5 | ||
| 6 | static inline unsigned long page_to_mfn(struct page *page) | 6 | static inline unsigned long xen_page_to_gfn(struct page *page) |
| 7 | { | 7 | { |
| 8 | return pfn_to_mfn(page_to_pfn(page)); | 8 | return pfn_to_gfn(page_to_pfn(page)); |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | struct xen_memory_region { | 11 | struct xen_memory_region { |
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h index 0ce4f32017ea..e4e214a5abd5 100644 --- a/include/xen/xen-ops.h +++ b/include/xen/xen-ops.h | |||
| @@ -30,7 +30,7 @@ void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order); | |||
| 30 | struct vm_area_struct; | 30 | struct vm_area_struct; |
| 31 | 31 | ||
| 32 | /* | 32 | /* |
| 33 | * xen_remap_domain_mfn_array() - map an array of foreign frames | 33 | * xen_remap_domain_gfn_array() - map an array of foreign frames |
| 34 | * @vma: VMA to map the pages into | 34 | * @vma: VMA to map the pages into |
| 35 | * @addr: Address at which to map the pages | 35 | * @addr: Address at which to map the pages |
| 36 | * @gfn: Array of GFNs to map | 36 | * @gfn: Array of GFNs to map |
| @@ -46,14 +46,14 @@ struct vm_area_struct; | |||
| 46 | * Returns the number of successfully mapped frames, or a -ve error | 46 | * Returns the number of successfully mapped frames, or a -ve error |
| 47 | * code. | 47 | * code. |
| 48 | */ | 48 | */ |
| 49 | int xen_remap_domain_mfn_array(struct vm_area_struct *vma, | 49 | int xen_remap_domain_gfn_array(struct vm_area_struct *vma, |
| 50 | unsigned long addr, | 50 | unsigned long addr, |
| 51 | xen_pfn_t *gfn, int nr, | 51 | xen_pfn_t *gfn, int nr, |
| 52 | int *err_ptr, pgprot_t prot, | 52 | int *err_ptr, pgprot_t prot, |
| 53 | unsigned domid, | 53 | unsigned domid, |
| 54 | struct page **pages); | 54 | struct page **pages); |
| 55 | 55 | ||
| 56 | /* xen_remap_domain_mfn_range() - map a range of foreign frames | 56 | /* xen_remap_domain_gfn_range() - map a range of foreign frames |
| 57 | * @vma: VMA to map the pages into | 57 | * @vma: VMA to map the pages into |
| 58 | * @addr: Address at which to map the pages | 58 | * @addr: Address at which to map the pages |
| 59 | * @gfn: First GFN to map. | 59 | * @gfn: First GFN to map. |
| @@ -65,12 +65,12 @@ int xen_remap_domain_mfn_array(struct vm_area_struct *vma, | |||
| 65 | * Returns the number of successfully mapped frames, or a -ve error | 65 | * Returns the number of successfully mapped frames, or a -ve error |
| 66 | * code. | 66 | * code. |
| 67 | */ | 67 | */ |
| 68 | int xen_remap_domain_mfn_range(struct vm_area_struct *vma, | 68 | int xen_remap_domain_gfn_range(struct vm_area_struct *vma, |
| 69 | unsigned long addr, | 69 | unsigned long addr, |
| 70 | xen_pfn_t gfn, int nr, | 70 | xen_pfn_t gfn, int nr, |
| 71 | pgprot_t prot, unsigned domid, | 71 | pgprot_t prot, unsigned domid, |
| 72 | struct page **pages); | 72 | struct page **pages); |
| 73 | int xen_unmap_domain_mfn_range(struct vm_area_struct *vma, | 73 | int xen_unmap_domain_gfn_range(struct vm_area_struct *vma, |
| 74 | int numpgs, struct page **pages); | 74 | int numpgs, struct page **pages); |
| 75 | int xen_xlate_remap_gfn_array(struct vm_area_struct *vma, | 75 | int xen_xlate_remap_gfn_array(struct vm_area_struct *vma, |
| 76 | unsigned long addr, | 76 | unsigned long addr, |
