Skip to contentSkip to conversation

Firmware/edk2 20231213 patches

GIT PULL Applied Gerd Hoffmann 5 participants 26 messages Dec 13, 2023 – Jan 18, 2024

lore
Share & tools
lore
#0 lore raw

The following changes since commit 9c74490bff6c8886a922008d0c9ce6cae70dd17e:

Update version for v8.2.0-rc3 release (2023-12-06 14:34:20 -0500)

are available in the Git repository at:

https://gitlab.com/kraxel/qemu.git tags/firmware/edk2-20231213-pull-request

for you to fetch changes up to 704f7cad5105246822686f65765ab92045f71a3b:

tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp changes (2023-12-13 11:23:11 +0100)

----------------------------------------------------------------
edk2: update to git snapshot (maybe for-8.2)

This updates edk2 to git master as of today. This picks up a patch (merged only yesterday, that's why this last-minute PR) which allows to work around a bug in shim, and enables that workaround in the qemu firmware builds.

This solves a real-world problem on arm hardware, walk over to
https://gitlab.com/qemu-project/qemu/-/issues/1990 to see the details.

Merging this firmware update that close to the 8.2 release clearly is not without risks. If I get a 'no', I'm not going to complain.

That said I'm not aware of any bugs, and landing this in 8.2.0 would make a bunch of folks hanging around in issue 1990 very happy.

Alternative plan would be to merge this after the release, give it some time for testing, and assuming everything goes well schedule a backport for 8.2.1

----------------------------------------------------------------

Gerd Hoffmann (6):
tests/acpi: allow tests/data/acpi/virt/SSDT.memhp changes
edk2: update to git snapshot
edk2: update build config, set PcdUninstallMemAttrProtocol = TRUE.
edk2: update binaries to git snapshot
tests/acpi: update expected data files
tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp changes

 pc-bios/edk2-aarch64-code.fd.bz2       | Bin 1573561 -> 1587761 bytes
 pc-bios/edk2-arm-code.fd.bz2           | Bin 1560966 -> 1569509 bytes
 pc-bios/edk2-i386-code.fd.bz2          | Bin 1770410 -> 1773520 bytes
 pc-bios/edk2-i386-secure-code.fd.bz2   | Bin 2121818 -> 2127480 bytes
 pc-bios/edk2-riscv-code.fd.bz2         | Bin 1177402 -> 1180314 bytes
 pc-bios/edk2-x86_64-code.fd.bz2        | Bin 1887921 -> 1891942 bytes
 pc-bios/edk2-x86_64-microvm.fd.bz2     | Bin 1782629 -> 1783951 bytes
 pc-bios/edk2-x86_64-secure-code.fd.bz2 | Bin 2200701 -> 2212258 bytes
 roms/edk2                              |   2 +-
 roms/edk2-build.config                 |  12 +++++++++---
 tests/data/acpi/virt/SSDT.memhp        | Bin 1817 -> 1817 bytes
 11 files changed, 10 insertions(+), 4 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

[PULL 2/6] edk2: update to git snapshot

Want pick up edk2 commit cee7ba349c0c ("ArmVirtQemu: Allow EFI memory attributes protocol to be disabled"). Needed to fix issue #1990.

---
 roms/edk2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
roms/edk2 +1 -1
index 819cfc6b42a6..b8a3eec88cc7 160000
@@ -1 +1 @@
-Subproject commit 819cfc6b42a68790a23509e4fcc58ceb70e1965e
+Subproject commit b8a3eec88cc74bbfe7fb389d026cc7d1d8a989c8
Signature · 1 line
2.43.0
#2 lore raw

[PULL 5/6] tests/acpi: update expected data files

In reply to Gerd Hoffmann

edk2 firmware update caused a address layout change.

DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM", 0x00000001)

 {
     [ ... ]

- Name (MEMA, 0x43C90000)
+ Name (MEMA, 0x43C80000)
}

---
 tests/data/acpi/virt/SSDT.memhp | Bin 1817 -> 1817 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)
tests/data/acpi/virt/SSDT.memhp binary +0 -0
index 31ff6ac46940a3e304a2d68efabe12bab50be0d7..fb3dcde5a10936667ad75a759b8bd444a7b19fc2 100644
GIT binary patch
Signature · 1 line
2.43.0
#3 lore raw

