diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2008-07-30 17:32:27 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-21 23:34:44 -0400 |
commit | f86399396ce7a4f4069828b7dceac5aa5113dfb5 (patch) | |
tree | 2f5140fc4acdc33d615cd776bf212e310dc9345b /include | |
parent | 6e86841d05f371b5b9b86ce76c02aaee83352298 (diff) |
x86, paravirt_ops: use unsigned long instead of u32 for alloc_p*() pfn args
This patch changes the pfn args from 'u32' to 'unsigned long'
on alloc_p*() functions on paravirt_ops, and the corresponding
implementations for Xen and VMI. The prototypes for CONFIG_PARAVIRT=n
are already using unsigned long, so paravirt.h now matches the prototypes
on asm-x86/pgalloc.h.
It shouldn't result in any changes on generated code on 32-bit, with
or without CONFIG_PARAVIRT. On both cases, 'codiff -f' didn't show any
change after applying this patch.
On 64-bit, there are (expected) binary changes only when CONFIG_PARAVIRT
is enabled, as the patch is really supposed to change the size of the
pfn args.
[ v2: KVM_GUEST: use the right parameter type on kvm_release_pt() ]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Jeremy Fitzhardinge <jeremy@goop.org>
Acked-by: Zachary Amsden <zach@vmware.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/paravirt.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h index fbbde93f12d6..497aea0f41ac 100644 --- a/include/asm-x86/paravirt.h +++ b/include/asm-x86/paravirt.h | |||
@@ -257,13 +257,13 @@ struct pv_mmu_ops { | |||
257 | * Hooks for allocating/releasing pagetable pages when they're | 257 | * Hooks for allocating/releasing pagetable pages when they're |
258 | * attached to a pagetable | 258 | * attached to a pagetable |
259 | */ | 259 | */ |
260 | void (*alloc_pte)(struct mm_struct *mm, u32 pfn); | 260 | void (*alloc_pte)(struct mm_struct *mm, unsigned long pfn); |
261 | void (*alloc_pmd)(struct mm_struct *mm, u32 pfn); | 261 | void (*alloc_pmd)(struct mm_struct *mm, unsigned long pfn); |
262 | void (*alloc_pmd_clone)(u32 pfn, u32 clonepfn, u32 start, u32 count); | 262 | void (*alloc_pmd_clone)(unsigned long pfn, unsigned long clonepfn, unsigned long start, unsigned long count); |
263 | void (*alloc_pud)(struct mm_struct *mm, u32 pfn); | 263 | void (*alloc_pud)(struct mm_struct *mm, unsigned long pfn); |
264 | void (*release_pte)(u32 pfn); | 264 | void (*release_pte)(unsigned long pfn); |
265 | void (*release_pmd)(u32 pfn); | 265 | void (*release_pmd)(unsigned long pfn); |
266 | void (*release_pud)(u32 pfn); | 266 | void (*release_pud)(unsigned long pfn); |
267 | 267 | ||
268 | /* Pagetable manipulation functions */ | 268 | /* Pagetable manipulation functions */ |
269 | void (*set_pte)(pte_t *ptep, pte_t pteval); | 269 | void (*set_pte)(pte_t *ptep, pte_t pteval); |
@@ -993,35 +993,35 @@ static inline void paravirt_pgd_free(struct mm_struct *mm, pgd_t *pgd) | |||
993 | PVOP_VCALL2(pv_mmu_ops.pgd_free, mm, pgd); | 993 | PVOP_VCALL2(pv_mmu_ops.pgd_free, mm, pgd); |
994 | } | 994 | } |
995 | 995 | ||
996 | static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned pfn) | 996 | static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned long pfn) |
997 | { | 997 | { |
998 | PVOP_VCALL2(pv_mmu_ops.alloc_pte, mm, pfn); | 998 | PVOP_VCALL2(pv_mmu_ops.alloc_pte, mm, pfn); |
999 | } | 999 | } |
1000 | static inline void paravirt_release_pte(unsigned pfn) | 1000 | static inline void paravirt_release_pte(unsigned long pfn) |
1001 | { | 1001 | { |
1002 | PVOP_VCALL1(pv_mmu_ops.release_pte, pfn); | 1002 | PVOP_VCALL1(pv_mmu_ops.release_pte, pfn); |
1003 | } | 1003 | } |
1004 | 1004 | ||
1005 | static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned pfn) | 1005 | static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned long pfn) |
1006 | { | 1006 | { |
1007 | PVOP_VCALL2(pv_mmu_ops.alloc_pmd, mm, pfn); | 1007 | PVOP_VCALL2(pv_mmu_ops.alloc_pmd, mm, pfn); |
1008 | } | 1008 | } |
1009 | 1009 | ||
1010 | static inline void paravirt_alloc_pmd_clone(unsigned pfn, unsigned clonepfn, | 1010 | static inline void paravirt_alloc_pmd_clone(unsigned long pfn, unsigned long clonepfn, |
1011 | unsigned start, unsigned count) | 1011 | unsigned long start, unsigned long count) |
1012 | { | 1012 | { |
1013 | PVOP_VCALL4(pv_mmu_ops.alloc_pmd_clone, pfn, clonepfn, start, count); | 1013 | PVOP_VCALL4(pv_mmu_ops.alloc_pmd_clone, pfn, clonepfn, start, count); |
1014 | } | 1014 | } |
1015 | static inline void paravirt_release_pmd(unsigned pfn) | 1015 | static inline void paravirt_release_pmd(unsigned long pfn) |
1016 | { | 1016 | { |
1017 | PVOP_VCALL1(pv_mmu_ops.release_pmd, pfn); | 1017 | PVOP_VCALL1(pv_mmu_ops.release_pmd, pfn); |
1018 | } | 1018 | } |
1019 | 1019 | ||
1020 | static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned pfn) | 1020 | static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) |
1021 | { | 1021 | { |
1022 | PVOP_VCALL2(pv_mmu_ops.alloc_pud, mm, pfn); | 1022 | PVOP_VCALL2(pv_mmu_ops.alloc_pud, mm, pfn); |
1023 | } | 1023 | } |
1024 | static inline void paravirt_release_pud(unsigned pfn) | 1024 | static inline void paravirt_release_pud(unsigned long pfn) |
1025 | { | 1025 | { |
1026 | PVOP_VCALL1(pv_mmu_ops.release_pud, pfn); | 1026 | PVOP_VCALL1(pv_mmu_ops.release_pud, pfn); |
1027 | } | 1027 | } |