From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762810AbbA2CpF (ORCPT ); Wed, 28 Jan 2015 21:45:05 -0500 Received: from mail-lb0-f180.google.com ([209.85.217.180]:58075 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762752AbbA2CpB (ORCPT ); Wed, 28 Jan 2015 21:45:01 -0500 MIME-Version: 1.0 In-Reply-To: <54C89044.2090104@redhat.com> References: <54C804FD.6060108@redhat.com> <54C89044.2090104@redhat.com> From: Wincy Van Date: Wed, 28 Jan 2015 18:19:03 +0800 Message-ID: Subject: Re: [PATCH v3 2/6] KVM: nVMX: Enable nested virtualize x2apic mode. To: Paolo Bonzini Cc: "gleb@kernel.org" , "Zhang, Yang Z" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Wanpeng Li , Jan Kiszka Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 28, 2015 at 3:31 PM, Paolo Bonzini wrote: >>> > >>> > No need for this function and nested_cpu_has_virt_x2apic_mode. Just >>> > inline them in their caller(s). Same for other cases throughout the series. >>> > >> Do you mean that we should also inline the same functions in the other >> patches of this patch set? >> I think these functions will keep the code tidy, just like the >> functions as nested_cpu_has_preemption_timer, nested_cpu_has_ept, etc. > > Most of the functions are just used once. If you want to keep them, > please place them all close to the existing ones. > Yep, I will inline the functions like nested_vmx_check_virt_x2apic and keep the nested_cpu_has series. Thanks, Wincy