From nobody Wed Nov 19 01:39:42 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1614187008; cv=none; d=zohomail.com; s=zohoarc; b=n8I/RVEsPl/vLR5/+34scUGhRW9hBd9ojoU3djRNbHoGo/xUfQ/mluYEFb6oy5rUeoV9ATYt6yWrpHezIlevb9pJrsi+b2wEo+xlXZlW4oTdOdwEa5tIHnkx5r6KgYyN2VeQFTEo9SV0yjg0EaCcwCzb+H1lhTd9OjaL+FfwCoM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614187008; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=HMSf7VHZzN3ORhRRQHVi3oJyjkiz8LlOOO8DQlsKxl4=; b=nKJjUqEYfuyBijH9j8gQl6NOT8xXA+UQQq+xD4fumq0QajyifxDG26JQby2Lxm9H1eYTDTggi0yrep3io9brdJBujEy4AWJZXsmw9CNUzr5zi2yHpEzNo+dBRvJBDKkMrTBb5x/xyx7c6kEmLDADHoxfQgIE+2I8bCxXfgpL5Ug= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1614187008683806.5582001902475; Wed, 24 Feb 2021 09:16:48 -0800 (PST) Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-105-dQj9P50bNmK1QLEqln1itw-1; Wed, 24 Feb 2021 12:16:45 -0500 Received: by mail-wm1-f71.google.com with SMTP id b62so834538wmc.5 for ; Wed, 24 Feb 2021 09:16:45 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id o13sm5627209wro.15.2021.02.24.09.16.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 09:16:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614187007; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HMSf7VHZzN3ORhRRQHVi3oJyjkiz8LlOOO8DQlsKxl4=; b=KbiS1PFKePN0sxjxAGSiEsI3JQ/jUVmZjQQGkOKELXo1l5SHJk2Osi/2apPYU9qn2qhBZ1 ak13gc6gLovAeKcW9vfW2orc0HkTkX476GFa3CAqQeKC44ZY4w8JpEngBzFFcMbgAtFUD4 vciYXheEiQSLjf7kk3bYrp3vTYS0WyA= X-MC-Unique: dQj9P50bNmK1QLEqln1itw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HMSf7VHZzN3ORhRRQHVi3oJyjkiz8LlOOO8DQlsKxl4=; b=VUtDnDMcpFYtNEoypMd/A+Jtgt3VWeOIorOGyUUMn2yzy002Y8kiEUKgEACjndztSW 3mec6u/IjHf+gLfYxJltx5Bt2u1UP1N4onlUZph29kBvymI0WLh2Hg+I3RbLIbfWV4In LpIrbczGo4OaT00wwYD0pp7XcTP4Dl1dEgXAuhT8uX4jJSthvaR1vcvEHwt18fEKNDwR uuGw4zksoldsTgzL5owNVqV/r55xBMlqHaJhypf6qVySxTg2XPGdm5cLPpHRoMHbYwBm taSggWj1koKytmtFSgEqTuVC9rUR5f+/pQNw/EFVzU5SzHZQ3mcn2Pk4sbZxL+g9zTWv VOsw== X-Gm-Message-State: AOAM530PxL3LJeCFOW4xyMoHe6OKqg1YWwvlhYnCqWmh2bX5cw9DCFpw y2F+TBFqbElg6FRiAFVHxtho79N7LDxHz1n4axAn1GY3Ej/A7/ZTVsxnAi+7ze53+7ELDD1UZF7 1rn7QbnVGnNq93Q== X-Received: by 2002:a7b:c417:: with SMTP id k23mr4728182wmi.132.1614187004559; Wed, 24 Feb 2021 09:16:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyS2ICE/w7+ZEat06UHPH/k/rw3E8Hy4qlOg6FuVRMEKO3NGt5743Umk90OpAZSLKRxzeFdLA== X-Received: by 2002:a7b:c417:: with SMTP id k23mr4728178wmi.132.1614187004454; Wed, 24 Feb 2021 09:16:44 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Michael Roth , Markus Armbruster , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH] qapi: Remove QMP events and commands from user-mode builds Date: Wed, 24 Feb 2021 18:16:42 +0100 Message-Id: <20210224171642.3242293-1-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) We removed the QMP loop in user-mode builds in commit 1935e0e4e09 ("qapi/meson: Remove QMP from user-mode emulation"), now commands and events code is unreachable. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Paolo Bonzini --- qapi/meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/qapi/meson.build b/qapi/meson.build index 0652569bc43..fcb15a78f15 100644 --- a/qapi/meson.build +++ b/qapi/meson.build @@ -102,11 +102,15 @@ 'qapi-types-@0@.h'.format(module), 'qapi-visit-@0@.c'.format(module), 'qapi-visit-@0@.h'.format(module), - 'qapi-events-@0@.c'.format(module), - 'qapi-events-@0@.h'.format(module), - 'qapi-commands-@0@.c'.format(module), - 'qapi-commands-@0@.h'.format(module), ] + if have_system or have_tools + qapi_module_outputs +=3D [ + 'qapi-events-@0@.c'.format(module), + 'qapi-events-@0@.h'.format(module), + 'qapi-commands-@0@.c'.format(module), + 'qapi-commands-@0@.h'.format(module), + ] + endif if module.endswith('-target') qapi_specific_outputs +=3D qapi_module_outputs else --=20 2.26.2