public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 0/2] OvmfPkg: save on I/O port accesses when the debug port is not in use
@ 2017-11-16 10:47 Paolo Bonzini
  2017-11-16 10:47 ` [PATCH 1/2] OvmfPkg: create a separate PlatformDebugLibIoPort instance for SEC Paolo Bonzini
  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
  0 siblings, 2 replies; 5+ messages in thread
From: Paolo Bonzini @ 2017-11-16 10:47 UTC (permalink / raw)
  To: edk2-devel; +Cc: Laszlo Ersek, Ard Biesheuvel, Jordan Justen

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-16 19:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-16 10:47 [PATCH v2 0/2] OvmfPkg: save on I/O port accesses when the debug port is not in use Paolo Bonzini
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox