Received: by 10.192.165.148 with SMTP id m20csp745812imm; Wed, 2 May 2018 08:10:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoYLPq7sljOH++hjZRDjpUaiE+0FJQx9SWvubThIk2uBcfR+3bxqddvb6ydHpf8S7SsIhOB X-Received: by 2002:a63:4285:: with SMTP id p127-v6mr16659369pga.421.1525273800924; Wed, 02 May 2018 08:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525273800; cv=none; d=google.com; s=arc-20160816; b=MVE43TLldtuQhbjd0Bkq26vuQ5l4NLQq/Ia6vAqoqSG0GLNy2aYVHGgjnAodhJdB6Q Bb224PjgsgKXCpa35OIjktajMXRdhfkTByaxVrkh8+Veodyr+Pys4KcPJL7m6hwqtJwx 8an+09syJyXJJUtMg/91fnDBtZ19gGeuogTDpCxXpmolj0aBOTIg1e1IiZGmxwUIv8k9 Dv1c/BmtSKKgC/tZ+qZ6N9ItqgP3o3QNCWj7WpETmZo+MIiOJXBdAqdjbOH/Qz9oz+gX qQaOKqxaXb+zFIAXtTdGxf8rbRCQs1XJbcgEBsMLz+xmoKDRqFyRH9YQtI873KZtUlcU mahQ== 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=kH/5mGOEhUQ4QVg7RxcxKOoPrxlc9753cecz/SNYRd8=; b=IrW3mmYjRxtG7Pj1cOLqmGodL9M9diP5C4mjOzXztlpvHs0VJEPnYj6+iO+tBjKbsu /85bTsVdFg6Q2VMTNm4ggJs6hYpZJds3WQ+5p6AunKZ4Em4eA31sjXUookSocEU73WrA 2Jj+6fAKj9wpbJ66JtdpgMAOJpaKMnBpEiNHrpuZiyJrvfmPVkJIq5D/1bAJjMGDa13C OHIdCKGaXbbyj15RzMigYs3d5HYR5urOiFTGjqB34TFlqUyMob+ynuiHIjFcVx4vqXDV 1s7b+i9e8wC+dk8klFtIF465AR4H8+rJ+VZAY7QsQOzLbPKXVq3AtCBNZatcNsOCH7Uc cR+w== 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 p80si1595447pfi.345.2018.05.02.08.09.46; Wed, 02 May 2018 08:10:00 -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 S1751644AbeEBPJY convert rfc822-to-8bit (ORCPT + 99 others); Wed, 2 May 2018 11:09:24 -0400 Received: from prv1-mh.provo.novell.com ([137.65.248.33]:48896 "EHLO prv1-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751100AbeEBPJW (ORCPT ); Wed, 2 May 2018 11:09:22 -0400 Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Wed, 02 May 2018 09:09:21 -0600 Message-Id: <5AE9D49B02000078001C0322@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.0.0 Date: Wed, 02 May 2018 09:09:15 -0600 From: "Jan Beulich" To: "Boris Ostrovsky" Cc: "xen-devel" , "Juergen Gross" , , Subject: Re: [Xen-devel] [PATCH 2/4] xen/PVH: Use proper CS selector in long mode References: <20180430162339.17143-1-boris.ostrovsky@oracle.com> <20180430162339.17143-3-boris.ostrovsky@oracle.com> <5AE9713D02000078001C007B@prv1-mh.provo.novell.com> <6b7a748d-e289-c370-123a-678c6ad7d9dd@oracle.com> <5AE9D27402000078001C02ED@prv1-mh.provo.novell.com> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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:08, wrote: > On 05/02/2018 11:00 AM, Jan Beulich wrote: >>>>> On 02.05.18 at 16:57, wrote: >>> On 05/02/2018 04:05 AM, Jan Beulich wrote: >>>>>>> On 30.04.18 at 18:23, wrote: >>>>> Signed-off-by: Boris Ostrovsky >>>> Reviewed-by: Jan Beulich >>>> >>>> But to understand why things have been working nevertheless it would >>>> have been nice if the commit message wasn't empty, but instead said >>>> something like "The two happen to be identical on 64-bit." >>> >>> Why do you think they are identical? __KERNEL_CS points to entry#12 >>> (which we don't specify in PVH GDT) while __BOOT_CS is the second entry >>> (which we do create). >> That's 32-bit's __KERNEL_CS. If the two weren't identical, the ljmp >> you adjust would never have worked afaict. > > > Oh, right. My theory was that we were picking up something from the > stack (which is where 12th entry would be pointing) and the L bit, which > I think is the only one we'd care about, happened to always be set there. I don't think the L bit is the only one we care about, as I don't think you can load a non-code selector into CS (even if none of the attributes are later used for anything). Jan