From 52c2e3e0a706ef26da906993352ef3b9fd30d073 Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Fri, 8 Nov 2024 12:18:46 +0100 Subject: [PATCH] qemu: Expose qemuChrIsPlatformDevice outside from qemu_command Then it can be used from qemu_hotplug. Signed-off-by: Martin Kletzander Reviewed-by: Peter Krempa --- src/qemu/qemu_command.c | 2 +- src/qemu/qemu_command.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index f67176fbfd..696f891b47 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -9065,7 +9065,7 @@ qemuBuildChrDeviceCommandLine(virCommand *cmd, } -static bool +bool qemuChrIsPlatformDevice(const virDomainDef *def, virDomainChrDef *chr) { diff --git a/src/qemu/qemu_command.h b/src/qemu/qemu_command.h index befc3f4ef9..fb4551a7d0 100644 --- a/src/qemu/qemu_command.h +++ b/src/qemu/qemu_command.h @@ -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);