| 04023743 | 11-Aug-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: open json file in binary mode
Fixes file length discrepancies due to line ending conversions on windows hosts.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3058 Reviewed-by: Phi
hw/uefi: open json file in binary mode
Fixes file length discrepancies due to line ending conversions on windows hosts.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3058 Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250811130110.820958-4-kraxel@redhat.com>
show more ...
|
| fc8ee8fe | 11-Aug-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: check access for first variable
When listing variables (via get-next-variable-name) only the names of variables which can be accessed will be returned. That check was missing for the first
hw/uefi: check access for first variable
When listing variables (via get-next-variable-name) only the names of variables which can be accessed will be returned. That check was missing for the first variable though. Add it.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250811130110.820958-3-kraxel@redhat.com>
show more ...
|
| 88e5a28d | 11-Aug-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: return success for notifications
Set status to SUCCESS for ready-to-boot and exit-boot-services notification calls.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: G
hw/uefi: return success for notifications
Set status to SUCCESS for ready-to-boot and exit-boot-services notification calls.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250811130110.820958-2-kraxel@redhat.com>
show more ...
|
| e1092f76 | 19-Mar-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi-vars-sysbus: allow for loongarch virt
Allow the device being added to loongarch virt VMs.
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.c
hw/uefi-vars-sysbus: allow for loongarch virt
Allow the device being added to loongarch virt VMs.
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250319141159.1461621-6-kraxel@redhat.com>
show more ...
|
| 5807508f | 19-Mar-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi-vars-sysbus: allow for riscv virt
Allow the device being added to riscv virt VMs.
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Daniel P. Berrangé <berrange@
hw/uefi-vars-sysbus: allow for riscv virt
Allow the device being added to riscv virt VMs.
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250319141159.1461621-5-kraxel@redhat.com>
show more ...
|
| 761d0b5f | 19-Mar-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: fix error handling in uefi_vars_json_load
Catch lseek errors. Return on read errors.
Fixes: CID 1593154 Fixes: CID 1593157 Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-o
hw/uefi: fix error handling in uefi_vars_json_load
Catch lseek errors. Return on read errors.
Fixes: CID 1593154 Fixes: CID 1593157 Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250319141159.1461621-4-kraxel@redhat.com>
show more ...
|
| ae24cf13 | 19-Mar-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: fix error handling in uefi_vars_json_save
Catch lseek errors. Return on errors. Use autoptr for the GString to simplify cleanup.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Si
hw/uefi: fix error handling in uefi_vars_json_save
Catch lseek errors. Return on errors. Use autoptr for the GString to simplify cleanup.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250319141159.1461621-3-kraxel@redhat.com>
show more ...
|
| 69392de9 | 25-Feb-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi-vars-sysbus: add x64 variant
The x86 variant of the device is mapped on the fixed address 0xfef10000 and uses etc/hardware-info instead of FDT to pass the mapping location to the edk2 firmwa
hw/uefi-vars-sysbus: add x64 variant
The x86 variant of the device is mapped on the fixed address 0xfef10000 and uses etc/hardware-info instead of FDT to pass the mapping location to the edk2 firmware. The latter allows to move the device to a different location should that turn out to be necessary in the future.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-21-kraxel@redhat.com>
show more ...
|
| 03223b66 | 25-Feb-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi-vars-sysbus: qemu platform bus support
Add and register function to create an device tree entry when the device is added to the qemu platform bus.
Signed-off-by: Gerd Hoffmann <kraxel@redha
hw/uefi-vars-sysbus: qemu platform bus support
Add and register function to create an device tree entry when the device is added to the qemu platform bus.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-20-kraxel@redhat.com>
show more ...
|
| e8371973 | 25-Feb-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: add UEFI_VARS to Kconfig
Add UEFI_VARS config option, enable by default for x86_64 and aarch64.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-17-krax
hw/uefi: add UEFI_VARS to Kconfig
Add UEFI_VARS config option, enable by default for x86_64 and aarch64.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-17-kraxel@redhat.com>
show more ...
|
| 12058948 | 25-Feb-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: add var-service-json.c + qapi for NV vars.
Define qapi schema for the uefi variable store state.
Use it and the generated visitor helper functions to store persistent (EFI_VARIABLE_NON_VOL
hw/uefi: add var-service-json.c + qapi for NV vars.
Define qapi schema for the uefi variable store state.
Use it and the generated visitor helper functions to store persistent (EFI_VARIABLE_NON_VOLATILE) variables in JSON format on disk.
Acked-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-15-kraxel@redhat.com> [ incremental fix squashed in ] Message-ID: <pji24p6oag7cn2rovus7rquo7q2c6tokuquobfro2sqorky7vu@tk7cxud6jw7f>
show more ...
|
| f903e883 | 25-Feb-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: add var-service-siglist.c
Functions to serialize and de-serialize EFI signature databases. This is needed to merge signature databases (happens in practice when appending dbx updates) and
hw/uefi: add var-service-siglist.c
Functions to serialize and de-serialize EFI signature databases. This is needed to merge signature databases (happens in practice when appending dbx updates) and also to extract the certificates for pkcs7 signature verification.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-14-kraxel@redhat.com>
show more ...
|
| 4ec89b00 | 25-Feb-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: add var-service-pkcs7-stub.c
pkcs7 stub which is used in case gnutls is not available.
It throws EFI_WRITE_PROTECTED errors unconditionally, so all authenticated variables are readonly for
hw/uefi: add var-service-pkcs7-stub.c
pkcs7 stub which is used in case gnutls is not available.
It throws EFI_WRITE_PROTECTED errors unconditionally, so all authenticated variables are readonly for the guest.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-13-kraxel@redhat.com>
show more ...
|
| 3e33af2c | 25-Feb-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: add var-service-pkcs7.c
This implements pkcs7 signature verification using gnutls. Needed to check authenticated variable updates.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-
hw/uefi: add var-service-pkcs7.c
This implements pkcs7 signature verification using gnutls. Needed to check authenticated variable updates.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-12-kraxel@redhat.com>
show more ...
|
| 90ca4e03 | 25-Feb-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: add var-service-core.c
This is the core code for guest <-> host communication. This accepts request messages from the guest, dispatches them to the service called, and sends back the respo
hw/uefi: add var-service-core.c
This is the core code for guest <-> host communication. This accepts request messages from the guest, dispatches them to the service called, and sends back the response message.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-11-kraxel@redhat.com>
show more ...
|
| 034cb968 | 25-Feb-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: add var-service-policy.c
Implement variable policies (Edk2VariablePolicyProtocol).
This EFI protocol allows to define restrictions for variables. It also allows to lock down variables (dis
hw/uefi: add var-service-policy.c
Implement variable policies (Edk2VariablePolicyProtocol).
This EFI protocol allows to define restrictions for variables. It also allows to lock down variables (disallow write access).
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-10-kraxel@redhat.com>
show more ...
|
| f1488fac | 25-Feb-2025 |
Gerd Hoffmann <kraxel@redhat.com> |
hw/uefi: add var-service-auth.c
This implements authenticated variable handling (see AuthVariableLib in edk2).
The by far most common use case for auth variables is secure boot. The secure boot ce
hw/uefi: add var-service-auth.c
This implements authenticated variable handling (see AuthVariableLib in edk2).
The by far most common use case for auth variables is secure boot. The secure boot certificate databases ('PK', 'KEK', 'db' and 'dbx') are authenticated variables, with update rules being specified in the UEFI specification.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-9-kraxel@redhat.com>
show more ...
|