Received: by 10.192.165.148 with SMTP id m20csp766681imm; Wed, 2 May 2018 08:29:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZosG6/zUUBpD71c+rrY3aYOalF+k8Nvr3kE1/V6c/f/ZWqIJN7ptSFRkVAn7IOmp67kyQ8u X-Received: by 10.167.133.131 with SMTP id w3mr19624711pfn.197.1525274967397; Wed, 02 May 2018 08:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525274967; cv=none; d=google.com; s=arc-20160816; b=MliU61e5FZ7xvOOSqG0WbW1ihnLEOUoM4fvkTlb9tlITki/pb/f7BK0DY7Xa+I2Vrv 7s3xIecAmsz8/0O+2DyBOjCgY9SF9IScvVqmDPQn+qRMho9MODFlu9UU+LyAGA7sFvJM cosCUAAJYF9vef7rVF0+HsA7tb7QfO6Nt9ULU07gMRIxWCMs2/fLWQbMkozdUXDH5KwO v1RAf+o5gPzIZ7Wuvp2MLzUlG+HtiNK41yurUE953WL2Hfo8J7KkQf3OtzzuyGN5ddIt NSOhW/a62A+uZXFiSdb8SpVgborFsWAc5Z3jFaMLCY+EcAXzp5FGVPlMrPkkVQc5VCkA G5Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject :arc-authentication-results; bh=JfqAZ9bWeFQ2rsxxX6TIcbTjKFOZo120AfQOl7+glek=; b=LAMmyJRo/37A/7+GWE7Tb8GpCMGoo4DjQ2a4I6T/x8HxObqWOTTXs4teK7L1qkHWrW gFDPwQJfsWUjD9a3UvD/97LsKzw7AyT5XTNxbKFRheOzxcYJdSpBjgLj2hmOK/1L8FY2 hYaME5WixwwagQWh6YkwPk+n6liiMZc/GSoGjQh/nIimr2OfXUYn65Op3fsQ1+06n0Jj x2uv3MzA9TQ73X6gcd8NjzM92oM7L7zEEgzJI3y3wzSdOwq8BBmD5ahnHAKRR4aKlm54 /sObKZ/BEduKPSXnwbU4tqamE1td1xocXXOTT7U+62vkzZnSuFqccgoyZoFT20ct/M2o okug== 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 l2-v6si9852514pgc.438.2018.05.02.08.29.13; Wed, 02 May 2018 08:29:27 -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 S1752446AbeEBP20 (ORCPT + 99 others); Wed, 2 May 2018 11:28:26 -0400 Received: from smtp.ctxuk.citrix.com ([185.25.65.24]:10155 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751941AbeEBP2U (ORCPT ); Wed, 2 May 2018 11:28:20 -0400 X-IronPort-AV: E=Sophos;i="5.49,354,1520899200"; d="scan'208";a="72507851" Subject: Re: [Xen-devel] [PATCH 2/4] xen/PVH: Use proper CS selector in long mode To: Jan Beulich , Boris Ostrovsky CC: Juergen Gross , xen-devel , , 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> <5AE9D49B02000078001C0322@prv1-mh.provo.novell.com> From: Andrew Cooper Openpgp: preference=signencrypt Message-ID: Date: Wed, 2 May 2018 16:28:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <5AE9D49B02000078001C0322@prv1-mh.provo.novell.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-GB X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/05/18 16:09, Jan Beulich wrote: >>>> 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). The type/s/dpl/p/d/l attributes still very much matter even in 64bit. ~Andrew