Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580AbbHMJ3Y (ORCPT ); Thu, 13 Aug 2015 05:29:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59224 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752537AbbHMJ3W (ORCPT ); Thu, 13 Aug 2015 05:29:22 -0400 Subject: Re: [PATCH v2 5/5] KVM: refactor asynchronous vcpu ioctl dispatch To: Christian Borntraeger , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , linux-kernel@vger.kernel.org References: <1438792381-19453-1-git-send-email-rkrcmar@redhat.com> <1438792381-19453-6-git-send-email-rkrcmar@redhat.com> <55CBA67C.1050703@de.ibm.com> Cc: kvm@vger.kernel.org From: Paolo Bonzini Message-ID: <55CC636C.9080202@redhat.com> Date: Thu, 13 Aug 2015 11:29:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55CBA67C.1050703@de.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1011 Lines: 26 On 12/08/2015 22:03, Christian Borntraeger wrote: >> > #if defined(CONFIG_S390) || defined(CONFIG_PPC) || defined(CONFIG_MIPS) >> > - if (ioctl == KVM_S390_INTERRUPT || ioctl == KVM_S390_IRQ || ioctl == KVM_INTERRUPT) >> > - return kvm_arch_vcpu_ioctl(filp, ioctl, arg); >> > + case KVM_S390_INTERRUPT: >> > + case KVM_S390_IRQ: >> > + case KVM_INTERRUPT: > When you are it you might want to put the KVM_S390* withing CONFIG_S390 and > KVM_INTERRUPT within CONFIG_PPC || CONFIG_MIPS > > This might speed up the switch statement for s390/ppc/mips a tiny bit. It will add > another ifdef, though. Paolo? Sure. I wasn't sure of KVM_INTERRUPT's usage on s390. I'm okay with keeping the switch inline too, but if Radim prefers a function that's also fine. Paolo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/