Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753844AbcKRTZi (ORCPT ); Fri, 18 Nov 2016 14:25:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43548 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752785AbcKRTZd (ORCPT ); Fri, 18 Nov 2016 14:25:33 -0500 Subject: Re: [PATCH] kvm: x86: merge kvm_arch_set_irq and kvm_arch_set_irq_inatomic To: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org References: <1479394547-15249-3-git-send-email-pbonzini@redhat.com> <4d1b0863-8c51-079a-b74e-8950c51060ff@redhat.com> <0e695811-5053-adfa-1ac9-3e9c55dbc596@redhat.com> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <88dfbe27-d534-f36d-0a94-6451c4778f20@redhat.com> Date: Fri, 18 Nov 2016 20:25:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <0e695811-5053-adfa-1ac9-3e9c55dbc596@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 18 Nov 2016 19:25:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 31 Am 18.11.2016 um 20:20 schrieb Paolo Bonzini: > > > On 18/11/2016 19:20, David Hildenbrand wrote: >> Am 17.11.2016 um 15:55 schrieb Paolo Bonzini: >>> kvm_arch_set_irq is unused since commit b97e6de9c96. Merge >>> its functionality with kvm_arch_set_irq_inatomic. >>> >>> Reported-by: Jiang Biao >>> Signed-off-by: Paolo Bonzini >>> --- >> >> As you said, it is unused. Therefore the functionality is superfluous. >> Why merge it? > > Because we can handle Hyper-V synthetic interrupts atomically, and that > was the intended usage of kvm_arch_set_irq's code (see commit > c9a5eccac1ab, "kvm/eventfd: add arch-specific set_irq", 2015-10-16). > > What happened was that the API changed between commit c9a5eccac1ab and > the merge of the Hyper-V synthetic interrupt patches, and the latter was > not adjusted. > Alright, got it. Thanks for the explanation. So Reviewed-by: David Hildenbrand -- David