all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH qemu-server] blockdev: recognize pflash devices on virt machines
@ 2026-07-20 12:23 Lukas Sichert
  2026-08-03 20:45 ` applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Lukas Sichert @ 2026-07-20 12:23 UTC (permalink / raw)
  To: pve-devel; +Cc: Lukas Sichert

On ARM, QEMU's virt machine exposes EFI firmware pflash devices as
'/machine/virt.flash0' and '/machine/virt.flash1'. The query-block
mapping only recognized the x86-style '/machine/system.flash*' paths, so
it failed to translate '/machine/virt.flash1' to 'efidisk0'. This made
live cloning fail with 'no block node found for drive 'drive-efidisk0'.'

Accept both system.flash* and virt.flash* paths for these devices.

Signed-off-by: Lukas Sichert <l.sichert@proxmox.com>
---
 src/PVE/QemuServer/Blockdev.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PVE/QemuServer/Blockdev.pm b/src/PVE/QemuServer/Blockdev.pm
index 101c747c..08a5acf8 100644
--- a/src/PVE/QemuServer/Blockdev.pm
+++ b/src/PVE/QemuServer/Blockdev.pm
@@ -72,9 +72,9 @@ sub qdev_id_to_drive_id {
 
     if ($qdev_id =~ m|^/machine/peripheral/(virtio(\d+))/virtio-backend$|) {
         return $1;
-    } elsif ($qdev_id =~ m|^/machine/system\.flash0$|) {
+    } elsif ($qdev_id =~ m{^/machine/(?:system|virt)\.flash0$}) {
         return 'pflash0';
-    } elsif ($qdev_id =~ m|^/machine/system\.flash1$|) {
+    } elsif ($qdev_id =~ m{^/machine/(?:system|virt)\.flash1$}) {
         return 'efidisk0';
     }
 
-- 
2.47.3





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-03 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-20 12:23 [PATCH qemu-server] blockdev: recognize pflash devices on virt machines Lukas Sichert
2026-08-03 20:45 ` applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal