From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756219AbdHYLQL (ORCPT ); Fri, 25 Aug 2017 07:16:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:44987 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755878AbdHYLQK (ORCPT ); Fri, 25 Aug 2017 07:16:10 -0400 Subject: Re: [patch 39/41] x86/idt: Simplify alloc_intr_gate To: Thomas Gleixner , LKML Cc: Ingo Molnar , Peter Anvin , Peter Zijlstra , Andy Lutomirski , Borislav Petkov , Steven Rostedt , "K. Y. Srinivasan" , Stephen Hemminger , Boris Ostrovsky References: <20170825103103.287814238@linutronix.de> <20170825104416.089224401@linutronix.de> From: Juergen Gross Message-ID: Date: Fri, 25 Aug 2017 13:16:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170825104416.089224401@linutronix.de> Content-Type: text/plain; charset=iso-8859-15 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/08/17 12:31, Thomas Gleixner wrote: > The only users of alloc_intr_gate() are hypervisors, which both check the > used_vectors bitmap whether they have allocated the gate already. Move that > check into alloc_intr_gate() and simplify the users. > > Signed-off-by: Thomas Gleixner > Cc: "K. Y. Srinivasan" > Cc: Stephen Hemminger > Cc: Boris Ostrovsky > Cc: Juergen Gross Reviewed-by: Juergen Gross Juergen