Jan Beulich
2013-Jul-10 10:38 UTC
[PATCH] x86/HVM: key handler registration functions can be __init
This applies to both SVM and VMX. Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/xen/arch/x86/hvm/svm/vmcb.c +++ b/xen/arch/x86/hvm/svm/vmcb.c @@ -310,7 +310,7 @@ static struct keyhandler vmcb_dump_keyha .desc = "dump AMD-V VMCBs" }; -void setup_vmcb_dump(void) +void __init setup_vmcb_dump(void) { register_keyhandler(''v'', &vmcb_dump_keyhandler); } --- a/xen/arch/x86/hvm/vmx/vmcs.c +++ b/xen/arch/x86/hvm/vmx/vmcs.c @@ -1492,7 +1492,7 @@ static struct keyhandler vmcs_dump_keyha .desc = "dump Intel''s VMCS" }; -void setup_vmcs_dump(void) +void __init setup_vmcs_dump(void) { register_keyhandler(''v'', &vmcs_dump_keyhandler); } _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Keir Fraser
2013-Jul-10 11:36 UTC
Re: [PATCH] x86/HVM: key handler registration functions can be __init
On 10/07/2013 11:38, "Jan Beulich" <JBeulich@suse.com> wrote:> This applies to both SVM and VMX. > > Signed-off-by: Jan Beulich <jbeulich@suse.com>Acked-by: Keir Fraser <keir@xen.org>> --- a/xen/arch/x86/hvm/svm/vmcb.c > +++ b/xen/arch/x86/hvm/svm/vmcb.c > @@ -310,7 +310,7 @@ static struct keyhandler vmcb_dump_keyha > .desc = "dump AMD-V VMCBs" > }; > > -void setup_vmcb_dump(void) > +void __init setup_vmcb_dump(void) > { > register_keyhandler(''v'', &vmcb_dump_keyhandler); > } > --- a/xen/arch/x86/hvm/vmx/vmcs.c > +++ b/xen/arch/x86/hvm/vmx/vmcs.c > @@ -1492,7 +1492,7 @@ static struct keyhandler vmcs_dump_keyha > .desc = "dump Intel''s VMCS" > }; > > -void setup_vmcs_dump(void) > +void __init setup_vmcs_dump(void) > { > register_keyhandler(''v'', &vmcs_dump_keyhandler); > } > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel
Suravee Suthikulpanit
2013-Jul-10 19:38 UTC
Re: [PATCH] x86/HVM: key handler registration functions can be __init
On 7/10/2013 6:36 AM, Keir Fraser wrote:> On 10/07/2013 11:38, "Jan Beulich" <JBeulich@suse.com> wrote: > >> This applies to both SVM and VMX. >> >> Signed-off-by: Jan Beulich <jbeulich@suse.com> > Acked-by: Keir Fraser <keir@xen.org>Acked-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>> >> --- a/xen/arch/x86/hvm/svm/vmcb.c >> +++ b/xen/arch/x86/hvm/svm/vmcb.c >> @@ -310,7 +310,7 @@ static struct keyhandler vmcb_dump_keyha >> .desc = "dump AMD-V VMCBs" >> }; >> >> -void setup_vmcb_dump(void) >> +void __init setup_vmcb_dump(void) >> { >> register_keyhandler(''v'', &vmcb_dump_keyhandler); >> } >> --- a/xen/arch/x86/hvm/vmx/vmcs.c >> +++ b/xen/arch/x86/hvm/vmx/vmcs.c >> @@ -1492,7 +1492,7 @@ static struct keyhandler vmcs_dump_keyha >> .desc = "dump Intel''s VMCS" >> }; >> >> -void setup_vmcs_dump(void) >> +void __init setup_vmcs_dump(void) >> { >> register_keyhandler(''v'', &vmcs_dump_keyhandler); >> } >> >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xen.org >> http://lists.xen.org/xen-devel > >
Possibly Parallel Threads
- [PATCH] xen/console: introduce a 'w' debug-key that dumps the console ring
- [Patch 0/4] Xen stack trace printing improvements
- [Patch v3 0/4] Xen stack trace printing improvements
- [PATCH v2 13/15] xen: arm: Add debug keyhandler to dump the physical GIC state.
- [PATCH 0/4] Add posted interrupt supporting