------- Comment From [email protected] 2025-03-28 15:45 EDT-------
Hi I'm seeing success in defining a virtio-mem-ccw device via `virsh edit`. 
However I'm seeing failure when I try hotplugging a device.

```
# virsh edit u25
...
# virsh start u25
...
# virsh dumpxml u2410 | grep virtio-mem -A10
<memory model='virtio-mem'>
<target>
<size unit='KiB'>9437184</size>
<block unit='KiB'>2048</block>
<requested unit='KiB'>0</requested>
<current unit='KiB'>0</current>
<address base='0x80000000'/>
</target>
<alias name='virtiomem0'/>
<address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0006'/>
</memory>
# cat ./virtio-mem.xml
<memory model='virtio-mem'>
<target>
<size unit='GiB'>9</size>
<block unit='MiB'>2</block>
<requested unit='KiB'>0</requested>
</target>
<address type='ccw'/>
</memory>
# virsh attach-device u25 $PWD/virtio-mem.xml
error: Failed to attach device from /var/lib/libvirt/images/virtio-mem.xml
error: internal error: unable to execute QEMU command 'device_add': 
PCI-attached virtio based memory devices not supported
```

Hotunplug succeeds however.

```
# virsh dumpxml u2410 | grep virtio-mem -A10 > ./live-definition.xml
# virsh detach-device u2410 $PWD/live-definition.xml
Device detached successfully
```

Additionally virtio-mem-pci does not work at all, logging the same error
message as above: `PCI-attached virtio based memory devices not
supported`.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2097886

Title:
  [25.04 FEAT] [VS2027] KVM: Enable virtio-mem support - libvirt part

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/2097886/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to