Skip to content
Permalink
Browse files

qemu: no USB by default on RISC-V machines

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
  • Loading branch information...
lkundrak authored and andreabolognani committed Jun 14, 2018
1 parent eb3f00a commit 981545f26bdfb1297c95144c1cb58a1c9c5de81a
Showing with 5 additions and 3 deletions.
  1. +5 −2 src/qemu/qemu_domain.c
  2. +0 −1 tests/qemuxml2xmloutdata/riscv64-virt.xml
@@ -3280,6 +3280,11 @@ qemuDomainDefAddDefaultDevices(virDomainDefPtr def,
addPCIRoot = true;
break;

case VIR_ARCH_RISCV32:
case VIR_ARCH_RISCV64:
addDefaultUSB = false;
break;

case VIR_ARCH_S390:
case VIR_ARCH_S390X:
addDefaultUSB = false;
@@ -3306,8 +3311,6 @@ qemuDomainDefAddDefaultDevices(virDomainDefPtr def,
case VIR_ARCH_OR32:
case VIR_ARCH_PARISC:
case VIR_ARCH_PARISC64:
case VIR_ARCH_RISCV32:
case VIR_ARCH_RISCV64:
case VIR_ARCH_PPCLE:
case VIR_ARCH_UNICORE32:
case VIR_ARCH_XTENSA:
@@ -22,7 +22,6 @@
<target dev='vda' bus='virtio'/>
<address type='virtio-mmio'/>
</disk>
<controller type='usb' index='0'/>
<serial type='pty'>
<target port='0'/>
</serial>

0 comments on commit 981545f

Please sign in to comment.
You can’t perform that action at this time.