Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp696999ybh; Wed, 22 Jul 2020 10:48:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLkfdhcpPlG1l5+k7WvBiBp7fgTMWvf0sew4blcTUj+KIdeJxfLjQVTIUQ2SKi4FHybN1k X-Received: by 2002:a05:6402:17f6:: with SMTP id t22mr581627edy.141.1595440120237; Wed, 22 Jul 2020 10:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595440120; cv=none; d=google.com; s=arc-20160816; b=fe3LTRxFfqg+bwMEJ8NymvO8QNtFufJLb9bdhQUCh1S9WrJdfH2dE+CFiNTqfGzpu6 02DxOAx5MU1NelZRNlZXU6m22S5gEJML2N09KzEt4UNi2TPGWZUKFCz1nj/noale6dzS WpcfBv+pists0fY0KScaG7Ai+imYSqd9Zm125HfQ0NY3seZPxczUkm5aehivWCpbCrQ5 8LnDXar82Z9h3u1E9GIWBgwHYhWvcoHxqyxvQHpWZUCJmWsi7pd6W/hojQ3POSucD97B 0NLthNfpYpKEQcYMW49/VvF2aanrl2OVsHixLfcs50PimcaibV5SkTa0HxFNNzKf95jK SUvA== 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=BNqMTOe7SoZb8leFRvnHcl8clc+dc1JIP1RZENxHVls=; b=eZbY4P+euJvWkdXh3TnvcrsRYuSJ/5wlbWq+arzuVIz2NN9EIFHqFXNclF5b7eEmVx ufCniXDZneflMz0G770yf5pc/vAWJsnEDxLKnhbGaZVuNklTZgOcCWEwvouVn3MtlTWJ y7ltm7duV96rzCEAa9pe9vY6WYlsum9pYt51MO6gr5lkuZpQVwCzA5pLGU16nrEEADPL BSaQkjcM0bQkOU5fmPqTMhEYWxwYVm3saQ7Knoei9m+6AkAaTs2PnQAfC8HTrQQEhcn5 zuKJ/S9AbPyx3s64xUMtSI9A1+pQVDrqoczWpa9iZR3cU3yQequGUl0LV6iVLjrNHDzp HZjw== 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 g24si405297eje.347.2020.07.22.10.48.17; Wed, 22 Jul 2020 10:48:40 -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 S1728906AbgGVRpk (ORCPT + 99 others); Wed, 22 Jul 2020 13:45:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:47250 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbgGVRpj (ORCPT ); Wed, 22 Jul 2020 13:45:39 -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 9CB3EACBD; Wed, 22 Jul 2020 17:45:45 +0000 (UTC) Date: Wed, 22 Jul 2020 19:45:35 +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: <20200722174535.GJ6132@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> <20200721124957.GD6132@suse.de> <20200722090442.GI6132@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 On Wed, Jul 22, 2020 at 09:54:40AM -0700, Erdem Aktas wrote: > I am using a custom, optimized and stripped down version, OVMF build. > Do you think it is because of the OVMF or grub? Not sure, I havn't looked into how grub decides which entry point to use. > In my case, there are 2 places where the CPUID is called: the first > one is to decide if long mode is supported, along with few other > features like SSE support and the second one is to retrieve the > encryption bit location. Yes, it is basically the verify_cpu() function that is causing the trouble. If you want to work around it you can comment it out in that path for testing purposes. Regards, Joerg