Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753378AbcJLBP6 (ORCPT ); Tue, 11 Oct 2016 21:15:58 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:26385 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752008AbcJLBP4 (ORCPT ); Tue, 11 Oct 2016 21:15:56 -0400 Message-ID: <57FD8EB9.9020400@huawei.com> Date: Wed, 12 Oct 2016 09:15:37 +0800 From: "Longpeng (Mike)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= CC: , , , , , , , , Subject: Re: [PATCH] kvm: x86: correct the misleading comment in vmx_handle_external_intr References: <1476059023-33224-1-git-send-email-longpeng2@huawei.com> <20161011182337.GB16406@potion> In-Reply-To: <20161011182337.GB16406@potion> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.177.246.209] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 31 Hi Radim, On 2016/10/12 2:23, Radim Krčmář wrote: > This part is acceptable as it gives a new information code, yet the > function does not modify flags, which makes it unremarkable. > And dependencies on the caller would be better described in a header > (if we cannot express them well in the code). > > The most comment-worthy thing about this function is the reason why we > execute the interrupt handler manually, i.e. the dependency on > VM_EXIT_ACK_INTR_ON_EXIT, but that is easy to tell from the commit > message and convenient access to git history is essential in a workflow, > so providing a leeway could be counter-productive. > > I would go with no comment for now. > > . > Thanks for your patience, and your advice is useful for me. In addition, the comment below is misleading too, hope you can fix it simultaneously. /* Interrupt is enabled by handle_external_intr() */ kvm_x86_ops->handle_external_intr(vcpu); -- Regards, Longpeng(Mike)