diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index bfb95dd2ce5ada703e21678ab627ddf1dec50b05..fd0578504c886d253fef2d964568c6f7541c368a 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -6620,6 +6620,12 @@ virDomainInputDefValidate(const virDomainInputDef *input) break; case VIR_DOMAIN_INPUT_TYPE_PASSTHROUGH: + if (input->bus != VIR_DOMAIN_INPUT_BUS_VIRTIO) { + virReportError(VIR_ERR_XML_ERROR, "%s", + _("only bus 'virtio' is supported for 'passthrough' " + "input devices")); + return -1; + } break; case VIR_DOMAIN_INPUT_TYPE_LAST: