From patchwork Sat Feb 23 14:07:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 2178471 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id DD218DF25A for ; Sat, 23 Feb 2013 14:08:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758936Ab3BWOH5 (ORCPT ); Sat, 23 Feb 2013 09:07:57 -0500 Received: from mout.web.de ([212.227.15.3]:54919 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757642Ab3BWOH5 (ORCPT ); Sat, 23 Feb 2013 09:07:57 -0500 Received: from mchn199C.mchp.siemens.de ([95.157.56.37]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0Lp712-1UnpJ20764-00fIUV; Sat, 23 Feb 2013 15:07:48 +0100 Message-ID: <5128CD33.8020408@web.de> Date: Sat, 23 Feb 2013 15:07:47 +0100 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Marcelo Tosatti , Gleb Natapov CC: kvm Subject: [PATCH] KVM: VMX: Make prepare_vmcs12 and load_vmcs12_host_state static X-Enigmail-Version: 1.5 X-Provags-ID: V02:K0:/jgZjtRsA/2/K4EfsrXYKbm+zmfMhJBlpvJR8IQZBb4 jlXAOzzZl8B6Sh6u5Re3UK3ZYnNnWwpi/4G0tu/oW2/cMBro+3 VF/WA/399rh1D8t1vSZ5UhiE3TOWApjnydqYbd6bJLyKLgTEHL GJbDH4tH4L2eeZAYASpjvGYG25YZpnOdjtwClzSNV5mDj7TtXy nU/N+GgRdLQE4vFzBDbXw== Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Jan Kiszka Both are only used locally. Signed-off-by: Jan Kiszka --- 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;