From: "Jan Beulich" Subject: [PATCH] x86/HVM: key handler registration functions can be __init Date: Wed, 10 Jul 2013 11:38:36 +0100 Message-ID: <51DD55CC02000078000E3D15@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part6151E0BC.2__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Eddie Dong , Boris Ostrovsky , Jacob Shin , Jun Nakajima , suravee.suthikulpanit@amd.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part6151E0BC.2__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This applies to both SVM and VMX. Signed-off-by: Jan Beulich --- 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 =3D "dump AMD-V VMCBs" }; =20 -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 =3D "dump Intel's VMCS" }; =20 -void setup_vmcs_dump(void) +void __init setup_vmcs_dump(void) { register_keyhandler('v', &vmcs_dump_keyhandler); } --=__Part6151E0BC.2__= Content-Type: text/plain; name="x86-HVM-setup-key-handler-section.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-HVM-setup-key-handler-section.patch" This applies to both SVM and VMX.=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- a/xen/arch/x86/hvm/svm/vmcb.c=0A+++ b/xen/arch= /x86/hvm/svm/vmcb.c=0A@@ -310,7 +310,7 @@ static struct keyhandler = vmcb_dump_keyha=0A .desc =3D "dump AMD-V VMCBs"=0A };=0A =0A-void = setup_vmcb_dump(void)=0A+void __init setup_vmcb_dump(void)=0A {=0A = register_keyhandler('v', &vmcb_dump_keyhandler);=0A }=0A--- a/xen/arch/x86/= hvm/vmx/vmcs.c=0A+++ b/xen/arch/x86/hvm/vmx/vmcs.c=0A@@ -1492,7 +1492,7 @@ = static struct keyhandler vmcs_dump_keyha=0A .desc =3D "dump Intel's = VMCS"=0A };=0A =0A-void setup_vmcs_dump(void)=0A+void __init setup_vmcs_dum= p(void)=0A {=0A register_keyhandler('v', &vmcs_dump_keyhandler);=0A = }=0A --=__Part6151E0BC.2__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part6151E0BC.2__=--