From: Paolo Bonzini <pbonzini@redhat.com>
To: edk2-devel@lists.01.org
Cc: Laszlo Ersek <lersek@redhat.com>,
Ard Biesheuvel <ard.biesheuvel@linaro.org>,
Jordan Justen <jordan.l.justen@intel.com>
Subject: [PATCH v2 0/2] OvmfPkg: save on I/O port accesses when the debug port is not in use
Date: Thu, 16 Nov 2017 11:47:14 +0100 [thread overview]
Message-ID: <20171116104716.15144-1-pbonzini@redhat.com> (raw)
This is version 2 of the patch I sent yesterday, now with proper SEC
support. The series makes OvmfPkg's PlatformDebugLibIoPort library
skip I/O port writes when the debug port device wasn't added to the
virtual machine.
Patch 1 creates a separate PlatformDebugLibIoPort instance for SEC, so
that the non-SEC version will be able to use a writable global variable.
Patch 2 then adds the detection machinery to both library instances.
The commit messages in both patches liberally pillage Laszlo's v1 review.
Thanks,
Paolo
Paolo Bonzini (2):
OvmfPkg: create a separate PlatformDebugLibIoPort instance for SEC
OvmfPkg: save on I/O port accesses when the debug port is not in use
OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c | 41 ++++++++--------
.../PlatformDebugLibIoPort/DebugLibDetect.c | 55 +++++++++++++++++++++
.../PlatformDebugLibIoPort/DebugLibDetect.h | 56 ++++++++++++++++++++++
.../PlatformDebugLibIoPort/DebugLibDetectRom.c | 48 +++++++++++++++++++
.../PlatformDebugLibIoPort.inf | 1 +
.../PlatformRomDebugLibIoPort.inf | 52 ++++++++++++++++++++
OvmfPkg/OvmfPkgIa32.dsc | 2 +-
OvmfPkg/OvmfPkgIa32X64.dsc | 2 +-
OvmfPkg/OvmfPkgX64.dsc | 2 +-
9 files changed, 237 insertions(+), 22 deletions(-)
create mode 100644 OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.c
create mode 100644 OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.h
create mode 100644 OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetectRom.c
create mode 100644 OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
--
2.14.3
next reply other threads:[~2017-11-16 10:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-16 10:47 Paolo Bonzini [this message]
2017-11-16 10:47 ` [PATCH 1/2] OvmfPkg: create a separate PlatformDebugLibIoPort instance for SEC Paolo Bonzini
2017-11-16 18:43 ` Laszlo Ersek
2017-11-16 10:47 ` [PATCH 2/2] OvmfPkg: save on I/O port accesses when the debug port is not in use Paolo Bonzini
2017-11-16 20:03 ` Laszlo Ersek
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=20171116104716.15144-1-pbonzini@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