edk2: update to stable202202
PATCH v2 1/11 tests/acpi: allow virt memory hotplug changes
In reply to Gerd Hoffmann--- tests/qtest/bios-tables-test-allowed-diff.h | 1 + 1 file changed, 1 insertion(+)
tests/qtest/bios-tables-test-allowed-diff.h +1 -0
@@ -1 +1,2 @@/* List of comma-separated changed AML files to ignore */ +"tests/data/acpi/virt/SSDT.memhp",
Signature · 1 line
2.35.1
v2 cover edk2: update to stable202202
While being at it switch to RELEASE builds,
which in turn needs acpi test data updates.
Add microvm build. Update MAINTAINERS.
Some build/ci tweaks.
Also available here:
https://gitlab.com/kraxel/qemu/-/commits/edk2
v2:
- tweaked .git check
- updated acpi table commit messages.
- picked up review tags.
Gerd Hoffmann (11):
tests/acpi: allow virt memory hotplug changes
edk2: update submodule to stable202202
edk2: switch to release builds
edk2: .git can be a file
edk2: add microvm build
edk2: update binaries to stable202202 tests/acpi: update expected data files tests/acpi: disallow virt memory hotplug changes edk2/docker: install python3 edk2/docker: use ubuntu 18.04
MAINTAINERS: take edk2
.gitlab-ci.d/edk2/Dockerfile | 4 ++-- MAINTAINERS | 2 +- pc-bios/edk2-aarch64-code.fd.bz2 | Bin 1507722 -> 1161290 bytes pc-bios/edk2-arm-code.fd.bz2 | Bin 1503187 -> 1161845 bytes pc-bios/edk2-i386-code.fd.bz2 | Bin 1646741 -> 1282120 bytes pc-bios/edk2-i386-secure-code.fd.bz2 | Bin 1860546 -> 1473677 bytes pc-bios/edk2-x86_64-code.fd.bz2 | Bin 1680164 -> 1327522 bytes pc-bios/edk2-x86_64-microvm.fd.bz2 | Bin 0 -> 1309407 bytes pc-bios/edk2-x86_64-secure-code.fd.bz2 | Bin 1912112 -> 1513711 bytes roms/Makefile.edk2 | 30 +++++++++++++++++-------- roms/edk2 | 2 +- roms/edk2-build.sh | 2 +- tests/data/acpi/virt/SSDT.memhp | Bin 736 -> 736 bytes 13 files changed, 26 insertions(+), 14 deletions(-) create mode 100644 pc-bios/edk2-x86_64-microvm.fd.bz2
Signature · 1 line
2.35.1
PATCH v2 3/11 edk2: switch to release builds
--- roms/Makefile.edk2 | 17 +++++++++-------- roms/edk2-build.sh | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-)
roms/Makefile.edk2 +9 -8
@@ -13,6 +13,7 @@ SHELL = /bin/bash +target = RELEASE toolchain = $(shell source ./edk2-funcs.sh && qemu_edk2_get_toolchain $(1)) licenses := \
@@ -73,7 +74,7 @@ submodules: -D NETWORK_TLS_ENABLE \ -D TPM2_ENABLE \ -D TPM2_CONFIG_ENABLE - cp edk2/Build/ArmVirtQemu-AARCH64/DEBUG_$(call toolchain,aarch64)/FV/QEMU_EFI.fd \ + cp edk2/Build/ArmVirtQemu-AARCH64/$(target)_$(call toolchain,aarch64)/FV/QEMU_EFI.fd \ $@ truncate --size=64M $@
@@ -87,7 +88,7 @@ submodules: -D NETWORK_TLS_ENABLE \ -D TPM2_ENABLE \ -D TPM2_CONFIG_ENABLE - cp edk2/Build/ArmVirtQemu-ARM/DEBUG_$(call toolchain,arm)/FV/QEMU_EFI.fd \ + cp edk2/Build/ArmVirtQemu-ARM/$(target)_$(call toolchain,arm)/FV/QEMU_EFI.fd \ $@ truncate --size=64M $@
@@ -101,7 +102,7 @@ submodules: -D NETWORK_TLS_ENABLE \ -D TPM_ENABLE \ -D TPM_CONFIG_ENABLE - cp edk2/Build/OvmfIa32/DEBUG_$(call toolchain,i386)/FV/OVMF_CODE.fd $@ + cp edk2/Build/OvmfIa32/$(target)_$(call toolchain,i386)/FV/OVMF_CODE.fd $@ ../pc-bios/edk2-i386-secure-code.fd: submodules +./edk2-build.sh \
@@ -115,7 +116,7 @@ submodules: -D TPM_CONFIG_ENABLE \ -D SECURE_BOOT_ENABLE \ -D SMM_REQUIRE - cp edk2/Build/OvmfIa32/DEBUG_$(call toolchain,i386)/FV/OVMF_CODE.fd $@ + cp edk2/Build/OvmfIa32/$(target)_$(call toolchain,i386)/FV/OVMF_CODE.fd $@ ../pc-bios/edk2-x86_64-code.fd: submodules +./edk2-build.sh \
@@ -127,7 +128,7 @@ submodules: -D NETWORK_TLS_ENABLE \ -D TPM_ENABLE \ -D TPM_CONFIG_ENABLE - cp edk2/Build/OvmfX64/DEBUG_$(call toolchain,x86_64)/FV/OVMF_CODE.fd $@ + cp edk2/Build/OvmfX64/$(target)_$(call toolchain,x86_64)/FV/OVMF_CODE.fd $@ ../pc-bios/edk2-x86_64-secure-code.fd: submodules +./edk2-build.sh \
@@ -142,15 +143,15 @@ submodules: -D TPM_CONFIG_ENABLE \ -D SECURE_BOOT_ENABLE \ -D SMM_REQUIRE - cp edk2/Build/Ovmf3264/DEBUG_$(call toolchain,x86_64)/FV/OVMF_CODE.fd $@ + cp edk2/Build/Ovmf3264/$(target)_$(call toolchain,x86_64)/FV/OVMF_CODE.fd $@ ../pc-bios/edk2-arm-vars.fd: ../pc-bios/edk2-arm-code.fd - cp edk2/Build/ArmVirtQemu-ARM/DEBUG_$(call toolchain,arm)/FV/QEMU_VARS.fd \ + cp edk2/Build/ArmVirtQemu-ARM/$(target)_$(call toolchain,arm)/FV/QEMU_VARS.fd \ $@ truncate --size=64M $@ ../pc-bios/edk2-i386-vars.fd: ../pc-bios/edk2-i386-code.fd - cp edk2/Build/OvmfIa32/DEBUG_$(call toolchain,i386)/FV/OVMF_VARS.fd $@ + cp edk2/Build/OvmfIa32/$(target)_$(call toolchain,i386)/FV/OVMF_VARS.fd $@ # The license file accumulates several individual licenses from under edk2, # prefixing each individual license with a header (generated by "tail") that
roms/edk2-build.sh +1 -1
@@ -50,6 +50,6 @@ qemu_edk2_set_cross_env "$emulation_target" build \ --cmd-len=65536 \ -n "$edk2_thread_count" \ - --buildtarget=DEBUG \ + --buildtarget=RELEASE \ --tagname="$edk2_toolchain" \ "${args[@]}"
Signature · 1 line
2.35.1
PATCH v2 5/11 edk2: add microvm build
In reply to Gerd Hoffmann--- roms/Makefile.edk2 | 11 +++++++++++ 1 file changed, 11 insertions(+)
roms/Makefile.edk2 +11 -0
@@ -33,6 +33,7 @@ flashdevs := \ i386-secure-code \ x86_64-code \ x86_64-secure-code \ + x86_64-microvm \ \ arm-vars \ i386-vars
@@ -145,6 +146,16 @@ submodules: -D SMM_REQUIRE cp edk2/Build/Ovmf3264/$(target)_$(call toolchain,x86_64)/FV/OVMF_CODE.fd $@ +../pc-bios/edk2-x86_64-microvm.fd: submodules + +./edk2-build.sh \ + x86_64 \ + --arch=X64 \ + --platform=OvmfPkg/Microvm/MicrovmX64.dsc \ + -D NETWORK_IP6_ENABLE \ + -D NETWORK_HTTP_BOOT_ENABLE \ + -D NETWORK_TLS_ENABLE + cp edk2/Build/MicrovmX64/$(target)_$(call toolchain,x86_64)/FV/MICROVM.fd $@ + ../pc-bios/edk2-arm-vars.fd: ../pc-bios/edk2-arm-code.fd cp edk2/Build/ArmVirtQemu-ARM/$(target)_$(call toolchain,arm)/FV/QEMU_VARS.fd \ $@
Signature · 1 line
2.35.1
PATCH v2 2/11 edk2: update submodule to stable202202
In reply to Gerd Hoffmann--- roms/edk2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
roms/edk2 +1 -1
@@ -1 +1 @@ -Subproject commit 06dc822d045c2bb42e497487935485302486e151 +Subproject commit b24306f15daa2ff8510b06702114724b33895d3c
Signature · 1 line
2.35.1
PATCH v2 4/11 edk2: .git can be a file
In reply to Gerd Hoffmann--- roms/Makefile.edk2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
roms/Makefile.edk2 +1 -1
@@ -51,7 +51,7 @@ all: $(foreach flashdev,$(flashdevs),../pc-bios/edk2-$(flashdev).fd.bz2) \ # we're building from a tarball and that they've already been fetched by # make-release/tarball scripts. submodules: - if test -d edk2/.git; then \ + if test -e edk2/.git; then \ cd edk2 && git submodule update --init --force -- \ ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 \ BaseTools/Source/C/BrotliCompress/brotli \
Signature · 1 line
2.35.1
PATCH v2 7/11 tests/acpi: update expected data files
In reply to Gerd HoffmannThe switch to edk2 RELEASE builds changes the memory layout a bit, resulting in a acpi table change.
DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM", 0x00000001)
{
Scope (\_SB)
{
Device (NVDR)
{
Name (_HID, "ACPI0012" /* NVDIMM Root Device */) // _HID: Hardware ID
Method (NCAL, 5, Serialized)
{
Local6 = MEMA /* \MEMA */
{
Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x02))
}
}
Device (NV02)
{
Name (_ADR, 0x03) // _ADR: Address
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x03))
}
}
}
}- Name (MEMA, 0x43D10000)
+ Name (MEMA, 0x43F50000)
}
--- tests/data/acpi/virt/SSDT.memhp | Bin 736 -> 736 bytes 1 file changed, 0 insertions(+), 0 deletions(-)
tests/data/acpi/virt/SSDT.memhp binary +0 -0
Signature · 1 line
2.35.1
PATCH v2 9/11 edk2/docker: install python3
In reply to Gerd Hoffmannpython2 is not supported any more,
so go install python3 instead.
--- .gitlab-ci.d/edk2/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.d/edk2/Dockerfile +1 -1
@@ -20,7 +20,7 @@ RUN apt update \ iasl \ make \ nasm \ - python \ + python3 \ uuid-dev \ && \ \
Signature · 1 line
2.35.1
PATCH v2 8/11 tests/acpi: disallow virt memory hotplug changes
In reply to Gerd Hoffmann--- tests/qtest/bios-tables-test-allowed-diff.h | 1 - 1 file changed, 1 deletion(-)
tests/qtest/bios-tables-test-allowed-diff.h +0 -1
@@ -1,2 +1 @@/* List of comma-separated changed AML files to ignore */ -"tests/data/acpi/virt/SSDT.memhp",
Signature · 1 line
2.35.1
PATCH v2 10/11 edk2/docker: use ubuntu 18.04
In reply to Gerd HoffmannUpstream CI uses ubuntu 18.04 too, so pick
that version (instead of something newer).
--- .gitlab-ci.d/edk2/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.d/edk2/Dockerfile +1 -1
@@ -1,7 +1,7 @@ # # Docker image to cross-compile EDK2 firmware binaries # -FROM ubuntu:16.04 +FROM ubuntu:18.04 MAINTAINER Philippe Mathieu-Daudé <[email protected]>
Signature · 1 line
2.35.1
PATCH v2 11/11 MAINTAINERS: take edk2
In reply to Gerd Hoffmann--- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
@@ -3144,7 +3144,7 @@ F: docs/interop/firmware.json EDK2 Firmware M: Philippe Mathieu-Daudé <[email protected]> -R: Gerd Hoffmann <[email protected]> +M: Gerd Hoffmann <[email protected]> S: Supported F: hw/i386/*ovmf* F: pc-bios/descriptors/??-edk2-*.json
Signature · 1 line
2.35.1
PATCH v2 6/11 edk2: update binaries to stable202202
In reply to Gerd HoffmannThe switch to edk2 RELEASE builds changes the memory layout a bit, resulting in a acpi table change.
DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM", 0x00000001)
{
Scope (\_SB)
{
Device (NVDR)
{
Name (_HID, "ACPI0012" /* NVDIMM Root Device */) // _HID: Hardware ID
Method (NCAL, 5, Serialized)
{
Local6 = MEMA /* \MEMA */
{
Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x02))
}
}
Device (NV02)
{
Name (_ADR, 0x03) // _ADR: Address
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x03))
}
}
}
}- Name (MEMA, 0x43D10000)
+ Name (MEMA, 0x43F50000)
}
--- pc-bios/edk2-aarch64-code.fd.bz2 | Bin 1507722 -> 1161290 bytes pc-bios/edk2-arm-code.fd.bz2 | Bin 1503187 -> 1161845 bytes pc-bios/edk2-i386-code.fd.bz2 | Bin 1646741 -> 1282120 bytes pc-bios/edk2-i386-secure-code.fd.bz2 | Bin 1860546 -> 1473677 bytes pc-bios/edk2-x86_64-code.fd.bz2 | Bin 1680164 -> 1327522 bytes pc-bios/edk2-x86_64-microvm.fd.bz2 | Bin 0 -> 1309407 bytes pc-bios/edk2-x86_64-secure-code.fd.bz2 | Bin 1912112 -> 1513711 bytes 7 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 pc-bios/edk2-x86_64-microvm.fd.bz2
pc-bios/edk2-aarch64-code.fd.bz2 binary +0 -0
pc-bios/edk2-arm-code.fd.bz2 binary +0 -0
pc-bios/edk2-i386-code.fd.bz2 binary +0 -0
pc-bios/edk2-i386-secure-code.fd.bz2 binary +0 -0
pc-bios/edk2-x86_64-code.fd.bz2 binary +0 -0
pc-bios/edk2-x86_64-microvm.fd.bz2 new file binary +0 -0
pc-bios/edk2-x86_64-secure-code.fd.bz2 binary +0 -0
Signature · 1 line
2.35.1
Re: [PATCH v2 01/11] tests/acpi: allow virt memory hotplug changes
In reply to Gerd HoffmannQuoted 2 lines · On Fri, 11 Mar 2022 06:37:49 +0100 Gerd Hoffmann <[email protected]> wrote:
Signed-off-by Gerd Hoffmann <[email protected]>Reviewed-by Alex Bennée <[email protected]>
Quoted 11 lines
--- tests/qtest/bios-tables-test-allowed-diff.h | 1 + 1 file changed, 1 insertion(+)tests/qtest/bios-tables-test-allowed-diff.h +1
-0@@ -1 +1,2 @@/* List of comma-separated changed AML files to ignore */ +"tests/data/acpi/virt/SSDT.memhp",
Re: [PATCH v2 07/11] tests/acpi: update expected data files
In reply to Gerd HoffmannQuoted 33 lines · On Fri, 11 Mar 2022 06:37:55 +0100 Gerd Hoffmann <[email protected]> wrote:
The switch to edk2 RELEASE builds changes the memory layout a bit, resulting in a acpi table change.
DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM",
0x00000001){ Scope (\_SB) { Device (NVDR) { Name (_HID, "ACPI0012" /* NVDIMM Root Device */) // _HID: Hardware ID Method (NCAL, 5, Serialized) { Local6 = MEMA /* \MEMA */ { Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x02)) } } Device (NV02) { Name (_ADR, 0x03) // _ADR: Address Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method { Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x03)) } } } }(quoted diff) +1
-1- Name (MEMA, 0x43D10000) + Name (MEMA, 0x43F50000) }
Quoted 1 line
Signed-off-by Gerd Hoffmann <[email protected]>
Quoted 13 lines
--- tests/data/acpi/virt/SSDT.memhp | Bin 736 -> 736 bytes 1 file changed, 0 insertions(+), 0 deletions(-)tests/data/acpi/virt/SSDT.memhp binary +0
-0
Re: [PATCH v2 08/11] tests/acpi: disallow virt memory hotplug changes
In reply to Gerd HoffmannQuoted 1 line · On Fri, 11 Mar 2022 06:37:56 +0100 Gerd Hoffmann <[email protected]> wrote:
Signed-off-by Gerd Hoffmann <[email protected]>
Quoted 11 lines
--- tests/qtest/bios-tables-test-allowed-diff.h | 1 - 1 file changed, 1 deletion(-)tests/qtest/bios-tables-test-allowed-diff.h +0
-1@@ -1,2 +1 @@/* List of comma-separated changed AML files to ignore */ -"tests/data/acpi/virt/SSDT.memhp",
Re: [PATCH v2 07/11] tests/acpi: update expected data files
In reply to Gerd HoffmannQuoted 3 lines · Gerd Hoffmann
The switch to edk2 RELEASE builds changes the memory layout a bit, resulting in a acpi table change.
I would actually also refer to the actual change (submodule update etc) that results in this change. Otherwise its hard to track/bosect stuff.
Quoted 48 lines
DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM",
0x00000001){ Scope (\_SB) { Device (NVDR) { Name (_HID, "ACPI0012" /* NVDIMM Root Device */) // _HID: Hardware ID Method (NCAL, 5, Serialized) { Local6 = MEMA /* \MEMA */ { Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x02)) } } Device (NV02) { Name (_ADR, 0x03) // _ADR: Address Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method { Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x03)) } } } }(quoted diff) +1
-1- Name (MEMA, 0x43D10000) + Name (MEMA, 0x43F50000) }Signed-off-by Gerd Hoffmann <[email protected]>--- tests/data/acpi/virt/SSDT.memhp | Bin 736 -> 736 bytes 1 file changed, 0 insertions(+), 0 deletions(-)tests/data/acpi/virt/SSDT.memhp binary +0
-1--2.35.1
Re: [PATCH v2 01/11] tests/acpi: allow virt memory hotplug changes
In reply to Gerd HoffmannQuoted 2 lines · Gerd Hoffmann
Signed-off-by Gerd Hoffmann <[email protected]>Reviewed-by Alex Bennée <[email protected]>
Quoted 13 lines
--- tests/qtest/bios-tables-test-allowed-diff.h | 1 + 1 file changed, 1 insertion(+)tests/qtest/bios-tables-test-allowed-diff.h +1
-0@@ -1 +1,2 @@/* List of comma-separated changed AML files to ignore */ +"tests/data/acpi/virt/SSDT.memhp",Signature · 1 line
2.35.1
Re: [PATCH v2 07/11] tests/acpi: update expected data files
In reply to Gerd HoffmannQuoted 33 lines · Gerd Hoffmann
The switch to edk2 RELEASE builds changes the memory layout a bit, resulting in a acpi table change.
DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM",
0x00000001){ Scope (\_SB) { Device (NVDR) { Name (_HID, "ACPI0012" /* NVDIMM Root Device */) // _HID: Hardware ID Method (NCAL, 5, Serialized) { Local6 = MEMA /* \MEMA */ { Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x02)) } } Device (NV02) { Name (_ADR, 0x03) // _ADR: Address Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method { Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x03)) } } } }(quoted diff) +1
-1- Name (MEMA, 0x43D10000) + Name (MEMA, 0x43F50000) }
Quoted 1 line
Signed-off-by Gerd Hoffmann <[email protected]>
Quoted 15 lines
--- tests/data/acpi/virt/SSDT.memhp | Bin 736 -> 736 bytes 1 file changed, 0 insertions(+), 0 deletions(-)tests/data/acpi/virt/SSDT.memhp binary +0
-0Signature · 2 lines
-- 2.35.1
Re: [PATCH v2 04/11] edk2: .git can be a file
In reply to Gerd HoffmannQuoted 4 lines · Gerd Hoffmann
Signed-off-by Gerd Hoffmann <[email protected]>--- roms/Makefile.edk2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Re: [PATCH v2 04/11] edk2: .git can be a file
In reply to Gerd HoffmannQuoted 4 lines · Gerd Hoffmann
Signed-off-by Gerd Hoffmann <[email protected]>--- roms/Makefile.edk2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Re: [PATCH v2 09/11] edk2/docker: install python3
In reply to Gerd HoffmannQuoted 8 lines · Gerd Hoffmann
python2 is not supported any more,
so go install python3 instead.Signed-off-by Gerd Hoffmann <[email protected]>Reviewed-by Alex Bennée <[email protected]>--- .gitlab-ci.d/edk2/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Re: [PATCH v2 10/11] edk2/docker: use ubuntu 18.04
In reply to Gerd HoffmannQuoted 8 lines · Gerd Hoffmann
Upstream CI uses ubuntu 18.04 too, so pick
that version (instead of something newer).Signed-off-by Gerd Hoffmann <[email protected]>Reviewed-by Alex Bennée <[email protected]>--- .gitlab-ci.d/edk2/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)