mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 23:55:23 +00:00
448a094717
Add <controller type='scsi' model handling for virtio transitional devices. Ex: <controller type='scsi' model='virtio-transitional'/> * "virtio-transitional" maps to qemu "virtio-scsi-pci-transitional" * "virtio-non-transitional" maps to qemu "virtio-scsi-non-transitional" The naming here doesn't match the pre-existing model=virtio-scsi. The prescence of '-scsi' there seems kind of redundant as we have type='scsi' already, so I decided to follow the pattern of other patches and use virtio-transitional etc. Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
40 lines
1.4 KiB
XML
40 lines
1.4 KiB
XML
<domain type='qemu'>
|
|
<name>QEMUGuest1</name>
|
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
|
<memory unit='KiB'>219136</memory>
|
|
<os>
|
|
<type arch='x86_64' machine='q35'>hvm</type>
|
|
</os>
|
|
<devices>
|
|
<disk type='block' device='disk' model='virtio-non-transitional'>
|
|
<driver name='qemu' type='raw'/>
|
|
<source dev='/dev/HostVG/QEMUGuest1'/>
|
|
<target dev='vda' bus='virtio'/>
|
|
</disk>
|
|
<interface type='user'>
|
|
<mac address='00:11:22:33:44:55'/>
|
|
<model type='virtio-non-transitional'/>
|
|
</interface>
|
|
<hostdev mode='subsystem' type='scsi_host' managed='no' model='virtio-non-transitional'>
|
|
<source protocol='vhost' wwpn='naa.5123456789abcde0'/>
|
|
</hostdev>
|
|
<rng model='virtio-non-transitional'>
|
|
<backend model='random'>/dev/urandom</backend>
|
|
</rng>
|
|
<filesystem type='mount' accessmode='passthrough' model='virtio-non-transitional'>
|
|
<source dir='/export/fs1'/>
|
|
<target dir='fs1'/>
|
|
</filesystem>
|
|
<input type='passthrough' bus='virtio' model='virtio-non-transitional'>
|
|
<source evdev='/dev/input/event1234'/>
|
|
</input>
|
|
<controller type='virtio-serial' model='virtio-non-transitional'/>
|
|
<controller type='scsi' model='virtio-non-transitional'/>
|
|
<controller type='usb' model='none'/>
|
|
<memballoon model='virtio-non-transitional'/>
|
|
<vsock model='virtio-non-transitional'>
|
|
<cid auto='no' address='4'/>
|
|
</vsock>
|
|
</devices>
|
|
</domain>
|