mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 12:51:12 +00:00
9610eaa48d
None of the existing models is suitable for use with RISC-V virt guests, and we don't want information about the serial console to be missing from the XML. The name is based on comments in qemu/hw/riscv/virt.c: RISC-V machine with 16550a UART and VirtIO MMIO and in qemu/hw/char/serial.c: QEMU 16550A UART emulation along with the output of dmesg in the guest: Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled 10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 13, base_baud= 230400) is a 16550A Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
38 lines
1.1 KiB
XML
38 lines
1.1 KiB
XML
<domain type='qemu'>
|
|
<name>riscv64</name>
|
|
<uuid>fd65fc03-8838-4c4d-9d8d-395802488790</uuid>
|
|
<memory unit='KiB'>2097152</memory>
|
|
<currentMemory unit='KiB'>2097152</currentMemory>
|
|
<vcpu placement='static'>1</vcpu>
|
|
<os>
|
|
<type arch='riscv64' machine='virt'>hvm</type>
|
|
<kernel>/var/lib/libvirt/images/bbl</kernel>
|
|
<cmdline>console=ttyS0 ro root=/dev/vda</cmdline>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-riscv64</emulator>
|
|
<disk type='file' device='disk'>
|
|
<driver name='qemu' type='raw'/>
|
|
<source file='/var/lib/libvirt/images/stage4-disk.img'/>
|
|
<target dev='vda' bus='virtio'/>
|
|
<address type='virtio-mmio'/>
|
|
</disk>
|
|
<serial type='pty'>
|
|
<target type='system-serial' port='0'>
|
|
<model name='16550a'/>
|
|
</target>
|
|
</serial>
|
|
<console type='pty'>
|
|
<target type='serial' port='0'/>
|
|
</console>
|
|
<memballoon model='virtio'>
|
|
<address type='virtio-mmio'/>
|
|
</memballoon>
|
|
</devices>
|
|
</domain>
|