Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754363AbdIHQ5g (ORCPT ); Fri, 8 Sep 2017 12:57:36 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:35835 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751543AbdIHQ5f (ORCPT ); Fri, 8 Sep 2017 12:57:35 -0400 X-Google-Smtp-Source: ADKCNb55+ANdaeWpUPYo3QghLWQqBq4fKZAxHgOtrOY0jooWmVWfyNbx6WlMHWsGcPqCIAgDGIuIFw== Date: Fri, 8 Sep 2017 09:57:26 -0700 From: Stephen Hemminger To: "Thomas Gleixner" Cc: "LKML" , "Stephen Hemminger" , "Simon Xiao" , "KY Srinivasan" , "Haiyang Zhang" , "Steven Rostedt" , "Peter Zijlstra" , "Linus Torvalds" , "Josh Poimboeuf" , "H. Peter Anvin" , "Denys Vlasenko" , "Brian Gerst" , "Borislav Petkov" , "Andy Lutomirski" Subject: Re: [PATCH] x86/idt: Unbreak MS HyperV hypercall vector install Message-ID: <20170908095726.35b82463@xeon-e3> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 920 Lines: 23 On Fri, 8 Sep 2017 01:19:52 -0700 "Thomas Gleixner" wrote: > The rework of the IDT setup changed the way how unused system gates are > accounted. At the end of the gate initialization all unused gates in the > system vector area are set to the spurios handler and marked as used for > consistency reasons. > > Marking them as used breaks MS HyperV because it installs its hypercall > vector after that point and the installation is guarded by the bit in the > used_vectors map. So the hyperv vector stays directed to the spurious > interrupt handler. > > Leave them marked as unused again and unbreak HyperV that way. > > Fixes: dc20b2d52653 ("x86/idt: Move interrupt gate initialization to IDT > code") > Reported-by: Stephen Hemminger > Signed-off-by: Thomas Gleixner This fixes it, thanks. Tested-by: Stephen Hemminger