linux/arch/x86/xen
Eduardo Habkost 169ad16bb8 xen_alloc_ptpage: cast PFN_PHYS() argument to unsigned long
Currently paravirt_ops alloc_p*() uses u32 for the pfn args. We should
change that later, but while the pfn parameter is still u32, we need to
cast the PFN_PHYS() argument at xen_alloc_ptpage() to unsigned long,
otherwise it will lose bits on the shift.

I think PFN_PHYS() should behave better when fed with smaller integers,
but a cast to unsigned long won't be enough for all cases on 32-bit PAE,
and a cast to u64 would be overkill for most users of PFN_PHYS().

We could have two different flavors of PFN_PHYS: one for low pages
only (unsigned long) and another that works for any page (u64)),
but while we don't have it, we will need the cast to unsigned long on
xen_alloc_ptpage().

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-07-31 17:10:35 +02:00
..
enlighten.c xen_alloc_ptpage: cast PFN_PHYS() argument to unsigned long 2008-07-31 17:10:35 +02:00
grant-table.c
irq.c xen: compile irq functions without -pg for ftrace 2008-07-31 12:39:39 +02:00
Kconfig x86, xen, power: fix up config dependencies on PM 2008-07-17 19:25:20 +02:00
Makefile xen: compile irq functions without -pg for ftrace 2008-07-31 12:39:39 +02:00
mmu.c x86: add PTE_FLAGS_MASK 2008-07-22 10:43:45 +02:00
mmu.h xen64: allocate and manage user pagetables 2008-07-16 11:05:38 +02:00
multicalls.c xen: print backtrace on multicall failure 2008-07-16 10:55:21 +02:00
multicalls.h
setup.c x86: xen: no need to disable vdso32 2008-07-16 11:08:44 +02:00
smp.c x86: split spinlock implementations out into their own files 2008-07-24 12:31:51 +02:00
spinlock.c x86: split spinlock implementations out into their own files 2008-07-24 12:31:51 +02:00
suspend.c xen: add xen_arch_resume()/xen_timer_resume hook for ia64 support 2008-07-16 10:55:50 +02:00
time.c x86: rename paravirtualized TSC functions 2008-07-09 07:43:28 +02:00
vdso.h
xen-asm_32.S xen: compile irq functions without -pg for ftrace 2008-07-31 12:39:39 +02:00
xen-asm_64.S xen: compile irq functions without -pg for ftrace 2008-07-31 12:39:39 +02:00
xen-head.S xen64: add xen-head code to head_64.S 2008-07-16 10:58:41 +02:00
xen-ops.h xen: compile irq functions without -pg for ftrace 2008-07-31 12:39:39 +02:00