[PULL 1/6] tests/acpi: allow tests/data/acpi/virt/SSDT.memhp 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
index dfb8523c8bf4..e569098abddc 100644
@@ -1 +1,2 @@
 /* List of comma-separated changed AML files to ignore */
+"tests/data/acpi/virt/SSDT.memhp",
Signature · 1 line
2.43.0
#4 lore raw

[PULL 3/6] edk2: update build config, set PcdUninstallMemAttrProtocol = TRUE.

In reply to Gerd Hoffmann

Needed to workaround buggy EFI_MEMORY_ATTRIBUTE_PROTOCOL usage in shim.efi.

---
 roms/edk2-build.config | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
roms/edk2-build.config +9 -3
index bab6a9caebfa..0d367dbdb775 100644
@@ -22,9 +22,15 @@ SMM_REQUIRE              = TRUE
 [opts.armvirt.silent]
 DEBUG_PRINT_ERROR_LEVEL  = 0x80000000
 
-[pcds.nx.broken.grub]
+[pcds.nx.strict]
+PcdDxeNxMemoryProtectionPolicy = 0xC000000000007FD5
+PcdUninstallMemAttrProtocol    = FALSE
+
+[pcds.nx.broken.shim.grub]
 # grub.efi uses EfiLoaderData for code
 PcdDxeNxMemoryProtectionPolicy = 0xC000000000007FD1
+# shim.efi has broken MemAttr code
+PcdUninstallMemAttrProtocol    = TRUE
 
 [pcds.workaround.202308]
 PcdFirstTimeWakeUpAPsBySipi = FALSE
@@ -95,7 +101,7 @@ conf = ArmVirtPkg/ArmVirtQemu.dsc
 arch = ARM
 opts = common
        armvirt.silent
-pcds = nx.broken.grub
+pcds = nx.broken.shim.grub
 plat = ArmVirtQemu-ARM
 dest = ../pc-bios
 cpy1 = FV/QEMU_EFI.fd    edk2-arm-code.fd
@@ -112,7 +118,7 @@ conf = ArmVirtPkg/ArmVirtQemu.dsc
 arch = AARCH64
 opts = common
        armvirt.silent
-pcds = nx.broken.grub
+pcds = nx.broken.shim.grub
 plat = ArmVirtQemu-AARCH64
 dest = ../pc-bios
 cpy1 = FV/QEMU_EFI.fd  edk2-aarch64-code.fd
Signature · 1 line
2.43.0
#5 lore raw

[PULL 6/6] tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp 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
index e569098abddc..dfb8523c8bf4 100644
@@ -1,2 +1 @@
 /* List of comma-separated changed AML files to ignore */
-"tests/data/acpi/virt/SSDT.memhp",
Signature · 1 line
2.43.0
#6 lore raw

Re: [PULL 6/6] tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp changes

Quoted 5 lines · Gerd Hoffmann

Please combine this patch with patch 5. No need to do this separately.

Quoted 14 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
index e569098abddc..dfb8523c8bf4 100644
@@ -1,2 +1 @@
 /* List of comma-separated changed AML files to ignore */
-"tests/data/acpi/virt/SSDT.memhp",
Signature · 1 line
2.43.0
#7 lore raw

Re: [PULL 6/6] tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp changes

Quoted 7 lines · Ani Sinha
Quoted 5 lines · Gerd Hoffmann

Please combine this patch with patch 5. No need to do this separately.

Yes but since it's done - it's fine either way I think. No?

Quoted 14 lines
Quoted 14 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
index e569098abddc..dfb8523c8bf4 100644
@@ -1,2 +1 @@
 /* List of comma-separated changed AML files to ignore */
-"tests/data/acpi/virt/SSDT.memhp",
Signature · 1 line
2.43.0
#8 lore raw

Re: [PULL 6/6] tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp changes

Quoted 7 lines · Michael S. Tsirkin
Quoted 2 lines · Ani Sinha
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines · Gerd Hoffmann

Please combine this patch with patch 5. No need to do this separately.

