[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 00/21] hw/uefi: add uefi variable service
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH v2 00/21] hw/uefi: add uefi variable service |
Date: |
Wed, 8 Jan 2025 15:02:14 +0100 |
Hi,
> > The design idea is to reuse the request serialization protocol edk2 uses
>
> I suppose this is a stable protocol. (some parts are set by the UEFI
> spec probably)
Partly yes, partly this is edk2-internal stuff. In theory there is some
freedom to change the internal parts, in practice I have not seen this
changing in incompatible ways to far.
> There doesn't seem to be a defined way to query either side version or
> capability, I suppose this could be added later assuming an initial
> behaviour/magic etc.
There is a 'magic' device register, so should the need arise there is
the option to define a new magic cookie for incompatible changes.
> > A edk2 test branch can be found here (build with "-D QEMU_VARS=TRUE").
> > https://github.com/kraxel/edk2/commits/devel/secure-boot-external-vars
>
> ok, perhaps it would be nice to have some basic unit tests in qemu
> too. Almost none of this new code is exercised by the qemu tests yet.
I have some unit tests, they are using edk2 though. So having unit
tests right from the start is somewhat difficult. I don't feel like
re-implementing the guest side of the serialization protocol for the
qemu unit tests.
Once the edk2 changes have landed in a edk2 stable tag and qemu bundled
firmware has been updated it should be relatively easy to add those
tests to qemu. With updated edk2 firmware we can also add some
end-to-end testing such as booting a fedora cloud image with secure boot
turned on.
take care,
Gerd
- [PATCH v2 16/21] hw/uefi: add to meson, (continued)
- [PATCH v2 16/21] hw/uefi: add to meson, Gerd Hoffmann, 2025/01/07
- [PATCH v2 18/21] hw/uefi: add uefi-vars-isa device, Gerd Hoffmann, 2025/01/07
- [PATCH v2 20/21] docs: add uefi variable service documentation, Gerd Hoffmann, 2025/01/07
- [PATCH v2 21/21] hw/uefi: add MAINTAINERS entry, Gerd Hoffmann, 2025/01/07
- [PATCH v2 19/21] hw/arm: add uefi variable support to virt machine type, Gerd Hoffmann, 2025/01/07
- Re: [PATCH v2 00/21] hw/uefi: add uefi variable service, Daniel P . Berrangé, 2025/01/07
- Re: [PATCH v2 00/21] hw/uefi: add uefi variable service, Marc-André Lureau, 2025/01/08