mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
conf: default to virtio bus for input passthrough
Other buses are not supported. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
33bc3ffe54
commit
59bc34a1d1
@ -13677,7 +13677,8 @@ virDomainInputDefParseXML(virDomainXMLOptionPtr xmlopt,
|
|||||||
def->type == VIR_DOMAIN_INPUT_TYPE_KBD) &&
|
def->type == VIR_DOMAIN_INPUT_TYPE_KBD) &&
|
||||||
(ARCH_IS_X86(dom->os.arch) || dom->os.arch == VIR_ARCH_NONE)) {
|
(ARCH_IS_X86(dom->os.arch) || dom->os.arch == VIR_ARCH_NONE)) {
|
||||||
def->bus = VIR_DOMAIN_INPUT_BUS_PS2;
|
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;
|
def->bus = VIR_DOMAIN_INPUT_BUS_VIRTIO;
|
||||||
} else {
|
} else {
|
||||||
def->bus = VIR_DOMAIN_INPUT_BUS_USB;
|
def->bus = VIR_DOMAIN_INPUT_BUS_USB;
|
||||||
|
Loading…
Reference in New Issue
Block a user