Yes but since it's done - it's fine either way I think. No?

Yes I did not realise it was a PR and not a review. I thought it was sent for review. If it’s done it’s ok. That being said, I would have preferred that the commit had a description and not completely empty.

Quoted 16 lines
Quoted 15 lines
Quoted 15 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
index e569098abddc..dfb8523c8bf4 100644
@@ -1,2 +1 @@
 /* List of comma-separated changed AML files to ignore */
-"tests/data/acpi/virt/SSDT.memhp",
Signature · 1 line
2.43.0
#9 lore raw

Re: [PULL 6/6] tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp changes

Quoted 11 lines · Ani Sinha
Quoted 11 lines · Michael S. Tsirkin
Quoted 6 lines · Ani Sinha
Quoted 5 lines · Gerd Hoffmann
Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Please combine this patch with patch 5. No need to do this separately.

Yes but since it's done - it's fine either way I think. No?

Yes I did not realise it was a PR and not a review. I thought it was sent for review. If it’s done it’s ok. That being said, I would have preferred that the commit had a description and not completely empty.

I agree, Gerd, going forward please include the diff of the disassemled AML.

Quoted 16 lines
Quoted 16 lines
Quoted 15 lines
Quoted 15 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
index e569098abddc..dfb8523c8bf4 100644
@@ -1,2 +1 @@
 /* List of comma-separated changed AML files to ignore */
-"tests/data/acpi/virt/SSDT.memhp",
Signature · 1 line
2.43.0
#10 lore raw

Re: [PULL 6/6] tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp changes

Hi,

Quoted 2 lines

I agree, Gerd, going forward please include the diff of the disassemled AML.

That is in patch 5/6 which updates the test data.

take care,
Gerd

#11 lore raw

Re: [PULL 6/6] tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp changes

Quoted 9 lines · Gerd Hoffmann

Hi,

Quoted 2 lines

I agree, Gerd, going forward please include the diff of the disassemled AML.

That is in patch 5/6 which updates the test data.

take care,
Gerd

Oh I double checked and you are right, I'm not sure where did I look that I missed it. Pls ignore.

#12 lore raw

Re: [PULL 6/6] tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp changes

Quoted 10 lines · Michael S. Tsirkin
Quoted 5 lines · Gerd Hoffmann

Hi,

Quoted 2 lines

I agree, Gerd, going forward please include the diff of the disassemled AML.

Quoted 6 lines
Quoted 4 lines

That is in patch 5/6 which updates the test data.

take care,
Gerd

Oh I double checked and you are right, I'm not sure where did I look that I missed it.

Yes I was talking about patch 6 having an empty description.

#13 lore raw
In reply to Gerd Hoffmann
Quoted 26 lines · Gerd Hoffmann

The following changes since commit 9c74490bff6c8886a922008d0c9ce6cae70dd17e:

Update version for v8.2.0-rc3 release (2023-12-06 14:34:20 -0500)

are available in the Git repository at:

https://gitlab.com/kraxel/qemu.git tags/firmware/edk2-20231213-pull-request

for you to fetch changes up to 704f7cad5105246822686f65765ab92045f71a3b:

tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp changes (2023-12-13 11:23:11 +0100)

----------------------------------------------------------------
edk2: update to git snapshot (maybe for-8.2)

