Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1274218pxb; Wed, 3 Nov 2021 22:26:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEDyX5tSQhaYUuO4LJQkExM7cT2NKsgiZzHiuJanzVSlOVpnk0HDNvisM5HJ8vYns0hXS6 X-Received: by 2002:a92:ad0c:: with SMTP id w12mr33141109ilh.20.1636003589753; Wed, 03 Nov 2021 22:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636003589; cv=none; d=google.com; s=arc-20160816; b=UT525nnKVpsfJntor7K3vAmbJCQQ4GZ6PwExzvmISMZ0qJNYgiEnmXH1IRPkI4dV5m zSySVYqCa1cBxK44H0aNQpL7CPGaADMrg9QzVBDZQAm0LdRpnDwf/iadP8QTitGFLGEl LLYC0cpqt3LbbGjYc6+zACFkgUGtG/gkxjpDhjq8dCbPJb4Z48yBWkGsvcXrfS6i3Ov0 1CjuWDnSvf+e4WFaeKK1MPFNd+Ut5mdZ4vpG/ff/Uy4Hh1s7TpfKXJDowy5Gc4Qit99z 8zNmgg0xvV3jlMXnDsUvlZOjN8KJUKtQvgCqKY1vr8bFdufHr2YpoHLfEzr2rNvQ827M FYzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OtBceSJb428ILPrgAIwLW6HZ5uojQDi2g0yPmI7b2cQ=; b=dx7dAk1v99eWX8wKhQuLatCzsQ3XklX1snpAxQnYD4d/AA76ta9il53G9TC4h9r/iw Y/pbB5XPZSvKGdg5DwqEBTlSTqhsy0/APQqUjPZKNNjIh50meHunT6p4TgBl+vL5qvMc GnDep5a7Sh3aeOtiW+53d7J739tJaDRLw4oAoKqa7nnH3hQMioh03MDZAorWfUhvdkrG I5A5AM2XgH/1ufULJ/XeyP2r0O+v9+ZF6lg8dgIbkcdUaMKIyxH97W7MGc6C8FxPzBp0 +6yw1OWqaTQHcB0FVb1BK+EjJnkpjCvbcN7vcgprFis/YFENXHeWcyDRnXTLF2aHEwAD PxwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="Eiqy/Mt0"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 1si1164423ilz.178.2021.11.03.22.26.15; Wed, 03 Nov 2021 22:26:29 -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; dkim=pass header.i=@google.com header.s=20210112 header.b="Eiqy/Mt0"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230218AbhKDF1x (ORCPT + 99 others); Thu, 4 Nov 2021 01:27:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229824AbhKDF1w (ORCPT ); Thu, 4 Nov 2021 01:27:52 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2CFBC061714 for ; Wed, 3 Nov 2021 22:25:14 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id e136so8598505ybc.4 for ; Wed, 03 Nov 2021 22:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OtBceSJb428ILPrgAIwLW6HZ5uojQDi2g0yPmI7b2cQ=; b=Eiqy/Mt0qrguQhqd0jsEW9qkY8Q25PX+ioLaqmK/8C29vQ+LJza+En5XMIJ7bDoVyY 8NMnIRI5x22mBTsLnbzkztCtAXHu+iZdfyZOwpY3p5D3XuynIc06r4BAkyl974AdBiF3 U0B9M3ryrOWnB8LBMvHx/jPsqmvFqW2jiBxkqXLJyonR4aR+SLkrzXL4spfXm5Gb7B1s aV29j9wgXVbQX1pYaXpB8NTedUqDsM/fTNJvpLB5PhREhttxKffuERtfHXaIRnI8jh94 3xSvbfoirN1QLkcQzvBNLdQriNiN1JYDjHAE9j7GbsDv/xsot4wBC7SyE5Abrqmpy/73 +oNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OtBceSJb428ILPrgAIwLW6HZ5uojQDi2g0yPmI7b2cQ=; b=n6MeS7AbW4r53KRTAsGYWJeT/G8amGCa5nFJ7ebTvniG1XtAHiYBQycRgbWtdwk+rh JYqCdswlT0kue716v0RRCG9EVnE3pBX6sfCPtzDXv2XkQbfudXm8Q2T3yfr6c1VZnyfz 8y37czcB6vbzmj3ilZZKHC1BmHIJDhwEV+UlbuPkNb0G8lKz9ZGJ+CaDEdzIDllX7Q2C vVzUFBfxtdm00LP48tj6Soe9TgKl7i6aMpKIt7RzmdO+RH8F7VknXmm0egnzyKbp3G8F 52Zk3x0ltZ1O9RGIdk39Ae6R+sV9V3KZg/VRB76Y0kVjCWwn2IwioOk/gmPT/xi8UC3C XC+Q== X-Gm-Message-State: AOAM532t+PPIX4iI81383eb5PtQuuJ/0erXeLANqj4pPZPdk30xuLhIM MbmQG4zd6kEjIIZL2B4pZWmdBTggMyKPbyu42Slatw== X-Received: by 2002:a25:d4d5:: with SMTP id m204mr19280771ybf.418.1636003513823; Wed, 03 Nov 2021 22:25:13 -0700 (PDT) MIME-Version: 1.0 References: <20211005234459.430873-1-michael.roth@amd.com> <20211006203710.13326-1-michael.roth@amd.com> <20211012011537.q7dwebcistxddyyj@amd.com> In-Reply-To: <20211012011537.q7dwebcistxddyyj@amd.com> From: Mingwei Zhang Date: Wed, 3 Nov 2021 22:25:02 -0700 Message-ID: Subject: Re: [RFC 06/16] KVM: selftests: add library for creating/interacting with SEV guests To: Michael Roth Cc: Marc Orr , linux-kselftest@vger.kernel.org, kvm list , LKML , x86 , Nathan Tempelman , Steve Rutherford , Sean Christopherson , Brijesh Singh , Tom Lendacky , Varad Gautam , Shuah Khan , Vitaly Kuznetsov , David Woodhouse , Ricardo Koller , Jim Mattson , Wanpeng Li , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > > > +#define SEV_FW_REQ_VER_MAJOR 1 > > > +#define SEV_FW_REQ_VER_MINOR 30 > > > > Where does the requirement for this minimum version come from? Maybe > > add a comment? > > > > Edit: Is this for patches later on in the series that exercise SNP? If > > so, I think it would be better to add a check like this in the test > > itself, rather than globally. I happened to test this on a machine > > with a very old PSP FW, 0.22, and the SEV test added in patch #7 seems > > to work fine with this ancient PSP FW. > > Ah, yes, this was mostly for SNP support. I'll implement a separate minimum > version for SEV/SEV-ES. > I want to ask the same thing, I tried to run the sev selftest today and I was blocked by this minimum version number... BTW: I suspect if I want to update the SEV firmware I have to update the BIOS myself? So, it would be good to know what is the actual minimum for SEV. In addition, maybe that's side effect, I see a warning when building the kernel: "module ccp.ko requires firmware amd/amd_sev_fam19h_model0xh.sbin" Maybe I need some hints from you? Or maybe it is just harmless. I did double checked and it looks like I was using either amd_sev_fam17h_model3xh.sbin or amd_sev_fam17h_model0xh.sbin Thanks. -Mingwei