mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
conf: only allow virtio bus for input passthrough
Other buses are not supported. Signed-off-by: Ján Tomko <jtomko@redhat.com> https://bugzilla.redhat.com/show_bug.cgi?id=1724928 Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
0627150a56
commit
33bc3ffe54
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user