mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 23:37:42 +00:00
virDomainControllerDef: Change type of ioeventfd to virTristateSwitch
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
c02c301130
commit
8395c909a6
@ -9619,11 +9619,14 @@ virDomainControllerDefParseXML(virDomainXMLOption *xmlopt,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ioeventfd &&
|
if (ioeventfd) {
|
||||||
(def->ioeventfd = virTristateSwitchTypeFromString(ioeventfd)) < 0) {
|
int value;
|
||||||
virReportError(VIR_ERR_XML_ERROR,
|
if ((value = virTristateSwitchTypeFromString(ioeventfd)) < 0) {
|
||||||
_("Malformed 'ioeventfd' value %s"), ioeventfd);
|
virReportError(VIR_ERR_XML_ERROR,
|
||||||
return NULL;
|
_("Malformed 'ioeventfd' value %s"), ioeventfd);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
def->ioeventfd = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iothread) {
|
if (iothread) {
|
||||||
|
@ -763,7 +763,7 @@ struct _virDomainControllerDef {
|
|||||||
unsigned int queues;
|
unsigned int queues;
|
||||||
unsigned int cmd_per_lun;
|
unsigned int cmd_per_lun;
|
||||||
unsigned int max_sectors;
|
unsigned int max_sectors;
|
||||||
int ioeventfd; /* enum virTristateSwitch */
|
virTristateSwitch ioeventfd;
|
||||||
unsigned int iothread; /* unused = 0, > 0 specific thread # */
|
unsigned int iothread; /* unused = 0, > 0 specific thread # */
|
||||||
union {
|
union {
|
||||||
virDomainVirtioSerialOpts vioserial;
|
virDomainVirtioSerialOpts vioserial;
|
||||||
|
Loading…
Reference in New Issue
Block a user