Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp694100ybh; Tue, 21 Jul 2020 05:50:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwI9vrXGoA4NdALVm88dA4ueFtVDy4V8t3ZoHie3nMG20hVKQ+jRd6HAPsR0nqsJqFRRoyO X-Received: by 2002:a17:906:8d5:: with SMTP id o21mr7836092eje.155.1595335839511; Tue, 21 Jul 2020 05:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595335839; cv=none; d=google.com; s=arc-20160816; b=cnSDNnXOKH8elzUagFb3U0gG27KGVm+cH0ZKHE2cKSLQzCuuop1Zxaq/xNdleV/kPo EyzDhOa4cIltRJ8rcnJuln9FSPFuL9Y61WnXBYFP8nXR92WERJ6gfK0br4d/0OFwT5Tv N4Qw8e8nX2XSCeRy8ZnMx+eSYEBXX0V3c1Z56cX/0e8ThytiFFGQTyd/f+CdwWGEzyWO gnhimCnJWBeYtg6pnLW96gV1w+kGgjHX73aaR61/W2U9d4ozRxfzqONttVMVIEoKlQQi s1j38v9380qrJHc9Fg3pDj0oWCqcW7b2zvXhIF64AmX5vdGiA46LMdkCXowru/DbRbc5 Z8FA== 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:from:date; bh=DBftJMAZt+SS3PVtBq+XWpA3AOz4bbPGswv1uX4bpnQ=; b=RNm+fJCh+kLYEnrsaGv05jcingIyVo3hiChyYarY94dSPEsAEf/RxZpSiqz4OgD0NK tI/dtXklAGcU4R6Cqe5O6Yd+Q3hdTUCKW5NqzeVToXNBJ1HPDq/l9WsPImgD08s5gTZ6 tIVujQjeVatyUMm1LPXUthPGjmNEljvD+5qvIOq5v7BkMyEC83F1epPTZEuonA7jF9u9 pcMllzzQZrAeP6yRsZ7HpSp3/UKAg2vEWBjk2seitlDUWac18hqM9G/SqLPfGGeFmDNk wz7Yk3NrhKeQGrAScbSI79crtvg85bIGRzSvY4wf4AbXOzGzi12jzTzTBtE7WperiizZ Xz6g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m18si12629749edr.21.2020.07.21.05.50.16; Tue, 21 Jul 2020 05:50:39 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726771AbgGUMuC (ORCPT + 99 others); Tue, 21 Jul 2020 08:50:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:59146 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbgGUMuC (ORCPT ); Tue, 21 Jul 2020 08:50:02 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4EEBDAC22; Tue, 21 Jul 2020 12:50:07 +0000 (UTC) Date: Tue, 21 Jul 2020 14:49:57 +0200 From: Joerg Roedel To: Erdem Aktas Cc: Peter Zijlstra , Joerg Roedel , x86@kernel.org, hpa@zytor.com, Andy Lutomirski , Dave Hansen , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Masami Hiramatsu , Mike Stunes , Sean Christopherson , Martin Radev , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v4 00/75] x86: SEV-ES Guest Support Message-ID: <20200721124957.GD6132@suse.de> References: <20200714120917.11253-1-joro@8bytes.org> <20200715092456.GE10769@hirez.programming.kicks-ass.net> <20200715093426.GK16200@suse.de> <20200715095556.GI10769@hirez.programming.kicks-ass.net> <20200715101034.GM16200@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Hi, On Mon, Jul 20, 2020 at 06:09:19PM -0700, Erdem Aktas wrote: > It looks like there is an expectation that the bootloader will start > from the 64bit entry point in header_64.S. With the current patch > series, it will not boot up if the bootloader jumps to the startup_32 > entry, which might break some default distro images. > What are supported bootloaders and configurations? > I am using grub ( 2.02-2ubuntu8.15) and it fails to boot because of > this reason. I am not a grub expert, so I would appreciate any > pointers on this. This is right, the only supported boot path is via the 64bit EFI entry point. The reason is that SEV-ES requires support in the firmware too, and currently only OVMF is supported in that regard. The firmware needs to setup the AP jump-table, for example. Other boot-paths have not been implemented. Booting via startup_32 would require exception handling in the 32bit-part of the boot-strap code, because verify_cpu is called there. Also an AMD specific MSR can't be accessed there because this would #GP on non-AMD/SEV-ES machines and, as I said, there is no way yet to handle them. How did you get into the startup_32 entry-point, do you have an SEV-ES BIOS supporting this? If it is really needed it could be implemented at a later point. Regards, Joerg