Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1294915ybz; Thu, 16 Apr 2020 06:42:41 -0700 (PDT) X-Google-Smtp-Source: APiQypJjjx+XXgtkMtVJLoTzbea/frpSIEooUNXQsahbjJOGw48O0W/t//jLcD4RJL1Z1uiznBMh X-Received: by 2002:a50:cd17:: with SMTP id z23mr29228498edi.191.1587044561660; Thu, 16 Apr 2020 06:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587044561; cv=none; d=google.com; s=arc-20160816; b=ptXxBMdWjBKJhcd//tjdCN76X3xAPmjILypu3uv0Py5eF3B8nyyfA7nR70YdTxjOFP u9vDGRgHCfzrOfaBZWZmncq6DuE7bYDl8YZzYH3kgc5cmJj3TqTzTF9loT9+SwhQUamb Tcwo89npVkQ03V02z875lbjpgi5Rnh82SQ1QKbkvuUWhDcMWfHe7Cdx1OdA1qwzMRzzQ klK8jWALp6BH/xz1KZESwT1e5AstoGZwTn3kU9LYKiJM/fMF7GpbkRZwnZYvYPfXHeJW RZvuwXMHROXtQsso+C/afiY1csocwlcTRkhMvqHxY9v/LI3Ixp001oPwvChrbUcBYN0Z v4DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=LyVkAw68hQx7JFq/coQbVh5f9ypZMhNO7kzw1A8efl0=; b=tmEkmvanvMkFjF4s7ORa6eOOcZXE8GaKA7DwPRF1kfLBpM2/LH9IrrvLZqr2LEr8tR Jxm4DIdQyZhjjsoQzE/gobGHLmODstHP4ro6qpqRaq1y8pLL6chDVqsSza2g7o0gPGfo KrtbUI3Ce+0TPfhWhVYMMfUWcTrRWbscEu1BB1E4p0UC9f40bbw5YdzZujsMcD4CAZfa MEf4aX7I6rf4vdiION/LUfNttNy20pEKtmJGplGr5G75Gps+MVq6Le7+Hx072bA5Chqc Ebs2Ws0dalIFATshTR47fxWl0bdYDiePGCKlnGExpCOMtCAIjEpDX37nDFKiivi8IaGN mg5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si13224448edp.440.2020.04.16.06.42.18; Thu, 16 Apr 2020 06:42:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2898116AbgDPNk3 (ORCPT + 99 others); Thu, 16 Apr 2020 09:40:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2896307AbgDPNau (ORCPT ); Thu, 16 Apr 2020 09:30:50 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17B6CC061A0C for ; Thu, 16 Apr 2020 06:30:50 -0700 (PDT) Received: by theia.8bytes.org (Postfix, from userid 1000) id E492DED; Thu, 16 Apr 2020 15:30:46 +0200 (CEST) Date: Thu, 16 Apr 2020 15:30:45 +0200 From: Joerg Roedel To: Arvind Sankar Cc: x86@kernel.org, hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Thomas Hellstrom , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, Joerg Roedel Subject: Re: [PATCH 12/70] x86/boot/compressed/64: Add IDT Infrastructure Message-ID: <20200416133045.GA4290@8bytes.org> References: <20200319091407.1481-1-joro@8bytes.org> <20200319091407.1481-13-joro@8bytes.org> <20200407022127.GA1048595@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200407022127.GA1048595@rani.riverdale.lan> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arvind, On Mon, Apr 06, 2020 at 10:21:27PM -0400, Arvind Sankar wrote: > On Thu, Mar 19, 2020 at 10:13:09AM +0100, Joerg Roedel wrote: > > From: Joerg Roedel > > +/* > > + * Reload GDT after relocation - The GDT at the non-relocated position > > + * might be overwritten soon by the in-place decompression, so reload > > + * GDT at the relocated address. The GDT is referenced by exception > > + * handling and needs to be set up correctly. > > + */ > > + leaq gdt(%rip), %rax > > + movq %rax, gdt64+2(%rip) > > + lgdt gdt64(%rip) > > + > > /* > > * Clear BSS (stack is currently empty) > > */ > > Note that this is now done in mainline as of commit c98a76eabbb6e, just > prior to jumping to .Lrelocated, so this can be dropped on the next > rebase. Thanks for the heads-up, I removed this hunk. Regards, Joerg