From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web08.4475.1628575516945492308 for ; Mon, 09 Aug 2021 23:05:17 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Lh9c3EC6; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628575516; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FjBnF5zCYbCizkHCfOQ1MLcDc47GHqm2AZCN0F/a0I0=; b=Lh9c3EC6HYV6SjY4x8Ab+at332Vb4XE0v8gFQSTjy44a4c7vKchPMQZAW+J0GPvDh3Abe6 fhoOuESYzr0TrRACfROQvPPGM46GYy3LBKMmXrp/YB2KQjSXSp42SFlBt79uKJEJY3Euz5 PdeFFBnl34xsCvTI3ZsOVL8kaUkxGJ4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-544-sMFcppKbOoiLlS0LJoELLw-1; Tue, 10 Aug 2021 02:05:14 -0400 X-MC-Unique: sMFcppKbOoiLlS0LJoELLw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9D3671008062; Tue, 10 Aug 2021 06:05:12 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.193.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2745B620DE; Tue, 10 Aug 2021 06:05:12 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id A92AA18003AA; Tue, 10 Aug 2021 08:05:10 +0200 (CEST) Date: Tue, 10 Aug 2021 08:05:10 +0200 From: "Gerd Hoffmann" To: devel@edk2.groups.io, ashish.kalra@amd.com Cc: Tom Lendacky , dovmurik@linux.vnet.ibm.com, brijesh.singh@amd.com, tobin@ibm.com, jejb@linux.ibm.com, jordan.l.justen@intel.com, ard.biesheuvel@arm.com, erdemaktas@google.com, jiewen.yao@intel.com, min.m.xu@intel.com Subject: Re: [edk2-devel] [PATCH v6 1/6] OvmfPkg/BaseMemEncryptLib: Detect SEV live migration feature. Message-ID: <20210810060510.tez2lx2uetr4plkh@sirius.home.kraxel.org> References: <812023de6c20a9d8fc62a561cedefb93640effab.1627906232.git.ashish.kalra@amd.com> <172fa9d6-6edb-41b1-c827-03b04d964469@amd.com> <20210809143714.GA7990@ashkalra_ubuntu_server> MIME-Version: 1.0 In-Reply-To: <20210809143714.GA7990@ashkalra_ubuntu_server> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > > I still really don't understand the need for the CPUID loop. KVM only ever > > programs CPUID function 0x40000000, right? Nope. When you enable hyper-v emulation features you'll go find the kvm cpuid @ 0x40000000 and the hyper-v cpuid @ 0x40000100 (or the other way around, not sure). take care, Gerd