From: "Laszlo Ersek" <lersek@redhat.com>
To: devel@edk2.groups.io, anthony.perard@citrix.com
Cc: "Ard Biesheuvel" <ard.biesheuvel@arm.com>,
"Jordan Justen" <jordan.l.justen@intel.com>,
"Julien Grall" <julien@xen.org>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: Re: [edk2-devel] [PATCH v2 0/5] OvmfXen: Cleanup debug options
Date: Tue, 28 Apr 2020 23:23:00 +0200 [thread overview]
Message-ID: <22773435-f172-9dc2-fc21-dd651711c319@redhat.com> (raw)
In-Reply-To: <20200423095358.2518197-1-anthony.perard@citrix.com>
On 04/23/20 11:53, Anthony PERARD wrote:
> Patch series available in this git branch:
> git://xenbits.xen.org/people/aperard/ovmf.git br.ovmfxen-debug-io-v2
>
> v2:
> - reuse PlatformDebugLibIoPort rather than duplicate it.
>
> Remove non working DEBUG_ON_SERIAL_PORT, then add a new LibIoPort which always
> writes to the IO port.
>
> Issues was discovered and discuss in this mail threads:
> <e1f7e62c-adb4-eace-3828-7d73ae59ecd4@bsdio.com>
> "OvmfPkg XenPkg: X64 DEBUG GCC5 -DDEBUG_ON_SERIAL_PORT=TRUE build is broken"
>
> Cheers,
>
> Anthony PERARD (5):
> OvmfPkg/OvmfXen: Remove DEBUG_ON_SERIAL_PORT
> OvmfPkg/PlatformDebugLibIoPort: Reword QEMU to hypervisor
> OvmfPkg/PlatformDebugLibIoPort: factor out debug port detection
> OvmfPkg/PlatformDebugLibIoPort: Introduce a Nocheck variant
> OvmfPkg/OvmfXen: Introduce DEBUG_ON_HYPERVISOR_CONSOLE build flag
>
> OvmfPkg/OvmfXen.dsc | 49 +++++--------------
> .../PlatformDebugLibIoPort.inf | 1 +
> .../PlatformRomDebugLibIoPort.inf | 1 +
> ...f => PlatformRomDebugLibIoPortNocheck.inf} | 14 +++---
> .../PlatformDebugLibIoPort/DebugLibDetect.h | 8 +--
> .../DebugIoPortNocheck.c | 25 ++++++++++
> .../PlatformDebugLibIoPort/DebugIoPortQemu.c | 34 +++++++++++++
> .../Library/PlatformDebugLibIoPort/DebugLib.c | 18 +------
> .../PlatformDebugLibIoPort/DebugLibDetect.c | 2 +-
> .../DebugLibDetectRom.c | 2 +-
> 10 files changed, 84 insertions(+), 70 deletions(-)
> copy OvmfPkg/Library/PlatformDebugLibIoPort/{PlatformRomDebugLibIoPort.inf => PlatformRomDebugLibIoPortNocheck.inf} (65%)
> create mode 100644 OvmfPkg/Library/PlatformDebugLibIoPort/DebugIoPortNocheck.c
> create mode 100644 OvmfPkg/Library/PlatformDebugLibIoPort/DebugIoPortQemu.c
>
Merged as commit range 099dfbb29d8b..3a402f961143, via
<https://github.com/tianocore/edk2/pull/554>, with the following changes
(listed with git-range-diff):
> 1: 30e967c8caff ! 1: 8131bcf75724 OvmfPkg/OvmfXen: Remove DEBUG_ON_SERIAL_PORT
> @@ -18,6 +18,7 @@
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
> Message-Id: <20200423095358.2518197-2-anthony.perard@citrix.com>
> + Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>
> diff --git a/OvmfPkg/OvmfXen.dsc b/OvmfPkg/OvmfXen.dsc
> --- a/OvmfPkg/OvmfXen.dsc
> 2: f5074c29bed8 ! 2: d81604376c2c OvmfPkg/PlatformDebugLibIoPort: Reword QEMU to hypervisor
> @@ -8,6 +8,7 @@
>
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> Message-Id: <20200423095358.2518197-3-anthony.perard@citrix.com>
> + Reviewed-by: Laszlo Ersek <lersek@redhat.com>
>
> diff --git a/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.h b/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.h
> --- a/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.h
> 3: f34d57687c4f ! 3: b2d70c6189ac OvmfPkg/PlatformDebugLibIoPort: factor out debug port detection
> @@ -6,6 +6,8 @@
>
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> Message-Id: <20200423095358.2518197-4-anthony.perard@citrix.com>
> + Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> + Reviewed-by: Laszlo Ersek <lersek@redhat.com>
>
> diff --git a/OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf b/OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
> --- a/OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
> 4: c095623a5cfb ! 4: 37f050ea8228 OvmfPkg/PlatformDebugLibIoPort: Introduce a Nocheck variant
> @@ -7,6 +7,7 @@
>
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> Message-Id: <20200423095358.2518197-5-anthony.perard@citrix.com>
> + Reviewed-by: Laszlo Ersek <lersek@redhat.com>
>
> diff --git a/OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPortNocheck.inf b/OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPortNocheck.inf
> new file mode 100644
> @@ -30,7 +31,7 @@
> + FILE_GUID = 92AEB68E-C2CF-466E-9AB2-3F5E713F7DE6
> + MODULE_TYPE = BASE
> + VERSION_STRING = 1.0
> -+ LIBRARY_CLASS = DebugLib|SEC PEI_CORE PEIM DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER SMM_CORE DXE_SMM_DRIVER UEFI_DRIVER UEFI_APPLICATION
> ++ LIBRARY_CLASS = DebugLib
> + CONSTRUCTOR = PlatformRomDebugLibIoPortConstructor
> +
> +#
> @@ -40,8 +41,8 @@
> +[Sources]
> + DebugIoPortNocheck.c
> + DebugLib.c
> -+ DebugLibDetectRom.c
> + DebugLibDetect.h
> ++ DebugLibDetectRom.c
> +
> +[Packages]
> + MdePkg/MdePkg.dec
> 5: 979f76d57653 ! 5: c6f8d17f53f9 OvmfPkg/OvmfXen: Introduce DEBUG_ON_HYPERVISOR_CONSOLE build flag
> @@ -10,6 +10,7 @@
>
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> Message-Id: <20200423095358.2518197-6-anthony.perard@citrix.com>
> + Reviewed-by: Laszlo Ersek <lersek@redhat.com>
>
> diff --git a/OvmfPkg/OvmfXen.dsc b/OvmfPkg/OvmfXen.dsc
> --- a/OvmfPkg/OvmfXen.dsc
> @@ -29,9 +30,7 @@
>
> [LibraryClasses.common.SEC]
> QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
> -+!ifdef $(DEBUG_ON_HYPERVISOR_CONSOLE)
> -+ DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPortNocheck.inf
> -+!else
> ++!ifndef $(DEBUG_ON_HYPERVISOR_CONSOLE)
> DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
> +!endif
> ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
Thanks!
Laszlo
prev parent reply other threads:[~2020-04-28 21:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-23 9:53 [PATCH v2 0/5] OvmfXen: Cleanup debug options Anthony PERARD
2020-04-23 9:53 ` [PATCH v2 1/5] OvmfPkg/OvmfXen: Remove DEBUG_ON_SERIAL_PORT Anthony PERARD
2020-04-23 10:52 ` [edk2-devel] " Philippe Mathieu-Daudé
2020-04-23 9:53 ` [PATCH v2 2/5] OvmfPkg/PlatformDebugLibIoPort: Reword QEMU to hypervisor Anthony PERARD
2020-04-24 17:48 ` [edk2-devel] " Laszlo Ersek
2020-04-23 9:53 ` [PATCH v2 3/5] OvmfPkg/PlatformDebugLibIoPort: factor out debug port detection Anthony PERARD
2020-04-23 10:50 ` [edk2-devel] " Philippe Mathieu-Daudé
2020-04-24 17:52 ` Laszlo Ersek
2020-04-23 9:53 ` [PATCH v2 4/5] OvmfPkg/PlatformDebugLibIoPort: Introduce a Nocheck variant Anthony PERARD
2020-04-24 17:58 ` [edk2-devel] " Laszlo Ersek
2020-04-27 14:19 ` Anthony PERARD
2020-04-23 9:53 ` [PATCH v2 5/5] OvmfPkg/OvmfXen: Introduce DEBUG_ON_HYPERVISOR_CONSOLE build flag Anthony PERARD
2020-04-24 18:05 ` [edk2-devel] " Laszlo Ersek
2020-04-27 14:22 ` Anthony PERARD
2020-04-28 21:23 ` 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=22773435-f172-9dc2-fc21-dd651711c319@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