mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
conf: Introduce virDomainDefHasMdevHostdev
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
82a2486236
commit
0dfc7c6059
@ -31494,6 +31494,20 @@ virDomainDefHasVFIOHostdev(const virDomainDef *def)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
virDomainDefHasMdevHostdev(const virDomainDef *def)
|
||||||
|
{
|
||||||
|
size_t i;
|
||||||
|
|
||||||
|
for (i = 0; i < def->nhostdevs; i++) {
|
||||||
|
if (virHostdevIsMdevDevice(def->hostdevs[i]))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virDomainGraphicsDefHasOpenGL:
|
* virDomainGraphicsDefHasOpenGL:
|
||||||
* @def: domain definition
|
* @def: domain definition
|
||||||
|
@ -3670,6 +3670,9 @@ virDomainDefHasManagedPR(const virDomainDef *def);
|
|||||||
bool
|
bool
|
||||||
virDomainDefHasVFIOHostdev(const virDomainDef *def);
|
virDomainDefHasVFIOHostdev(const virDomainDef *def);
|
||||||
|
|
||||||
|
bool
|
||||||
|
virDomainDefHasMdevHostdev(const virDomainDef *def);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
virDomainGraphicsDefHasOpenGL(const virDomainDef *def);
|
virDomainGraphicsDefHasOpenGL(const virDomainDef *def);
|
||||||
|
|
||||||
|
@ -295,6 +295,7 @@ virDomainDefGetVcpusMax;
|
|||||||
virDomainDefGetVcpusTopology;
|
virDomainDefGetVcpusTopology;
|
||||||
virDomainDefHasDeviceAddress;
|
virDomainDefHasDeviceAddress;
|
||||||
virDomainDefHasManagedPR;
|
virDomainDefHasManagedPR;
|
||||||
|
virDomainDefHasMdevHostdev;
|
||||||
virDomainDefHasMemballoon;
|
virDomainDefHasMemballoon;
|
||||||
virDomainDefHasMemoryHotplug;
|
virDomainDefHasMemoryHotplug;
|
||||||
virDomainDefHasUSB;
|
virDomainDefHasUSB;
|
||||||
|
Loading…
Reference in New Issue
Block a user