Received: by 10.192.165.148 with SMTP id m20csp743432imm; Wed, 2 May 2018 08:07:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqYsnP2VMum3QV3zdsLN0yzvK3TykmyTkhZhqrZo+nrnCl3WM13jrrGcUL0daWPvI/gf9QS X-Received: by 2002:a63:7c01:: with SMTP id x1-v6mr16396674pgc.286.1525273674249; Wed, 02 May 2018 08:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525273674; cv=none; d=google.com; s=arc-20160816; b=CmfT1nclj0P3Jm5dASzBLItl5pMceGBL9kbfSNt1c7K0KApGaxJ82BheV1nQgwLWo0 fzwdVYSI2PGaN/lifx39HDfwByYsqXmUmIGGKaQlbTMFBAUJovpIHclBqjq0LTXcDeWZ nWdeH76Lwo62RXyvKt7v/RKc17DOysSu1Z0Q+/Hcxw+y+Zv/LzXItaX3H5rjew5O4oEm zdsr4VjX0QiFvLZDSKJjnXhq1u+Wx505ySyZCXmbqghzACy6tOWfwyBVWalEuTDb49Jf yp3K4W58DeCMjb8jrfJLRx8yMN7bJA7qxQEJu7UEGVMM1VY4Qsml5nTv/BWTOyOExv8h LYZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references :subject:cc:to:from:date:message-id:arc-authentication-results; bh=bz3shuwlCf56CEJHqw5xxUNtNfhHAeodMsftno0B6OE=; b=l0/IpJExGIr0WfB+XQtCIswEc/pmj53BcrxuV+q0psz6b2M0f0R2Eou2sFxWffeTaR pXRzpxxmAlhiwVu34yeToGn8wP4Dv2MceEdie0JLAHLoxPffO+LNveEe8ynnhriQgbX1 23J0W9GQPCf3K+BT1QBB5O5Nw2MNfLXSqzV72y76aG2pcUwQvytJwZLxcYv5JfJjjWVy EvQ+4nYdRD1R1+KiSmjBYNp55qjzAd0ulAMGy2DwCVq/znJ1bjzx0RG4ZdKX+QV48kPV 9PUJNAxGOXttzlH4XLVBP27B6WYzq9bAJZAA25tke3mNcGCTQib9uJaYRxXgu8P/NJEQ z3Pw== ARC-Authentication-Results: i=1; mx.google.com; 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 z16si10677186pfe.255.2018.05.02.08.07.39; Wed, 02 May 2018 08:07:54 -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; 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 S1751537AbeEBPHc (ORCPT + 99 others); Wed, 2 May 2018 11:07:32 -0400 Received: from prv1-mh.provo.novell.com ([137.65.248.33]:49861 "EHLO prv1-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750936AbeEBPH3 (ORCPT ); Wed, 2 May 2018 11:07:29 -0400 Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Wed, 02 May 2018 09:07:29 -0600 Message-Id: <5AE9D42C02000078001C030D@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.0.0 Date: Wed, 02 May 2018 09:07:24 -0600 From: "Jan Beulich" To: "Boris Ostrovsky" Cc: "Roger Pau Monne" , "xen-devel" , "Juergen Gross" , Subject: Re: [Xen-devel] [PATCH 4/4] xen/PVH: Remove reserved entry in PVH GDT References: <20180430162339.17143-1-boris.ostrovsky@oracle.com> <20180430162339.17143-5-boris.ostrovsky@oracle.com> <20180501080009.wnjmno5pietptixo@MacBook-Pro-de-Roger.local> <5a357f3d-b66e-ca55-0601-18a89b549f4a@oracle.com> <5AE9764D02000078001C00BE@prv1-mh.provo.novell.com> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> On 02.05.18 at 17:06, wrote: > On 05/02/2018 04:26 AM, Jan Beulich wrote: >>>>> On 01.05.18 at 14:34, wrote: >>> On 05/01/2018 04:00 AM, Roger Pau Monné wrote: >>>> On Mon, Apr 30, 2018 at 12:23:39PM -0400, Boris Ostrovsky wrote: >>>>> And without it we can't use _BOOT_XX macros any longer so define new ones. >>>> Not being that familiar with Linux internals I'm not sure I see the >>>> benefit of this. Isn't there a risk that some other code is going to >>>> use the __BOOT_XX defines? >>> The startup code we are jumping to loads their own GDT and I don't see >>> any explicit references to segments. >> No explicit references to segments isn't enough: You also need to make >> sure no exceptions at all can occur while loaded selectors and GDT are >> out of sync - in particular NMI might be of concern here (this isn't PV >> after all, where not having a callback registered effectively masks NMI). > > How would keeping __BOOT_XX selectors help with NMI? We don't have > anything set up for NMI handling anyway yet, this is all done in x86 > startup code later. Oh, you're right - there's no IDT either, so an NMI would yield a triple fault anyway. Jan