From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.120]) by mx.groups.io with SMTP id smtpd.web12.9621.1591792464594770983 for ; Wed, 10 Jun 2020 05:34:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LgdK/m08; spf=pass (domain: redhat.com, ip: 205.139.110.120, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591792463; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=miELJJ4rmTVbi6E+RsXtCJEQGN5tc67UOl2mXU0/Y4A=; b=LgdK/m08NSsNGU3DLH22/Vmti4WniEY3RqPOpySHQCYF2Kbor+ptnhDnQsxIr/GmOeNeqt pgdNYP1/7YexqBh+y7tjVwQyyp2dqkvgjiY4cP6OkodTKB01SSQ9ADNwr3Ur6LW7d0H0wL wVNVhQBaEvtJCkmR6qVC4m8kq4+2eSs= 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-354-fleuDRzMMK2sUPZTZqh2SQ-1; Wed, 10 Jun 2020 08:34:21 -0400 X-MC-Unique: fleuDRzMMK2sUPZTZqh2SQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E046A18FE864; Wed, 10 Jun 2020 12:34:19 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-112-233.ams2.redhat.com [10.36.112.233]) by smtp.corp.redhat.com (Postfix) with ESMTP id F2AA81A7CD; Wed, 10 Jun 2020 12:34:17 +0000 (UTC) Subject: Re: [PATCH v9 13/46] OvmfPkg/VmgExitLib: Add support for IOIO_PROT NAE events To: Tom Lendacky , devel@edk2.groups.io Cc: Brijesh Singh , Ard Biesheuvel , Eric Dong , Jordan Justen , Liming Gao , Michael D Kinney , Ray Ni References: <7b771ecff3a75639add17bf8a7753519bff05143.1591363657.git.thomas.lendacky@amd.com> From: "Laszlo Ersek" Message-ID: <12ef794b-a60f-1437-56c6-67d3bc706e55@redhat.com> Date: Wed, 10 Jun 2020 14:34:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <7b771ecff3a75639add17bf8a7753519bff05143.1591363657.git.thomas.lendacky@amd.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 06/05/20 15:27, Tom Lendacky wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2198 > > Under SEV-ES, a IOIO_PROT intercept generates a #VC exception. VMGEXIT > must be used to allow the hypervisor to handle this intercept. > > Add support to construct the required GHCB values to support a IOIO_PROT > NAE event. Parse the instruction that generated the #VC exception, > setting the required register values in the GHCB and creating the proper > SW_EXITINFO1 value in the GHCB. > > Cc: Jordan Justen > Cc: Laszlo Ersek > Cc: Ard Biesheuvel > Signed-off-by: Tom Lendacky > --- > OvmfPkg/Include/IndustryStandard/InstructionParsing.h | 83 +++ > OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c | 560 +++++++++++++++++++- > 2 files changed, 629 insertions(+), 14 deletions(-) Looks good, thanks for the updates. Acked-by: Laszlo Ersek