public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ardb@kernel.org>
To: devel@edk2.groups.io, kraxel@redhat.com
Cc: "Lee, Chun-Yi" <joeyli.kernel@gmail.com>,
	Jiewen Yao <jiewen.yao@intel.com>,
	 Jordan Justen <jordan.l.justen@intel.com>,
	Min Xu <min.m.xu@intel.com>,
	 Brijesh Singh <brijesh.singh@amd.com>,
	Erdem Aktas <erdemaktas@google.com>,
	 James Bottomley <jejb@linux.ibm.com>,
	"Lee, Chun-Yi" <jlee@suse.com>
Subject: Re: [edk2-devel] [PATCH v2] OvmfPkg/IncompatiblePciDeviceSupportDxe: Ignore OptionRom in Sev guest
Date: Tue, 6 Sep 2022 18:56:05 +0200	[thread overview]
Message-ID: <CAMj1kXFA0pNfxm1V8hkgL51_nfSNfK3em0P1aC039djQ4V6FPQ@mail.gmail.com> (raw)
In-Reply-To: <20220829093216.aztojumlhrj2x7am@sirius.home.kraxel.org>

On Mon, 29 Aug 2022 at 11:32, Gerd Hoffmann <kraxel@redhat.com> wrote:
>
> On Fri, Aug 26, 2022 at 11:15:20PM +0800, Lee, Chun-Yi wrote:
> > Reference: https://bugzilla.tianocore.org/show_bug.cgi?id=4031
> >
> > This patch is similar to the c477b2783f patch for Td guest.
> >
> > Host VMM may inject OptionRom which is untrusted in Sev guest. So PCI
> > OptionRom needs to be ignored if it is Sev guest. According to
> > "Table 20. ACPI 2.0 & 3.0 QWORD Address Space Descriptor Usage"
> > PI spec 1.7, type-specific flags can be set to 0 when Address
> > Translation Offset == 6 to skip device option ROM.
> >
> > Without this patch, Sev guest may shows invalid MMIO opcode error
> > as following:
> >
> > Invalid MMIO opcode (F6)
> > ASSERT /home/abuild/rpmbuild/BUILD/edk2-edk2-stable202202/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c(1041): ((BOOLEAN)(0==1))
> >
> > The OptionRom must be disabled both on Td and Sev guests, so we direct
> > use CcProbe().
> >
> > v2: Use CcProbe() instead of TdIsEnabled() and MemEncryptSevIsEnabled().
>
> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
>

Merged as #3298

      reply	other threads:[~2022-09-06 16:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26 15:15 [PATCH v2] OvmfPkg/IncompatiblePciDeviceSupportDxe: Ignore OptionRom in Sev guest Lee, Chun-Yi
2022-08-29  9:32 ` Gerd Hoffmann
2022-09-06 16:56   ` Ard Biesheuvel [this message]

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=CAMj1kXFA0pNfxm1V8hkgL51_nfSNfK3em0P1aC039djQ4V6FPQ@mail.gmail.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