[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86/hvm: mark save/restore registration code __init
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1347625823 -7200 # Node ID a177725aa49228be5c9dcb9b5a99b890d979334f # Parent 9882802e9a69e564dcd8ddfd5ea0943b2d045caf x86/hvm: mark save/restore registration code __init Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> --- diff -r 9882802e9a69 -r a177725aa492 xen/arch/x86/hvm/hvm.c --- a/xen/arch/x86/hvm/hvm.c Fri Sep 14 14:28:59 2012 +0200 +++ b/xen/arch/x86/hvm/hvm.c Fri Sep 14 14:30:23 2012 +0200 @@ -991,7 +991,7 @@ static int hvm_load_cpu_xsave_states(str /* We need variable length data chunk for xsave area, hence customized * declaration other than HVM_REGISTER_SAVE_RESTORE. */ -static int __hvm_register_CPU_XSAVE_save_and_restore(void) +static int __init __hvm_register_CPU_XSAVE_save_and_restore(void) { hvm_register_savevm(CPU_XSAVE_CODE, "CPU_XSAVE", diff -r 9882802e9a69 -r a177725aa492 xen/common/hvm/save.c --- a/xen/common/hvm/save.c Fri Sep 14 14:28:59 2012 +0200 +++ b/xen/common/hvm/save.c Fri Sep 14 14:30:23 2012 +0200 @@ -40,11 +40,11 @@ static struct { } hvm_sr_handlers [HVM_SAVE_CODE_MAX + 1] = {{NULL, NULL, "<?>"},}; /* Init-time function to add entries to that list */ -void hvm_register_savevm(uint16_t typecode, - const char *name, - hvm_save_handler save_state, - hvm_load_handler load_state, - size_t size, int kind) +void __init hvm_register_savevm(uint16_t typecode, + const char *name, + hvm_save_handler save_state, + hvm_load_handler load_state, + size_t size, int kind) { ASSERT(typecode <= HVM_SAVE_CODE_MAX); ASSERT(hvm_sr_handlers[typecode].save == NULL); diff -r 9882802e9a69 -r a177725aa492 xen/include/xen/hvm/save.h --- a/xen/include/xen/hvm/save.h Fri Sep 14 14:28:59 2012 +0200 +++ b/xen/include/xen/hvm/save.h Fri Sep 14 14:30:23 2012 +0200 @@ -19,6 +19,7 @@ #define __XEN_HVM_SAVE_H__ #include <xen/types.h> +#include <xen/init.h> #include <public/xen.h> #include <public/hvm/save.h> @@ -108,7 +109,7 @@ void hvm_register_savevm(uint16_t typeco /* Syntactic sugar around that function: specify the max number of * saves, and this calculates the size of buffer needed */ #define HVM_REGISTER_SAVE_RESTORE(_x, _save, _load, _num, _k) \ -static int __hvm_register_##_x##_save_and_restore(void) \ +static int __init __hvm_register_##_x##_save_and_restore(void) \ { \ hvm_register_savevm(HVM_SAVE_CODE(_x), \ #_x, \ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |