public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: Brijesh Singh <brijesh.singh@amd.com>, edk2-devel@lists.01.org
Cc: Lendacky Thomas <Thomas.Lendacky@amd.com>,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	Anthony Perard <anthony.perard@citrix.com>,
	Julien Grall <julien.grall@linaro.org>,
	Justen Jordan L <jordan.l.justen@intel.com>
Subject: Re: [PATCH v3 0/3] OvmfPkg: mark flash memory range as MMIO
Date: Fri, 6 Jul 2018 16:01:04 +0200	[thread overview]
Message-ID: <2125f952-69e6-6093-3761-fb5d6e5547ea@redhat.com> (raw)
In-Reply-To: <1530817945-8030-1-git-send-email-brijesh.singh@amd.com>

On 07/05/18 21:12, Brijesh Singh wrote:
> The Qemu flash range is marked as 'system ram' in EFI runtime memmap
> but it is actually an IO address. The patch series updates the
> EFI runtime memmap to add this range as Memory Mapped IO address.
> 
> Changes since v2:
>  - added cover letter and extend CC list to add all OvmfPkg
>    maintainers/reviewers.
> 
> Changes since v1:
>  - split the OvmfPkg single patch into three patches based on Laszlo's feedback.
>   a) mark memory as MMIO for non SEV case
>   b) do not adding EFI runtime mapping for SMM build
>   c) clear C-bit when SEV is active for non SMM builds only
> 
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Cc: Anthony Perard <anthony.perard@citrix.com>
> Cc: Julien Grall <julien.grall@linaro.org>
> Cc: Justen Jordan L <jordan.l.justen@intel.com>
> Cc: Laszlo Ersek <lersek@redhat.com>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
> 
> Complete tree is available:
> url: https://github.com/codomania/edk2.git
> branch: qemu-flash-mmio
> 
> Brijesh Singh (3):
>   OvmfPkg/QemuFlashFvbServicesRuntimeDxe: mark Flash memory range as
>     MMIO
>   OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Do not expose MMIO in SMM
>     build
>   OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Restore C-bit when SEV is
>     active
> 
>  .../FvbServicesRuntimeDxe.inf                      |  1 +
>  .../FwBlockService.c                               | 38 +-----------
>  .../FwBlockService.h                               |  7 +++
>  .../FwBlockServiceDxe.c                            | 68 ++++++++++++++++++++++
>  .../FwBlockServiceSmm.c                            | 13 +++++
>  5 files changed, 90 insertions(+), 37 deletions(-)
> 

Regression tested -- only without SEV -- on top of commit 9090c8b53301,
using the configs below.

The "rdmsr" and "efibootmgr" checks are explained at
<https://github.com/tianocore/tianocore.github.io/wiki/Testing-SMM-with-QEMU,-KVM-and-libvirt>.


* i440fx, X64, without SMM:

(01) Fedora 28 guest, efibootmgr + rdmsr checks after boot and S3: PASS

(02) RHEL 6 guest, efibootmgr check after boot: PASS

(03) RHEL 7 guest, efibootmgr check after boot and S3: PASS

(04) Windows 7 guest, boot and S3: PASS


* q35, IA32, with SMM:

(05) Fedora 26 guest, efibootmgr check after boot and S3: PASS


* q35, IA32X64, with SMM:

(06) Fedora 28 guest, efibootmgr + rdmsr checks after boot and S3: PASS

(07) RHEL 7 guest, efibootmgr check after boot and S3: PASS

(08) Windows 10 guest, boot and S3: PASS

(09) Windows Server 2016 guest, boot: PASS
     (can't test S3 due to signing requirements for the QXL driver)

(10) Windows 8.1 guest, boot and S3: PASS

(11) Windows Server 2012 R2 guest, boot and S3: PASS

(12) Windows 7 guest, boot and S3: PASS

(13) Windows Server 2008 R2 guest, boot and S3: PASS


Once you submit v4 with the superficial updates requested, I will add:

Regression-tested-by: Laszlo Ersek <lersek@redhat.com>

I'll leave the SEV testing (with and without SMM) up to you :)

Thanks!
Laszlo


      parent reply	other threads:[~2018-07-06 14:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-05 19:12 [PATCH v3 0/3] OvmfPkg: mark flash memory range as MMIO Brijesh Singh
2018-07-05 19:12 ` [PATCH v3 1/3] OvmfPkg/QemuFlashFvbServicesRuntimeDxe: mark Flash " Brijesh Singh
2018-07-06 11:24   ` Laszlo Ersek
2018-07-05 19:12 ` [PATCH v3 2/3] OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Do not expose MMIO in SMM build Brijesh Singh
2018-07-06 11:35   ` Laszlo Ersek
2018-07-06 11:48     ` Laszlo Ersek
2018-07-05 19:12 ` [PATCH v3 3/3] OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Restore C-bit when SEV is active Brijesh Singh
2018-07-06 12:08   ` Laszlo Ersek
2018-07-06 14:01 ` Laszlo Ersek [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=2125f952-69e6-6093-3761-fb5d6e5547ea@redhat.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