]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu_command: Generate cmd line for UEFI shim
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 5 Mar 2025 14:29:04 +0000 (15:29 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 10 Mar 2025 12:54:42 +0000 (13:54 +0100)
Trivial.

Resolves: https://issues.redhat.com/browse/RHEL-68043
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_command.c
tests/qemuxmlconfdata/launch-security-sev-direct.x86_64-latest+amdsev.args
tests/qemuxmlconfdata/launch-security-sev-direct.x86_64-latest.args

index 92a634948eb67d1250d757319a1280ef9b93963e..07cdadfd73cc6723d199f1a32d2659d1fe5fcaed 100644 (file)
@@ -6035,6 +6035,8 @@ qemuBuildBootCommandLine(virCommand *cmd,
         virCommandAddArgList(cmd, "-initrd", def->os.initrd, NULL);
     if (def->os.cmdline)
         virCommandAddArgList(cmd, "-append", def->os.cmdline, NULL);
+    if (def->os.shim)
+        virCommandAddArgList(cmd, "-shim", def->os.shim, NULL);
     if (def->os.dtb)
         virCommandAddArgList(cmd, "-dtb", def->os.dtb, NULL);
     for (i = 0; i < def->os.nacpiTables; i++) {
index 09df8a7cb60dff21edbf03de7d4eab8fb36763c8..33f820f5ad222a30d9d4b2a230eb6282d4572fd3 100644 (file)
@@ -29,6 +29,7 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
 -kernel /vmlinuz \
 -initrd /initrd \
 -append runme \
+-shim /shim \
 -device '{"driver":"piix3-usb-uhci","id":"usb","bus":"pci.0","addr":"0x1.0x2"}' \
 -blockdev '{"driver":"host_device","filename":"/dev/HostVG/QEMUGuest1","node-name":"libvirt-1-storage","read-only":false}' \
 -device '{"driver":"ide-hd","bus":"ide.0","unit":0,"drive":"libvirt-1-storage","id":"ide0-0-0","bootindex":1}' \
index 09df8a7cb60dff21edbf03de7d4eab8fb36763c8..33f820f5ad222a30d9d4b2a230eb6282d4572fd3 100644 (file)
@@ -29,6 +29,7 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
 -kernel /vmlinuz \
 -initrd /initrd \
 -append runme \
+-shim /shim \
 -device '{"driver":"piix3-usb-uhci","id":"usb","bus":"pci.0","addr":"0x1.0x2"}' \
 -blockdev '{"driver":"host_device","filename":"/dev/HostVG/QEMUGuest1","node-name":"libvirt-1-storage","read-only":false}' \
 -device '{"driver":"ide-hd","bus":"ide.0","unit":0,"drive":"libvirt-1-storage","id":"ide0-0-0","bootindex":1}' \