Skip to content

optionrom/pvh: use memcmp() to find the RSDP signature

Stefano Garzarella qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

- added patch 1 to provide a memcmp() implementation
- made 'rsdp_signature' static const [Phil]
- uses memcmp() instead of __builtin_memcmp()
- added pvh.bin binary with the changes applied

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2optionrom: add memcmp() implementationpc-bios/optionrom/optrom.h+15 -00 replies
2/2optionrom/pvh: use memcmp() to find the RSDP signaturepc-bios/optionrom/pvh_main.c pc-bios/pvh.bin+7 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] optionrom/pvh: use memcmp() to find the RSDP signature

In this version I added a memcmp() implementation. In v1 I tried with __builtin_memcmp() but CI failed with clang [1] and gcc 4.8.5.

v2:
- added patch 1 to provide a memcmp() implementation
- made 'rsdp_signature' static const [Phil]
- uses memcmp() instead of __builtin_memcmp()
- added pvh.bin binary with the changes applied

v1: https://lists.gnu.org/archive/html/qemu-devel/2021-03/msg07425.html

Thanks,
Stefano

[1] https://gitlab.com/sgarzarella/qemu/-/jobs/1117036403#L385

Stefano Garzarella (2):
optionrom: add memcmp() implementation optionrom/pvh: use memcmp() to find the RSDP signature

 pc-bios/optionrom/optrom.h   |  15 +++++++++++++++
 pc-bios/optionrom/pvh_main.c |  12 +++++++-----
 pc-bios/pvh.bin              | Bin 1536 -> 1536 bytes
 3 files changed, 22 insertions(+), 5 deletions(-)
Signature · 1 line
2.30.2