From: Ján Tomko Date: Tue, 25 Feb 2020 14:46:31 +0000 (+0100) Subject: conf: default to virtio bus for input passthrough X-Git-Tag: v6.2.0-rc1~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59bc34a1d1dc317d84da81a19f4992856ac0fa8c;p=thirdparty%2Flibvirt.git conf: default to virtio bus for input passthrough Other buses are not supported. Signed-off-by: Ján Tomko Reviewed-by: Daniel Henrique Barboza --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index fd0578504c..d8471acd2d 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -13677,7 +13677,8 @@ virDomainInputDefParseXML(virDomainXMLOptionPtr xmlopt, def->type == VIR_DOMAIN_INPUT_TYPE_KBD) && (ARCH_IS_X86(dom->os.arch) || dom->os.arch == VIR_ARCH_NONE)) { def->bus = VIR_DOMAIN_INPUT_BUS_PS2; - } else if (ARCH_IS_S390(dom->os.arch)) { + } else if (ARCH_IS_S390(dom->os.arch) || + def->type == VIR_DOMAIN_INPUT_TYPE_PASSTHROUGH) { def->bus = VIR_DOMAIN_INPUT_BUS_VIRTIO; } else { def->bus = VIR_DOMAIN_INPUT_BUS_USB;