This updates edk2 to git master as of today. This picks up a patch (merged only yesterday, that's why this last-minute PR) which allows to work around a bug in shim, and enables that workaround in the qemu firmware builds.

This solves a real-world problem on arm hardware, walk over to
https://gitlab.com/qemu-project/qemu/-/issues/1990 to see the details.

Merging this firmware update that close to the 8.2 release clearly is not without risks. If I get a 'no', I'm not going to complain.

Quoted 6 lines

That said I'm not aware of any bugs, and landing this in 8.2.0 would make a bunch of folks hanging around in issue 1990 very happy.

Alternative plan would be to merge this after the release, give it some time for testing, and assuming everything goes well schedule a backport for 8.2.1

Ping.

As expected this missed the 8.2 boat. Now the devel tree is open again and people are back from xmas + new year vacations, can this be picked up for master and eventually 8.2-stable?

thanks,
Gerd

#14 lore raw
Quoted 35 lines · Gerd Hoffmann
Quoted 26 lines · Gerd Hoffmann

The following changes since commit 9c74490bff6c8886a922008d0c9ce6cae70dd17e:

Update version for v8.2.0-rc3 release (2023-12-06 14:34:20 -0500)

are available in the Git repository at:

https://gitlab.com/kraxel/qemu.git tags/firmware/edk2-20231213-pull-request

for you to fetch changes up to 704f7cad5105246822686f65765ab92045f71a3b:

tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp changes (2023-12-13 11:23:11 +0100)

----------------------------------------------------------------
edk2: update to git snapshot (maybe for-8.2)

This updates edk2 to git master as of today. This picks up a patch (merged only yesterday, that's why this last-minute PR) which allows to work around a bug in shim, and enables that workaround in the qemu firmware builds.

This solves a real-world problem on arm hardware, walk over to
https://gitlab.com/qemu-project/qemu/-/issues/1990 to see the details.

Merging this firmware update that close to the 8.2 release clearly is not without risks. If I get a 'no', I'm not going to complain.

Quoted 6 lines

That said I'm not aware of any bugs, and landing this in 8.2.0 would make a bunch of folks hanging around in issue 1990 very happy.

Alternative plan would be to merge this after the release, give it some time for testing, and assuming everything goes well schedule a backport for 8.2.1

Quoted 5 lines

Ping.

As expected this missed the 8.2 boat. Now the devel tree is open again and people are back from xmas + new year vacations, can this be picked up for master and eventually 8.2-stable?

I can queue it, sure. Do we need to respin it to add cc: qemu-stable tags, or can it be applied as-is ?

-- PMM

#15 lore raw
Quoted 37 lines · Peter Maydell
Quoted 35 lines · Gerd Hoffmann
Quoted 32 lines · Gerd Hoffmann

The following changes since commit 9c74490bff6c8886a922008d0c9ce6cae70dd17e:

Update version for v8.2.0-rc3 release (2023-12-06 14:34:20 -0500)

are available in the Git repository at:

https://gitlab.com/kraxel/qemu.git tags/firmware/edk2-20231213-pull-request

for you to fetch changes up to 704f7cad5105246822686f65765ab92045f71a3b:

tests/acpi: disallow tests/data/acpi/virt/SSDT.memhp changes (2023-12-13 11:23:11 +0100)

----------------------------------------------------------------
edk2: update to git snapshot (maybe for-8.2)

This updates edk2 to git master as of today. This picks up a patch (merged only yesterday, that's why this last-minute PR) which allows to work around a bug in shim, and enables that workaround in the qemu firmware builds.

This solves a real-world problem on arm hardware, walk over to
https://gitlab.com/qemu-project/qemu/-/issues/1990 to see the details.

Merging this firmware update that close to the 8.2 release clearly is not without risks. If I get a 'no', I'm not going to complain.

That said I'm not aware of any bugs, and landing this in 8.2.0 would make a bunch of folks hanging around in issue 1990 very happy.

Alternative plan would be to merge this after the release, give it some time for testing, and assuming everything goes well schedule a backport for 8.2.1

Quoted 8 lines
Quoted 5 lines

Ping.

As expected this missed the 8.2 boat. Now the devel tree is open again and people are back from xmas + new year vacations, can this be picked up for master and eventually 8.2-stable?

I can queue it, sure. Do we need to respin it to add cc: qemu-stable tags, or can it be applied as-is ?

...PS did you mean to cc qemu-stable, not the nonexistent edk2-stable on this pullreq email?

thanks
-- PMM

#16 lore raw
Quoted 10 lines · Peter Maydell
Quoted 9 lines · Peter Maydell
Quoted 6 lines · Gerd Hoffmann

Ping.

As expected this missed the 8.2 boat. Now the devel tree is open again and people are back from xmas + new year vacations, can this be picked up for master and eventually 8.2-stable?

Quoted 5 lines
Quoted 2 lines

I can queue it, sure. Do we need to respin it to add cc: qemu-stable tags, or can it be applied as-is ?

...PS did you mean to cc qemu-stable, not the nonexistent edk2-stable on this pullreq email?

Yes, Cc'ing qemu-stable was the intention, thanks for fixing it up.

I'd leave it to the stable maintainer(s). If they prefer a respin with Cc qemu-stable added to all patches I surely can do that. If being notified with this reply is good enough I'm happy too.

take care,
Gerd

#17 lore raw
Quoted 15 lines · Gerd Hoffmann
Quoted 13 lines · Peter Maydell
Quoted 11 lines · Peter Maydell
Quoted 6 lines · Gerd Hoffmann

Ping.

As expected this missed the 8.2 boat. Now the devel tree is open again and people are back from xmas + new year vacations, can this be picked up for master and eventually 8.2-stable?

I can queue it, sure. Do we need to respin it to add cc: qemu-stable tags, or can it be applied as-is ?

Quoted 8 lines
Quoted 2 lines

...PS did you mean to cc qemu-stable, not the nonexistent edk2-stable on this pullreq email?

Yes, Cc'ing qemu-stable was the intention, thanks for fixing it up.

I'd leave it to the stable maintainer(s). If they prefer a respin with Cc qemu-stable added to all patches I surely can do that. If being notified with this reply is good enough I'm happy too.

Well, it all made it through the CI fine, and I think MJT is fairly flexible about stable- notifications, so I'm going to push this merge to git.

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/9.0
for any user-visible changes.

-- PMM

#18 lore raw
Quoted 31 lines · Peter Maydell
Quoted 15 lines · Gerd Hoffmann
Quoted 13 lines · Peter Maydell
Quoted 11 lines · Peter Maydell
Quoted 6 lines · Gerd Hoffmann

Ping.

As expected this missed the 8.2 boat. Now the devel tree is open again and people are back from xmas + new year vacations, can this be picked up for master and eventually 8.2-stable?

I can queue it, sure. Do we need to respin it to add cc: qemu-stable tags, or can it be applied as-is ?

Quoted 8 lines
Quoted 2 lines

...PS did you mean to cc qemu-stable, not the nonexistent edk2-stable on this pullreq email?

Yes, Cc'ing qemu-stable was the intention, thanks for fixing it up.

I'd leave it to the stable maintainer(s). If they prefer a respin with Cc qemu-stable added to all patches I surely can do that. If being notified with this reply is good enough I'm happy too.

Well, it all made it through the CI fine, and I think MJT is fairly flexible about stable- notifications, so I'm going to push this merge to git.

Quoted 4 lines

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/9.0
for any user-visible changes.

PS: when are we likely to be able to update to a proper released EDK2 ? Running with a git snapshot isn't ideal, so if we can move to an EDK2 release version within this QEMU cycle that would be nice.

thanks
-- PMM

#19 lore raw
Quoted 4 lines · Peter Maydell

PS: when are we likely to be able to update to a proper released EDK2 ? Running with a git snapshot isn't ideal, so if we can move to an EDK2 release version within this QEMU cycle that would be nice.

...and for a stable backport, backporting the released version seems likely to be better than backporting the git-snapshot.

-- PMM

#20 lore raw
In reply to Peter Maydell

Hi,

Quoted 4 lines

PS: when are we likely to be able to update to a proper released EDK2 ? Running with a git snapshot isn't ideal, so if we can move to an EDK2 release version within this QEMU cycle that would be nice.

Next release should be tagged by end of February, so if the qemu 9.0 schedule is simliar to the 8.0 schedule this is before soft freeze and an update should be no problem.

take care,
Gerd

#21 lore raw

15.01.2024 13:20, Gerd Hoffmann :

Quoted 10 lines
   Hi,
Quoted 4 lines

PS: when are we likely to be able to update to a proper released EDK2 ? Running with a git snapshot isn't ideal, so if we can move to an EDK2 release version within this QEMU cycle that would be nice.

Next release should be tagged by end of February, so if the qemu 9.0 schedule is simliar to the 8.0 schedule this is before soft freeze and an update should be no problem.

So, should we pick this up for 8.2.1, or wait till next release of edk2 ?

The thing here is that for (some) downstreams, edk2 is a separate package, so if qemu relies on changed edk2, it should be there before qemu-side changes can be added. So if we pick this patchset up for 8.2.1, it might be a bit surprising for downstreams.

Thanks,

/mjt

#22 lore raw
Quoted 12 lines · Michael Tokarev

15.01.2024 13:20, Gerd Hoffmann :

Quoted 10 lines
   Hi,
Quoted 4 lines

PS: when are we likely to be able to update to a proper released EDK2 ? Running with a git snapshot isn't ideal, so if we can move to an EDK2 release version within this QEMU cycle that would be nice.

Next release should be tagged by end of February, so if the qemu 9.0 schedule is simliar to the 8.0 schedule this is before soft freeze and an update should be no problem.

Quoted 6 lines

So, should we pick this up for 8.2.1, or wait till next release of edk2 ?

The thing here is that for (some) downstreams, edk2 is a separate package, so if qemu relies on changed edk2, it should be there before qemu-side changes can be added. So if we pick this patchset up for 8.2.1, it might be a bit surprising for downstreams.

It's not that there changed something in the edk2 <-> qemu interfaces. This build contains a workaround for the current shim.efi clusterf*ck.

The tl;dr version: The build is compiled with the (very recently added) PcdUninstallMemAttrProtocol=TRUE option to workaround a bug in shim.efi.

The extra long version:

    https://www.kraxel.org/blog/2023/12/uefi-nx-linux-boot/

Picking this up for 8.2.1 makes life easier for the downstreams which do not do their own firmware builds but ship the qemu prebuilds instead.

take care,
Gerd

#23 lore raw
Quoted 24 lines · Gerd Hoffmann
Quoted 12 lines · Michael Tokarev

15.01.2024 13:20, Gerd Hoffmann :

Quoted 10 lines
   Hi,
Quoted 4 lines

PS: when are we likely to be able to update to a proper released EDK2 ? Running with a git snapshot isn't ideal, so if we can move to an EDK2 release version within this QEMU cycle that would be nice.

Next release should be tagged by end of February, so if the qemu 9.0 schedule is simliar to the 8.0 schedule this is before soft freeze and an update should be no problem.

Quoted 6 lines

So, should we pick this up for 8.2.1, or wait till next release of edk2 ?

The thing here is that for (some) downstreams, edk2 is a separate package, so if qemu relies on changed edk2, it should be there before qemu-side changes can be added. So if we pick this patchset up for 8.2.1, it might be a bit surprising for downstreams.

It's not that there changed something in the edk2 <-> qemu interfaces. This build contains a workaround for the current shim.efi clusterf*ck.

Quoted 8 lines

The tl;dr version: The build is compiled with the (very recently added) PcdUninstallMemAttrProtocol=TRUE option to workaround a bug in shim.efi.

The extra long version:

    https://www.kraxel.org/blog/2023/12/uefi-nx-linux-boot/

Picking this up for 8.2.1 makes life easier for the downstreams which do not do their own firmware builds but ship the qemu prebuilds instead.

On the other side of the scales, it's a bit unexpected for a stable-branch update to include "unreleased version of EDK binaries" (rather than, say, "same version of EDK binaries but with one specific fix"). So I can see the argument for waiting for the tagged upstream EDK release first.

thanks
-- PMM

#24 lore raw
In reply to Gerd Hoffmann

11.01.2024 19:28, Gerd Hoffmann:
..

Quoted 5 lines

Yes, Cc'ing qemu-stable was the intention, thanks for fixing it up.

I'd leave it to the stable maintainer(s). If they prefer a respin with Cc qemu-stable added to all patches I surely can do that. If being notified with this reply is good enough I'm happy too.

There's no requirement to have Cc: qemu-stable tags on the patches. This tagging is only to easily find changes which are supposed to be picked up for stable, nothing more, so it's completely optional.

It's a bit unusual though to have whole series in -stable. I picked up all 6 for now, let's see how it will work out.

Thanks,

/mjt

#25 lore raw

12.01.2024 17:27, Michael Tokarev:

Quoted 3 lines

There's no requirement to have Cc: qemu-stable tags on the patches. This tagging is only to easily find changes which are supposed to be picked up for stable, nothing more, so it's completely optional.

An additional note: without this Cc by Peter, I would've never noticed this patchset.

/mjt