From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH] KVM: VMX: Make prepare_vmcs12 and load_vmcs12_host_state static Date: Wed, 27 Feb 2013 15:31:34 +0200 Message-ID: <20130227133134.GI23616@redhat.com> References: <5128CD33.8020408@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Marcelo Tosatti , kvm To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:37942 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759881Ab3B0Nbf (ORCPT ); Wed, 27 Feb 2013 08:31:35 -0500 Content-Disposition: inline In-Reply-To: <5128CD33.8020408@web.de> Sender: kvm-owner@vger.kernel.org List-ID: On Sat, Feb 23, 2013 at 03:07:47PM +0100, Jan Kiszka wrote: > From: Jan Kiszka > > Both are only used locally. > > Signed-off-by: Jan Kiszka Applied, thanks. > --- > arch/x86/kvm/vmx.c | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c > index d6ea4a7..7bd9f88 100644 > --- a/arch/x86/kvm/vmx.c > +++ b/arch/x86/kvm/vmx.c > @@ -7295,7 +7295,7 @@ vmcs12_guest_cr4(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) > * exit-information fields only. Other fields are modified by L1 with VMWRITE, > * which already writes to vmcs12 directly. > */ > -void prepare_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) > +static void prepare_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) > { > /* update guest state fields: */ > vmcs12->guest_cr0 = vmcs12_guest_cr0(vcpu, vmcs12); > @@ -7408,7 +7408,8 @@ void prepare_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) > * Failures During or After Loading Guest State"). > * This function should be called when the active VMCS is L1's (vmcs01). > */ > -void load_vmcs12_host_state(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) > +static void load_vmcs12_host_state(struct kvm_vcpu *vcpu, > + struct vmcs12 *vmcs12) > { > if (vmcs12->vm_exit_controls & VM_EXIT_LOAD_IA32_EFER) > vcpu->arch.efer = vmcs12->host_ia32_efer; > -- > 1.7.3.4 > -- Gleb.