Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1390513ybf; Thu, 27 Feb 2020 10:03:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyFlh3Ml8y2SFZzvfqhBGCayv9TscVM86C5nem15pLwi+IAUMrKF+qmp+wvZt5w8IVKwhKX X-Received: by 2002:a05:6808:b29:: with SMTP id t9mr181072oij.69.1582826611209; Thu, 27 Feb 2020 10:03:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582826611; cv=none; d=google.com; s=arc-20160816; b=AG9h3grBxzZHk6bKmAnVqo/c9KBE4qJC30HNAcoIQGu1aW8CIXQomXE3u+U/Cy79CE HRFQj4ijX6jtzY2AKi2Kx3r3zEH3QXfItGQ+hppzPyeiSKRCN1eRJZYcqwIxL2HhjbsB iMbOqPMXP6vZC/3kdYZrjZt548z42rMNTDBRN5IbwuYE+wILXNN0WsMiDqqinc38yAwx 57XSouMMhJFizdMclFfKC3Z2HmIVF6bzqMI3fmylc9YUvlJHNVRjQop9q45+gZh/IhXt VQL2VM7Qa8LNV46iH/NkQJd4wGiOXJLJTGCPEGwXEkAH0w/RWEfmsw3mGEE9T3ccX5JT zGug== 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:date:from:dkim-signature; bh=LUivbxZvkhrhksfrufImP5WxVz+Lup/2YGlGavTZRzU=; b=o3zpGsMW16G4HYjTpSTkJeNdkcz44wH6FYEyGHhxGI0e9dUW/5vyUJQGfkxpw+rZCE Vue+Ux24EhM5WGm/qBeks5zfi3KDyWzHTuyOT32aRSQ1L7onW7Sp44AT7juBE7TFEWbm 9Ewfz3U254VkCkSwkNh9HNW/bHwE6wZ0WQ3YReBheRwAU3XmN/damCrTyUR/PBZg4LHV 8YuF+66VlSV8HNOuYKXn/jvwIxODbV8Ooeh/hXFROJAcd49sxdKHN3thuMLeYn3YKSCM ueY9S8Tq43/yENDf1f5+h+1Cd+qqDiI6gmwDXyHLBeGRHqmjHYTONDJKeo+ovQBsjFzr 8GIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="FECqC/GL"; 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 x14si2182520otj.322.2020.02.27.10.03.16; Thu, 27 Feb 2020 10:03:31 -0800 (PST) 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=@gmail.com header.s=20161025 header.b="FECqC/GL"; 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 S1729843AbgB0SDJ (ORCPT + 99 others); Thu, 27 Feb 2020 13:03:09 -0500 Received: from mail-qv1-f68.google.com ([209.85.219.68]:34257 "EHLO mail-qv1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726805AbgB0SDJ (ORCPT ); Thu, 27 Feb 2020 13:03:09 -0500 Received: by mail-qv1-f68.google.com with SMTP id o18so14104qvf.1; Thu, 27 Feb 2020 10:03:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LUivbxZvkhrhksfrufImP5WxVz+Lup/2YGlGavTZRzU=; b=FECqC/GLqU4wsSzEi4rPTFDzOXiJO4CXOuMOJtQhjaXNpmtMCYY/O6CxZd8c5QeaFJ w2nhwZq6DTmOU6dV+/ZPcUSED9y9g0GDkBA3S0rrjNXBxc2YBVthEbkRr30uXl8vLvrk RuHejyJlqwMvxy/BOKLS43wSWaqT+byxSShnrrst4a/1zIbiC9g8E5redGQYliesOW5k OwgIcES80s3l2Y+WAE3FmaKIVeKUWimW19fXFqnhy4gON87OrMWgI+Zcm6Ru3e+7a+au 1/W8PlDJ/ogtz3TZ8au57Mkkcs2D83jdIzSG+IiYYSau1Iy39Fyr9QgcF8KBVgDO4MWd fztQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=LUivbxZvkhrhksfrufImP5WxVz+Lup/2YGlGavTZRzU=; b=etze2xXSgzQdkjymxx4W0KDHQ2uvI+cXWLNdWIwqluSWUU53fMftpEaUVNbPFDvmXp RINUkkePBLmQF8lI1CWQ5fJVn9RukOJplgKk1HSoCxnkPm3oW8vXAogvdpeFtc9v1GCe 3mQoQ5yTp8OIv0OuqJW3AGhSWD6+/RlGSmNQpFSOo/XvyYjwrdj6iDvY4BMVeZMn8hXE BkvG9vNLd7YnX6D6GrQnoKezRfytHo8Og7vKJACisQRdcmsdoDjjiPEzm3MmyaRyperz J0aw0ajQCjxuD8Ib0br1Kcf8IlgLkeRF2NYDEbZPWiKevR+WKIEukfwxiWX7ADU0UGc8 F7Og== X-Gm-Message-State: APjAAAWz1odKqF/kWf2859XDB7xE6WT3e2cJ2ktEbMN1bL87rYSnhoHJ 5ePnfqd6Zj0tJ4Yj1/16L/jGUxVL1G8= X-Received: by 2002:a0c:c24f:: with SMTP id w15mr75014qvh.66.1582826588320; Thu, 27 Feb 2020 10:03:08 -0800 (PST) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id m11sm521291qkh.31.2020.02.27.10.03.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 10:03:07 -0800 (PST) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Thu, 27 Feb 2020 13:03:06 -0500 To: Ard Biesheuvel Cc: Arvind Sankar , Ingo Molnar , linux-efi , Thomas Gleixner , the arch/x86 maintainers , Linux Kernel Mailing List , Borislav Petkov Subject: Re: [PATCH v2 1/1] x86/boot/compressed: Fix reloading of GDTR post-relocation Message-ID: <20200227180305.GA3598722@rani.riverdale.lan> References: <20200226204515.2752095-1-nivedita@alum.mit.edu> <20200226230031.3011645-2-nivedita@alum.mit.edu> <20200227081229.GA29411@gmail.com> <20200227151643.GA3498170@rani.riverdale.lan> <20200227155421.GA3507597@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 Thu, Feb 27, 2020 at 06:47:55PM +0100, Ard Biesheuvel wrote: > > Interesting. I am going to rip most of the EFI handover protocol stuff > out of OVMF, since it is mostly unnecessary, and having the PE/COFF > loader put the image in the correct place right away is a nice > complimentary improvement to that. (Note that the OVMF implementation > of the EFI handover protocol does not currently honor the preferred > address from the setup header anyway) Yeah, for my testing I'm running the image from the EFI shell, which enters via PE entry point and honors the pref address.