Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp891048ybi; Fri, 12 Jul 2019 06:18:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGYXW+KFZJmTjewrGmOeNwI8kPUtZ2mSX1KUO27kflet7k7ioY5+kMMKcUHEP0Y04X6NKn X-Received: by 2002:a65:4546:: with SMTP id x6mr10689008pgr.266.1562937503611; Fri, 12 Jul 2019 06:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562937503; cv=none; d=google.com; s=arc-20160816; b=CpX5UCoti9bScVnWGLBwYyCer4AeikXv0EsylT6kzy9cMn0fSjJEZEKi891pUKURn5 GFTHuBBwwCM6Ruzb4T/C9udvc0mVf6DwQoDnVkQKSgAyN1xU5CfDUe2S8SjYdfbWbj0l UHZy4FT5ArILU3S9uH1s+3NMb4aYOWM8d1JLd1bP/nnuWpGSWNPU2dyKEyT5Rf8csABg Ry/zASufyRx2p0RuW72Nr3FASPeSaM27AV4FiQCuaGUbTNKHN9OXpv1sCe8JOamXbTPF BCNB0gULR4I/4ukN79hD9rWQwMzQXcRHPuuiiNFN1U/v0bcBL4iruTkdJMt8aQ20Fccw 3hfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VlGeJVpmyd9R7H/dBIzxTJuL54bqAskZGG2yOvnoI18=; b=r2aKdkU2LiiftH3VUwL/Mv83WTNVjDvM6pZmTrAaSOXk8Nlhzjs2n4EYMqgf+Rgi59 gaV2VMhWyWTqut4hAqLQhE70SWQE+ufaDgbAun8nwk+0ZJJB9AM4kMW5762+Az2FIBIq Unwl8qQ/vMw9511J1WTw7SrI8vjYxyZfWhvNpX1wtZuIr73mEfk4hRAl7AwJEf6A6SWR +jwx0UsicwiBmavoMBhmxhdTDozoz+FNPyxhlEkEh+SK8XU4p9gJcoTut5oexSkFrHOz BI7bXYDOzaAdNYMi2fBe3luqLWBYaIP173AL24CikfpsxUI69m+dL5BxaciUaBUpzoj8 ECVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="F/F3QXrq"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 136si8498652pgg.354.2019.07.12.06.18.07; Fri, 12 Jul 2019 06:18:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="F/F3QXrq"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727642AbfGLNRX (ORCPT + 99 others); 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.