public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Yao, Jiewen" <jiewen.yao@intel.com>
To: Ryan Afranji <afranji@google.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Nakajima, Jun" <jun.nakajima@intel.com>,
	"Xu, Min M" <min.m.xu@intel.com>,
	"Aktas, Erdem" <erdemaktas@google.com>,
	"vannapurve@google.com" <vannapurve@google.com>
Subject: Re: [V1 PATCH 1/1] OvmfPkg: Add INVD case in #VE handler
Date: Fri, 9 Dec 2022 06:49:32 +0000	[thread overview]
Message-ID: <MW4PR11MB58728A0C91586A79C6C6AD268C1C9@MW4PR11MB5872.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20221208005115.3880077-1-afranji@google.com>

Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>

> -----Original Message-----
> From: Ryan Afranji <afranji@google.com>
> Sent: Thursday, December 8, 2022 8:51 AM
> To: devel@edk2.groups.io
> Cc: Nakajima, Jun <jun.nakajima@intel.com>; Xu, Min M
> <min.m.xu@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>; Aktas, Erdem
> <erdemaktas@google.com>; vannapurve@google.com; Ryan Afranji
> <afranji@google.com>
> Subject: [V1 PATCH 1/1] OvmfPkg: Add INVD case in #VE handler
> 
> According to the Intel GHCI specification document section 2.4.1, the
> goal for instructions that do not have a corresponding TDCALL is for the
> handler to treat the instruction as a NOP.
> 
> INVD does not have a corresponding TDCALL. This patch makes the #VE
> handler treat INVD as a NOP.
> 
> Signed-off-by: Ryan Afranji <afranji@google.com>
> ---
>  OvmfPkg/Library/CcExitLib/CcExitVeHandler.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/OvmfPkg/Library/CcExitLib/CcExitVeHandler.c
> b/OvmfPkg/Library/CcExitLib/CcExitVeHandler.c
> index c35f65a649..3798c2bb13 100644
> --- a/OvmfPkg/Library/CcExitLib/CcExitVeHandler.c
> +++ b/OvmfPkg/Library/CcExitLib/CcExitVeHandler.c
> @@ -541,6 +541,7 @@ CcExitHandleVe (
>      case EXIT_REASON_MONITOR_INSTRUCTION:
>      case EXIT_REASON_WBINVD:
>      case EXIT_REASON_RDPMC:
> +    case EXIT_REASON_INVD:
>        /* Handle as nops. */
>        break;
> 
> --
> 2.39.0.rc1.256.g54fd8350bd-goog


  reply	other threads:[~2022-12-09  6:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-08  0:51 [V1 PATCH 1/1] OvmfPkg: Add INVD case in #VE handler Ryan Afranji
2022-12-09  6:49 ` Yao, Jiewen [this message]
     [not found] ` <172F0D44D4F3B834.22457@groups.io>
2022-12-09  7:11   ` [edk2-devel] " Yao, Jiewen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MW4PR11MB58728A0C91586A79C6C6AD268C1C9@MW4PR11MB5872.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox