]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86, paravirt_ops: use unsigned long instead of u32 for alloc_p*() pfn args
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 30 Jul 2008 21:32:27 +0000 (18:32 -0300)
committerIngo Molnar <mingo@elte.hu>
Fri, 22 Aug 2008 03:34:44 +0000 (05:34 +0200)
commitf86399396ce7a4f4069828b7dceac5aa5113dfb5
tree2f5140fc4acdc33d615cd776bf212e310dc9345b
parent6e86841d05f371b5b9b86ce76c02aaee83352298
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>
arch/x86/kernel/kvm.c
arch/x86/kernel/vmi_32.c
arch/x86/xen/enlighten.c
include/asm-x86/paravirt.h