From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF829C28CBC for ; Wed, 6 May 2020 16:56:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CD721208CA for ; Wed, 6 May 2020 16:56:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588784218; bh=GPt0Ao4SuzOwEVG/H0krmtr7Ntra56UtzZmAGRDH9vk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=mdcXMnuue2dOy8sNnG5NRIpLHq71ydFQ43odIJuwKnstBOJ5VJkyOe5vHsAr3dmHd 2u1WvlSAQFLhx6f3vUIr0GB4hdnmdMcqdTOKe8sZiGHsDwNUxIhICg2a4Fd/Hsbbyf aINQF52b/svRU8xdtrOuyc4BhnJa7zDlmpXBaY6Q= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730219AbgEFQ46 (ORCPT ); Wed, 6 May 2020 12:56:58 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40734 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729414AbgEFQ45 (ORCPT ); Wed, 6 May 2020 12:56:57 -0400 Received: by mail-wr1-f66.google.com with SMTP id e16so3046274wra.7 for ; Wed, 06 May 2020 09:56:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UAR3StJ1tjRjcPQPguO3q+ZrNyaW8mBxV+t84vp3JQk=; b=rSLvDT7BsJgnXX5dFt/bCCv3rjkp9POk9u5jEh3iYBaRd6P3l6J2Y1nuVUPxpqbc/+ vTypRN4VUv5xQLMBiaIc5tcvWw4ZqXM3M1jHSsvxqXmaXsvxyalG8iLtie3mKfWv7qh8 xtEP8WqpVy0AuKd1odWrDndGR6iXer0XSGwoK/y3ym2vbhNEheIePIjUaKYCYyK7HWgT sn305svfZ75xR0RjVp2aYOvpRDOthIdRgISBqrQYz+JDda3vrE0Vx4z64cajeUdB9HC+ +0+tkd8IR2NUdoms3Sl3j1LwzziFZEz0c55qdbow9MGbb1KCnctbonPSzrSCfHAlJvzH OGDA== X-Gm-Message-State: AGi0PuaTtS1IBOGMneasGYc/h/H9VqmacJbFzDf5GIjzgizHYImz90r/ OFGG8MlG65+R3WwmnXBgRYk= X-Google-Smtp-Source: APiQypKZ0cJ4el/27ukSaL29mvN14Cb9ejX5GlSiZbyH+oRs0LbgOJNJeFatIDPQ8ZENpLYMBt/yUA== X-Received: by 2002:a5d:6b8a:: with SMTP id n10mr10193186wrx.36.1588784215607; Wed, 06 May 2020 09:56:55 -0700 (PDT) Received: from liuwe-devbox-debian-v2.j3c5onc20sse1dnehy4noqpfcg.zx.internal.cloudapp.net ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id v5sm3638531wrr.93.2020.05.06.09.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 09:56:55 -0700 (PDT) Date: Wed, 6 May 2020 16:56:53 +0000 From: Wei Liu To: Thomas Gleixner Cc: LKML , x86@kernel.org, "Paul E. McKenney" , Andy Lutomirski , Alexandre Chartre , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Brian Gerst , Mathieu Desnoyers , Josh Poimboeuf , Will Deacon , Wei Liu , Michael Kelley , Jason Chen CJ , Zhao Yakui Subject: Re: [patch V4 part 5 22/31] x86/entry: Convert various hypervisor vectors to IDTENTRY_SYSVEC Message-ID: <20200506165653.ttxa33llcynokaq2@liuwe-devbox-debian-v2.j3c5onc20sse1dnehy4noqpfcg.zx.internal.cloudapp.net> References: <20200505135341.730586321@linutronix.de> <20200505135830.298201197@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200505135830.298201197@linutronix.de> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 05, 2020 at 03:54:03PM +0200, Thomas Gleixner wrote: > From: Thomas Gleixner > > Convert various hypervisor vectors to IDTENTRY_SYSVEC > - Implement the C entry point with DEFINE_IDTENTRY_SYSVEC > - Emit the ASM stub with DECLARE_IDTENTRY_SYSVEC > - Remove the ASM idtentries in 64bit > - Remove the BUILD_INTERRUPT entries in 32bit > - Remove the old prototypes > > No functional change. > > Signed-off-by: Thomas Gleixner > Cc: Wei Liu > Cc: Michael Kelley > Cc: Jason Chen CJ > Cc: Zhao Yakui > > --- > arch/x86/entry/entry_32.S | 14 -------------- > arch/x86/entry/entry_64.S | 17 ----------------- > arch/x86/hyperv/hv_init.c | 9 +++------ > arch/x86/include/asm/acrn.h | 11 ----------- > arch/x86/include/asm/apic.h | 20 -------------------- > arch/x86/include/asm/idtentry.h | 10 ++++++++++ > arch/x86/include/asm/mshyperv.h | 13 ------------- > arch/x86/kernel/cpu/acrn.c | 9 ++++----- > arch/x86/kernel/cpu/mshyperv.c | 22 ++++++++++------------ > 9 files changed, 27 insertions(+), 98 deletions(-) > > --- a/arch/x86/entry/entry_32.S > +++ b/arch/x86/entry/entry_32.S > @@ -1342,20 +1342,6 @@ BUILD_INTERRUPT3(xen_hvm_callback_vector > xen_evtchn_do_upcall) > #endif > You seem to have missed the Xen entry. > - > -#if IS_ENABLED(CONFIG_HYPERV) > - > -BUILD_INTERRUPT3(hyperv_callback_vector, HYPERVISOR_CALLBACK_VECTOR, > - hyperv_vector_handler) > - > -BUILD_INTERRUPT3(hyperv_reenlightenment_vector, HYPERV_REENLIGHTENMENT_VECTOR, > - hyperv_reenlightenment_intr) > - > -BUILD_INTERRUPT3(hv_stimer0_callback_vector, HYPERV_STIMER0_VECTOR, > - hv_stimer0_vector_handler) > - > -#endif /* CONFIG_HYPERV */ > - > SYM_CODE_START_LOCAL_NOALIGN(handle_exception) > /* the function address is in %gs's slot on the stack */ > SAVE_ALL switch_stacks=1 skip_gs=1 unwind_espfix=1 > --- a/arch/x86/entry/entry_64.S > +++ b/arch/x86/entry/entry_64.S > @@ -1078,23 +1078,6 @@ apicinterrupt3 HYPERVISOR_CALLBACK_VECTO > xen_hvm_callback_vector xen_evtchn_do_upcall > #endif > Ditto. Wei.