[pve-devel] [PATCH qemu-server v2 1/3] Fix #2041: add spice webdav / folder sharing
Andreas Steinel
A.Steinel at gmail.com
Tue Jan 8 23:57:59 CET 2019
Adding the device and serial port for the service spice-webdavd on Linux and
Windows.
Signed-off-by: Andreas Steinel <A.Steinel at gmail.com>
---
PVE/QemuServer.pm | 5 +++++
PVE/QemuServer/PCI.pm | 1 +
2 files changed, 6 insertions(+)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 1ccdccf..225f0c0 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3767,6 +3767,11 @@ sub config_to_command {
push @$devices, '-device', "virtio-serial,id=spice$pciaddr";
push @$devices, '-chardev', "spicevmc,id=vdagent,name=vdagent";
push @$devices, '-device', "virtserialport,chardev=vdagent,name=com.redhat.spice.0";
+
+ $pciaddr = print_pci_addr("spicewebdav", $bridges, $arch, $machine_type);
+ push @$devices, '-device', "virtio-serial,id=webdav$pciaddr";
+ push @$devices, '-chardev', "spiceport,id=webdav,name=org.spice-space.webdav.0";
+ push @$devices, '-device', "virtserialport,chardev=webdav,name=org.spice-space.webdav.0";
}
# enable balloon by default, unless explicitly disabled
diff --git a/PVE/QemuServer/PCI.pm b/PVE/QemuServer/PCI.pm
index f22f5ad..45c1c90 100644
--- a/PVE/QemuServer/PCI.pm
+++ b/PVE/QemuServer/PCI.pm
@@ -68,6 +68,7 @@ my $devices = {
'net30' => { bus => 1, addr => 25 },
'net31' => { bus => 1, addr => 26 },
'xhci' => { bus => 1, addr => 27 },
+ 'spicewebdav' => { bus => 1, addr => 28 },
'virtio6' => { bus => 2, addr => 1 },
'virtio7' => { bus => 2, addr => 2 },
'virtio8' => { bus => 2, addr => 3 },
--
2.11.0
More information about the pve-devel
mailing list