* [PATCH qemu-server] fix #3662: tpm: use QSD to give swtpm access to iscsi-based volumes
@ 2026-04-27 16:01 Fiona Ebner
2026-05-06 0:19 ` applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Fiona Ebner @ 2026-04-27 16:01 UTC (permalink / raw)
To: pve-devel
The iSCSIDirect and ZFS-over-iSCSI plugins do not implement
map_volume() and only provide an iscsi protocol path. Use QSD to make
such volumes accessible to swtpm.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
src/PVE/QemuServer/Drive.pm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/PVE/QemuServer/Drive.pm b/src/PVE/QemuServer/Drive.pm
index 625ed80c..b80b7dbb 100644
--- a/src/PVE/QemuServer/Drive.pm
+++ b/src/PVE/QemuServer/Drive.pm
@@ -1159,8 +1159,15 @@ sub drive_uses_qsd_fuse {
if ($drive->{interface} eq 'tpmstate') {
my ($storeid) = PVE::Storage::parse_volume_id($drive->{file}, 1);
+ return if !$storeid; # not managed by the PVE storage layer
+
+ # The iSCSIDirect and ZFS-over-iSCSI plugins do not implement map_volume() and only provide
+ # an iscsi protocol path. Use QSD to make such volumes accessible to swtpm.
+ my $path = PVE::Storage::path($storecfg, $drive->{file});
+ return 1 if $path =~ m!^iscsi://!;
+
my $format = checked_volume_format($storecfg, $drive->{file});
- return $storeid && $format ne 'raw';
+ return $format ne 'raw';
}
return;
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* applied: [PATCH qemu-server] fix #3662: tpm: use QSD to give swtpm access to iscsi-based volumes
2026-04-27 16:01 [PATCH qemu-server] fix #3662: tpm: use QSD to give swtpm access to iscsi-based volumes Fiona Ebner
@ 2026-05-06 0:19 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2026-05-06 0:19 UTC (permalink / raw)
To: pve-devel, Fiona Ebner
On Mon, 27 Apr 2026 18:01:08 +0200, Fiona Ebner wrote:
> The iSCSIDirect and ZFS-over-iSCSI plugins do not implement
> map_volume() and only provide an iscsi protocol path. Use QSD to make
> such volumes accessible to swtpm.
Applied, thanks!
[1/1] fix #3662: tpm: use QSD to give swtpm access to iscsi-based volumes
commit: 85eed9f63ce23034a7edde45f963b205be74b559
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-06 0:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-27 16:01 [PATCH qemu-server] fix #3662: tpm: use QSD to give swtpm access to iscsi-based volumes Fiona Ebner
2026-05-06 0:19 ` 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.