[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] move declarations of some required per-arch functions into common headers
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1326372347 -3600 # Node ID 8d2fa20dd3f37e5f2c670f2b0cd56649fcea8000 # Parent e71bd3a75f0711abbd7b6538f46a6b4f89d92969 move declarations of some required per-arch functions into common headers ... since it is pointless to have each arch declare them on their own (and now and the - see ia64 - forget to do so). Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> --- diff -r e71bd3a75f07 -r 8d2fa20dd3f3 xen/arch/ia64/xen/dom0_ops.c --- a/xen/arch/ia64/xen/dom0_ops.c Thu Jan 12 13:44:51 2012 +0100 +++ b/xen/arch/ia64/xen/dom0_ops.c Thu Jan 12 13:45:47 2012 +0100 @@ -19,6 +19,7 @@ #include <xen/console.h> #include <xen/grant_table.h> #include <xen/guest_access.h> +#include <xen/hypercall.h> #include <xen/pci.h> #include <asm/vmx.h> #include <asm/dom_fw.h> diff -r e71bd3a75f07 -r 8d2fa20dd3f3 xen/arch/ia64/xen/domain.c --- a/xen/arch/ia64/xen/domain.c Thu Jan 12 13:44:51 2012 +0100 +++ b/xen/arch/ia64/xen/domain.c Thu Jan 12 13:45:47 2012 +0100 @@ -31,6 +31,7 @@ #include <asm/processor.h> #include <xen/event.h> #include <xen/console.h> +#include <xen/hypercall.h> #include <xen/version.h> #include <xen/libelf.h> #include <asm/pgalloc.h> diff -r e71bd3a75f07 -r 8d2fa20dd3f3 xen/arch/ia64/xen/xensetup.c --- a/xen/arch/ia64/xen/xensetup.c Thu Jan 12 13:44:51 2012 +0100 +++ b/xen/arch/ia64/xen/xensetup.c Thu Jan 12 13:45:47 2012 +0100 @@ -10,7 +10,7 @@ #include <xen/multiboot.h> #include <xen/sched.h> #include <xen/mm.h> -#include <public/version.h> +#include <xen/hypercall.h> #include <xen/gdbstub.h> #include <xen/version.h> #include <xen/console.h> diff -r e71bd3a75f07 -r 8d2fa20dd3f3 xen/arch/x86/domain.c --- a/xen/arch/x86/domain.c Thu Jan 12 13:44:51 2012 +0100 +++ b/xen/arch/x86/domain.c Thu Jan 12 13:45:47 2012 +0100 @@ -23,6 +23,7 @@ #include <xen/grant_table.h> #include <xen/iocap.h> #include <xen/kernel.h> +#include <xen/hypercall.h> #include <xen/multicall.h> #include <xen/irq.h> #include <xen/event.h> @@ -46,7 +47,6 @@ #include <asm/xstate.h> #include <asm/mpspec.h> #include <asm/ldt.h> -#include <asm/hypercall.h> #include <asm/fixmap.h> #include <asm/hvm/hvm.h> #include <asm/hvm/support.h> diff -r e71bd3a75f07 -r 8d2fa20dd3f3 xen/arch/x86/x86_64/domain.c --- a/xen/arch/x86/x86_64/domain.c Thu Jan 12 13:44:51 2012 +0100 +++ b/xen/arch/x86/x86_64/domain.c Thu Jan 12 13:45:47 2012 +0100 @@ -6,7 +6,7 @@ #include <xen/config.h> #include <xen/types.h> #include <xen/guest_access.h> -#include <asm/hypercall.h> +#include <xen/hypercall.h> #include <compat/vcpu.h> #define xen_vcpu_info vcpu_info diff -r e71bd3a75f07 -r 8d2fa20dd3f3 xen/common/kernel.c --- a/xen/common/kernel.c Thu Jan 12 13:44:51 2012 +0100 +++ b/xen/common/kernel.c Thu Jan 12 13:45:47 2012 +0100 @@ -13,13 +13,10 @@ #include <xen/paging.h> #include <xen/nmi.h> #include <xen/guest_access.h> +#include <xen/hypercall.h> #include <asm/current.h> #include <public/nmi.h> #include <public/version.h> -#ifdef CONFIG_X86 -#include <asm/shared.h> -#include <asm/setup.h> -#endif #ifndef COMPAT diff -r e71bd3a75f07 -r 8d2fa20dd3f3 xen/include/asm-ia64/hypercall.h --- a/xen/include/asm-ia64/hypercall.h Thu Jan 12 13:44:51 2012 +0100 +++ b/xen/include/asm-ia64/hypercall.h Thu Jan 12 13:45:47 2012 +0100 @@ -22,7 +22,4 @@ u64 *pdone, u64 foreigndom); -extern long -arch_do_vcpu_op(int cmd, struct vcpu *v, XEN_GUEST_HANDLE(void) arg); - #endif /* __ASM_IA64_HYPERCALL_H__ */ diff -r e71bd3a75f07 -r 8d2fa20dd3f3 xen/include/asm-x86/hypercall.h --- a/xen/include/asm-x86/hypercall.h Thu Jan 12 13:44:51 2012 +0100 +++ b/xen/include/asm-x86/hypercall.h Thu Jan 12 13:45:47 2012 +0100 @@ -90,16 +90,6 @@ do_iret( void); -struct vcpu; -extern long -arch_do_vcpu_op( - int cmd, struct vcpu *v, XEN_GUEST_HANDLE(void) arg); - -extern long -arch_do_sysctl( - struct xen_sysctl *op, - XEN_GUEST_HANDLE(xen_sysctl_t) u_sysctl); - extern int do_kexec( unsigned long op, unsigned arg1, XEN_GUEST_HANDLE(void) uarg); diff -r e71bd3a75f07 -r 8d2fa20dd3f3 xen/include/asm-x86/setup.h --- a/xen/include/asm-x86/setup.h Thu Jan 12 13:44:51 2012 +0100 +++ b/xen/include/asm-x86/setup.h Thu Jan 12 13:45:47 2012 +0100 @@ -2,7 +2,6 @@ #define __X86_SETUP_H_ #include <xen/multiboot.h> -#include <public/version.h> extern bool_t early_boot; extern unsigned long xenheap_initial_phys_start; @@ -40,7 +39,6 @@ void discard_initial_images(void); int xen_in_range(unsigned long mfn); -void arch_get_xen_caps(xen_capabilities_info_t *info); void microcode_grab_module( unsigned long *, const multiboot_info_t *, void *(*)(const module_t *)); diff -r e71bd3a75f07 -r 8d2fa20dd3f3 xen/include/xen/hypercall.h --- a/xen/include/xen/hypercall.h Thu Jan 12 13:44:51 2012 +0100 +++ b/xen/include/xen/hypercall.h Thu Jan 12 13:45:47 2012 +0100 @@ -14,6 +14,7 @@ #include <public/platform.h> #include <public/event_channel.h> #include <public/tmem.h> +#include <public/version.h> #include <asm/hypercall.h> #include <xsm/xsm.h> @@ -45,6 +46,11 @@ XEN_GUEST_HANDLE(xen_sysctl_t) u_sysctl); extern long +arch_do_sysctl( + struct xen_sysctl *sysctl, + XEN_GUEST_HANDLE(xen_sysctl_t) u_sysctl); + +extern long do_platform_op( XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op); @@ -102,6 +108,12 @@ int vcpuid, XEN_GUEST_HANDLE(void) arg); +struct vcpu; +extern long +arch_do_vcpu_op(int cmd, + struct vcpu *v, + XEN_GUEST_HANDLE(void) arg); + extern long do_nmi_op( unsigned int cmd, @@ -167,4 +179,6 @@ #endif +void arch_get_xen_caps(xen_capabilities_info_t *info); + #endif /* __XEN_HYPERCALL_H__ */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |