1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-06 17:17:56 +03:00

qemu: Expose qemuChrIsPlatformDevice outside from qemu_command

Then it can be used from qemu_hotplug.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Martin Kletzander 2024-11-08 12:18:46 +01:00
parent 9dc2226e68
commit 52c2e3e0a7
2 changed files with 6 additions and 1 deletions

View File

@ -9065,7 +9065,7 @@ qemuBuildChrDeviceCommandLine(virCommand *cmd,
}
static bool
bool
qemuChrIsPlatformDevice(const virDomainDef *def,
virDomainChrDef *chr)
{

View File

@ -219,6 +219,11 @@ virJSONValue *qemuBuildHotpluggableCPUProps(const virDomainVcpuDef *vcpu)
virJSONValue *qemuBuildShmemBackendMemProps(virDomainShmemDef *shmem)
ATTRIBUTE_NONNULL(1);
bool
qemuChrIsPlatformDevice(const virDomainDef *def,
virDomainChrDef *chr)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
virJSONValue *
qemuBuildShmemDevProps(virDomainDef *def,
virDomainShmemDef *shmem);