From nobody Mon Feb 9 20:32:45 2026 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=1635433532; cv=none; d=zohomail.com; s=zohoarc; b=GgL4qdnBHCJMnSyXYuhenyA2b6Q9G5d81KlHVtS4OsBaAl+P7ojlNC/GyjWBpTyE1+kGsueaWWmTEvag9gwGrbaE2e1Uj1yx1lD24f4xiPQFR7dtZJqtT5OKwey3MaZlu5AYVx7/pzebIbhQ2jyuuuYbGMAkVI1Kg/De68hdhIY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635433532; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=64kbEvhgsvTtmcrJ2XOWOXD5KZT50cBaqVp/eA5mjE8=; b=ThRQY9TdRGgbYlATaPtyyLVxNY88d91G0K4FF97qh9ot2CAF+vE5smucPL5nWJbYJlhX3N7fuXsZWobfswvyyKmW9f9ow3pLjTSymEWxsheHsrw+WUXKHhYItRgYfBih+sKFjh0Eh5OgUTsDB+RKquloYynlXactyC4zp3oyJ7Y= 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) 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 1635433532920771.737777479064; Thu, 28 Oct 2021 08:05:32 -0700 (PDT) Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-551-aQENOABbPjmP8Wjlzk4QPQ-1; Thu, 28 Oct 2021 11:05:30 -0400 Received: by mail-wr1-f71.google.com with SMTP id j12-20020adf910c000000b0015e4260febdso2220642wrj.20 for ; Thu, 28 Oct 2021 08:05:30 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (62.red-83-57-168.dynamicip.rima-tde.net. [83.57.168.62]) by smtp.gmail.com with ESMTPSA id j10sm3176917wrx.94.2021.10.28.08.05.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 08:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635433531; 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: in-reply-to:in-reply-to:references:references; bh=64kbEvhgsvTtmcrJ2XOWOXD5KZT50cBaqVp/eA5mjE8=; b=K+PiXpGNcclgbODftweqjpYCyom6jVzyLk55yr2xl7HqDcjUyLXFPmd+75RgB+8XxVfxKC P+5s/+ddDGxkno3WyVjiSsaMWIm1WoJuRd9jsvjD74a3SjdpKowUxDfYca7MxQ4tjI3e8w d5+I5hbWYmMDuQnVelj5EdnP1CMNqKo= X-MC-Unique: aQENOABbPjmP8Wjlzk4QPQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=64kbEvhgsvTtmcrJ2XOWOXD5KZT50cBaqVp/eA5mjE8=; b=nlIeWlUDJIUZ2jLofKwrQOjCrBwS4nGjmENwz0b3e8WBdWN4vmHVzjQr2JlpH4afU6 Oxthd/p3I0SVcDMXSZvpTaWClOOJsvrx5zz7CJndMSHBl3urdCykV0IOaGeeS+UFqZ1c vSvdtOs5PG2BlArhAwTbs3xvRRcoyjmqa8yWpW0AYKOL6oxd65Knj8aB+xRZ1kSA63q+ +DBk3BfrUBDua9deKedFAEak18SMoWpEzkoLSp/28sRwR4jNbiYtyKTys9R4Njy/FLLu EFZBW6wh0SicCZK3BEDE+NwnkbDU40wf0yBc3EGDdRsFN8MT2FJjh63CkbzPj8Qj2P/w Z1ew== X-Gm-Message-State: AOAM5306DJCyPSElHJAZ46eB/SwThcazC2konfO9SDpklAmBbpWtyb0H NwzvgrHPs2ED03/ypz+V5lRzuwvQ1CdxunvtFKhs52mm/FZjbsjUKiXmSsKm7eUULcbYlNKyjBR jYrUYqqI+GIERGQ== X-Received: by 2002:a05:600c:3581:: with SMTP id p1mr12883769wmq.34.1635433529379; Thu, 28 Oct 2021 08:05:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9cNv+UTrZZcL1WQuz+EcitzSKpMp9UvkyFxL9PUhH9XTloF6Tsz5tBixL62aVHvKKaiXXmQ== X-Received: by 2002:a05:600c:3581:: with SMTP id p1mr12883730wmq.34.1635433529134; Thu, 28 Oct 2021 08:05:29 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Yanan Wang , Eduardo Habkost , Igor Mammedov , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/4] hw/core: Restrict sysemu specific files Date: Thu, 28 Oct 2021 17:05:18 +0200 Message-Id: <20211028150521.1973821-2-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211028150521.1973821-1-philmd@redhat.com> References: <20211028150521.1973821-1-philmd@redhat.com> 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) X-ZM-MESSAGEID: 1635433533879100003 All these files don't make sense for tools and user emulation, restrict them to system emulation. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Yanan Wang Tested-by: Yanan Wang --- hw/core/meson.build | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/hw/core/meson.build b/hw/core/meson.build index 18f44fb7c24..a829cc4245b 100644 --- a/hw/core/meson.build +++ b/hw/core/meson.build @@ -14,15 +14,15 @@ ) =20 common_ss.add(files('cpu-common.c')) -common_ss.add(when: 'CONFIG_FITLOADER', if_true: files('loader-fit.c')) -common_ss.add(when: 'CONFIG_GENERIC_LOADER', if_true: files('generic-loade= r.c')) -common_ss.add(when: ['CONFIG_GUEST_LOADER', fdt], if_true: files('guest-lo= ader.c')) -common_ss.add(when: 'CONFIG_OR_IRQ', if_true: files('or-irq.c')) -common_ss.add(when: 'CONFIG_PLATFORM_BUS', if_true: files('platform-bus.c'= )) -common_ss.add(when: 'CONFIG_PTIMER', if_true: files('ptimer.c')) -common_ss.add(when: 'CONFIG_REGISTER', if_true: files('register.c')) -common_ss.add(when: 'CONFIG_SPLIT_IRQ', if_true: files('split-irq.c')) -common_ss.add(when: 'CONFIG_XILINX_AXI', if_true: files('stream.c')) +softmmu_ss.add(when: 'CONFIG_FITLOADER', if_true: files('loader-fit.c')) +softmmu_ss.add(when: 'CONFIG_GENERIC_LOADER', if_true: files('generic-load= er.c')) +softmmu_ss.add(when: ['CONFIG_GUEST_LOADER', fdt], if_true: files('guest-l= oader.c')) +softmmu_ss.add(when: 'CONFIG_OR_IRQ', if_true: files('or-irq.c')) +softmmu_ss.add(when: 'CONFIG_PLATFORM_BUS', if_true: files('platform-bus.c= ')) +softmmu_ss.add(when: 'CONFIG_PTIMER', if_true: files('ptimer.c')) +softmmu_ss.add(when: 'CONFIG_REGISTER', if_true: files('register.c')) +softmmu_ss.add(when: 'CONFIG_SPLIT_IRQ', if_true: files('split-irq.c')) +softmmu_ss.add(when: 'CONFIG_XILINX_AXI', if_true: files('stream.c')) =20 softmmu_ss.add(files( 'cpu-sysemu.c', --=20 2.31.1