From: Lukas Sichert <l.sichert@proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Lukas Sichert <l.sichert@proxmox.com>
Subject: [PATCH qemu-server] blockdev: recognize pflash devices on virt machines
Date: Mon, 20 Jul 2026 14:23:32 +0200 [thread overview]
Message-ID: <20260720122334.320518-1-l.sichert@proxmox.com> (raw)
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
reply other threads:[~2026-07-20 12:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260720122334.320518-1-l.sichert@proxmox.com \
--to=l.sichert@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox