From nobody Thu Nov 21 17:12:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1731315218470618.0417234063984; Mon, 11 Nov 2024 00:53:38 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 8C90817D0; Mon, 11 Nov 2024 03:53:37 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 2E696173C; Mon, 11 Nov 2024 03:53:18 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 41099172B; Mon, 11 Nov 2024 03:53:15 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id BE0811727 for ; Mon, 11 Nov 2024 03:53:14 -0500 (EST) Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-454-jVUAayEwNWSVQkxp4dnAlQ-1; Mon, 11 Nov 2024 03:53:13 -0500 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4317391101aso30798575e9.2 for ; Mon, 11 Nov 2024 00:53:12 -0800 (PST) Received: from wheatley.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432b05e2a31sm166729845e9.36.2024.11.11.00.53.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 00:53:11 -0800 (PST) Received: from wheatley.brq.redhat.com (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id D13CB3A63246 for ; Mon, 11 Nov 2024 09:53:10 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731315194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=b1072okiTMvLe56jRukVeqC1OVgbn+2tUaBMTZUAZmw=; b=LqT9eTK8FXoOCRCdWzF2GNraQYdyzY11tTEpvGtLozLZfisyVpEAUdJgkkgR+zcOxpRfaN lN+pyi6VOjiMEPfdzyJdLjcBWsoIQ6a7NJGMiYh2RJlNqNUtQUl/pcQt46AKsSu1ASF7n3 Zn30YVgJ4BgP8+aXF1ojRjiwFExU/ok= X-MC-Unique: jVUAayEwNWSVQkxp4dnAlQ-1 X-Mimecast-MFC-AGG-ID: jVUAayEwNWSVQkxp4dnAlQ X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731315192; x=1731919992; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b1072okiTMvLe56jRukVeqC1OVgbn+2tUaBMTZUAZmw=; b=NXEGVG1iTHbwBaNH0fgSP0Kq71HvkOu8AP4EDYekXVMamIx8u1RCk+5I4LmrxM95BG Rm0ACg9r6LyBd2N7sOg1RTAOmlJ9vMmSV2W1gF7xcWIjsSEqEfdjK9bI1/i+9x1qttGR rKPEFubT+oeJMra9H/xYW55oVrrW9emRSDJoAb3asmRpu7wz0WfFLPEDNIZBc0qk8Bt8 aeW4wChFbbLXBBtQ5RuaFwvuG8ssj3sCBSz44a14CoVxAeyZRqgjojha6+Yj96K6rRcM hbLFWWNhdYNZJcJ26BpFSpoVk9p5Mquc736PHRx7cnfZgLtoi40Il1u0eRcDhTn3BpME uFJw== X-Gm-Message-State: AOJu0Yz7fwvFBZnTpLrcpOH+fattN9guM8aFTwAoI2b1ekWNnN080O6m W7jYmNYT375OI5UfX7ZbgY0Fb6w2T6X9luM2CCC0AyzFGWMt+eR5mRovs+maJh140oaO5gW/w7n WFALxO+NyfyRMSVkeoN3ZKRYkiFZ9ANtORh+EY9YIyVGUIKoBKw3FgXPbFhYWiUaIaY1xLTVgCM SRKZ695XYqPrxH5WSpdnzMWWC60zW9SfOFkKhvOgk= X-Received: by 2002:a05:600c:5107:b0:426:64a2:5362 with SMTP id 5b1f17b1804b1-432b7503dc6mr100598725e9.8.1731315191825; Mon, 11 Nov 2024 00:53:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGC8OyIsNSQBv8kb5pg6g6djaciRjcbdCTPlGCSEgsmej+o80lqp/TWx3bH/E+F9LHPnjFtZA== X-Received: by 2002:a05:600c:5107:b0:426:64a2:5362 with SMTP id 5b1f17b1804b1-432b7503dc6mr100598595e9.8.1731315191464; Mon, 11 Nov 2024 00:53:11 -0800 (PST) From: Martin Kletzander To: devel@lists.libvirt.org Subject: [PATCH 1/3] qemu: Expose qemuChrIsPlatformDevice outside from qemu_command Date: Mon, 11 Nov 2024 09:53:07 +0100 Message-ID: X-Mailer: git-send-email 2.47.0 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: sKQvlaiqHMaKXoutxAEnvnSQoWQRm0DReqM13rC_zrM_1731315192 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: FQY6AHWQET5KAW6DLZL25OQ22MAJXKTB X-Message-ID-Hash: FQY6AHWQET5KAW6DLZL25OQ22MAJXKTB X-MailFrom: mkletzan@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1731315219705116600 Content-Type: text/plain; charset="utf-8"; x-default="true" Then it can be used from qemu_hotplug. Signed-off-by: Martin Kletzander --- 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 a5ff7695c375..0dbaa155fc28 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -9041,7 +9041,7 @@ qemuBuildChrDeviceCommandLine(virCommand *cmd, } =20 =20 -static bool +bool qemuChrIsPlatformDevice(const virDomainDef *def, virDomainChrDef *chr) { diff --git a/src/qemu/qemu_command.h b/src/qemu/qemu_command.h index 309e566f6cbe..71ce031f1ac0 100644 --- a/src/qemu/qemu_command.h +++ b/src/qemu/qemu_command.h @@ -217,6 +217,11 @@ virJSONValue *qemuBuildHotpluggableCPUProps(const virD= omainVcpuDef *vcpu) virJSONValue *qemuBuildShmemBackendMemProps(virDomainShmemDef *shmem) ATTRIBUTE_NONNULL(1); =20 +bool +qemuChrIsPlatformDevice(const virDomainDef *def, + virDomainChrDef *chr) + ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2); + virJSONValue * qemuBuildShmemDevProps(virDomainDef *def, virDomainShmemDef *shmem); --=20 2.47.0