mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +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:
|
||||
* @def: domain definition
|
||||
|
@ -3670,6 +3670,9 @@ virDomainDefHasManagedPR(const virDomainDef *def);
|
||||
bool
|
||||
virDomainDefHasVFIOHostdev(const virDomainDef *def);
|
||||
|
||||
bool
|
||||
virDomainDefHasMdevHostdev(const virDomainDef *def);
|
||||
|
||||
bool
|
||||
virDomainGraphicsDefHasOpenGL(const virDomainDef *def);
|
||||
|
||||
|
@ -295,6 +295,7 @@ virDomainDefGetVcpusMax;
|
||||
virDomainDefGetVcpusTopology;
|
||||
virDomainDefHasDeviceAddress;
|
||||
virDomainDefHasManagedPR;
|
||||
virDomainDefHasMdevHostdev;
|
||||
virDomainDefHasMemballoon;
|
||||
virDomainDefHasMemoryHotplug;
|
||||
virDomainDefHasUSB;
|
||||
|
Loading…
Reference in New Issue
Block a user