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, qemuChrIsPlatformDevice(const virDomainDef *def,
virDomainChrDef *chr) virDomainChrDef *chr)
{ {

View File

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