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.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,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 2344DC742BD for ; Fri, 12 Jul 2019 13:17:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EBA7C2080A for ; Fri, 12 Jul 2019 13:17:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="F/F3QXrq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727674AbfGLNRX (ORCPT ); Fri, 12 Jul 2019 09:17:23 -0400 Received: from merlin.infradead.org ([205.233.59.134]:34590 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727363AbfGLNRX (ORCPT ); Fri, 12 Jul 2019 09:17:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VlGeJVpmyd9R7H/dBIzxTJuL54bqAskZGG2yOvnoI18=; b=F/F3QXrq28isRNxJASCYcmGzu NuUvd4dtT0vopyrMJtnfFiIi7h7y2LHeT1cYeQvbRqxpL/OOK42wQbpjMDbKmxDCc0T5fU8ZfxeEi 5vROS/kWz1zyU9co2DGx96jc3Hh4YeNg2Qf/RfpFW9yePM/nE5diReCRFmaFdHADlHizdP7CqItap VlCTDeCE8XQNuvPHLwAyWKbk/4i8yxSpuU78w22RYrANZjhOtSrcAV4XZ4Ab2x/QwFc1+MrGlgIKa w5Y1EcYOKPyBQTIAlXn37B7oxw+lJ+vEKRI1pUfsOSZMhthFIiiyIuXF4PvxtQRH3mtpT5APRJXiI J1d84UJZg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hlvQH-0005lN-4R; Fri, 12 Jul 2019 13:17:13 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1267D209772E7; Fri, 12 Jul 2019 15:17:10 +0200 (CEST) Date: Fri, 12 Jul 2019 15:17:10 +0200 From: Peter Zijlstra To: Zhenzhong Duan Cc: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, x86@kernel.org, srinivas.eeda@oracle.com, Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov Subject: Re: [PATCH v2] xen/pv: Fix a boot up hang revealed by int3 self test Message-ID: <20190712131710.GS3419@hirez.programming.kicks-ass.net> References: <1562832921-20831-1-git-send-email-zhenzhong.duan@oracle.com> <20190712120626.GW3402@hirez.programming.kicks-ass.net> <20190712130916.GR3419@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190712130916.GR3419@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 12, 2019 at 03:09:16PM +0200, Peter Zijlstra wrote: > On Fri, Jul 12, 2019 at 09:04:22PM +0800, Zhenzhong Duan wrote: > > > > On 2019/7/12 20:06, Peter Zijlstra wrote: > > > On Thu, Jul 11, 2019 at 04:15:21PM +0800, Zhenzhong Duan wrote: > > > > diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c > > > > index 4722ba2..2138d69 100644 > > > > --- a/arch/x86/xen/enlighten_pv.c > > > > +++ b/arch/x86/xen/enlighten_pv.c > > > > @@ -596,7 +596,7 @@ struct trap_array_entry { > > > > static struct trap_array_entry trap_array[] = { > > > > { debug, xen_xendebug, true }, > > > > - { int3, xen_xenint3, true }, > > > > + { int3, xen_int3, true }, > > > > { double_fault, xen_double_fault, true }, > > > > #ifdef CONFIG_X86_MCE > > > > { machine_check, xen_machine_check, true }, > > > I'm confused on the purpose of trap_array[], could you elucidate me? > > > > Used to replace trap handler addresses by Xen specific ones and sanity check > > > > if there's an unexpected IST-using fault handler. > > git grep xen_int3, failed me. Where does that symbol come from? N/m I found it... must be blind today.