[edk2] [PATCH v2 0/2] OvmfPkg: save on I/O port accesses when the debug port is not in use

Paolo Bonzini posted 2 patches 7 years, 5 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
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
[edk2] [PATCH v2 0/2] OvmfPkg: save on I/O port accesses when the debug port is not in use
Posted by Paolo Bonzini 7 years, 5 months ago
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

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel