From nobody Mon Feb 9 19:53:35 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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 170.10.133.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=1640951351; cv=none; d=zohomail.com; s=zohoarc; b=kXdaLdmf+jFsGTY//fPHgVRW5qW0b9zU/pjH041KllpdiZfiTWLxIrIjboe31Vmp9ZoskceCla/upLEyyYQ2/7thNgBUOs0tyh93zk9QblJzkl9uDDFVc3HdxNo9dAXczHy02/PHchIVjlCj+zAtYcpnOUfbKL/QCr6/bDaWiJA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1640951351; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Mzp4W/VQyMxGd5CvQVuwL031robPDmwL00FTI5wH9/Y=; b=ZPoGSljFIuqaUH/QVRq2pvn7rj4foLOcqQsPJV5L7sgfVg3NzB7nQ44RSpd2ltXLJnFAEQDrheJZPHGIJHI4P0AI3ADyXkXYKEM8N252auO7y+/QI9MOUTf9fyLIPcMjYNPQQiHo4M1L5IkoYu+IsGm5TQHbdfv5RzQ4pZfR1/8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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 [170.10.133.124]) by mx.zohomail.com with SMTPS id 1640951351190728.226593534708; Fri, 31 Dec 2021 03:49:11 -0800 (PST) Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-114-zZWRbqEROiG205cqpfDisQ-1; Fri, 31 Dec 2021 06:49:09 -0500 Received: by mail-wr1-f72.google.com with SMTP id s30-20020adfa29e000000b001a25caee635so7477800wra.19 for ; Fri, 31 Dec 2021 03:49:08 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (26.red-83-50-86.dynamicip.rima-tde.net. [83.50.86.26]) by smtp.gmail.com with ESMTPSA id l4sm26395582wrm.62.2021.12.31.03.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Dec 2021 03:49:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1640951350; 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=Mzp4W/VQyMxGd5CvQVuwL031robPDmwL00FTI5wH9/Y=; b=ijrxFiQCS49Tjcq8K1XAFKzaY8nTN5fLxufnFj/E04Q9WHl+b3raDOjd0UoVNaR5KwirTn KdplsMApr0xFis1cZv7uMRHf48TBdJIWUUHYV769Th8SN8qgzkixkzJ4IhI5FzBtnANjy+ eNc9IVN1puPZ0ZhTU15VzksbTEWvecU= X-MC-Unique: zZWRbqEROiG205cqpfDisQ-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=Mzp4W/VQyMxGd5CvQVuwL031robPDmwL00FTI5wH9/Y=; b=jctlJlIMF/0ie5ybqH++j+XYzmLHGy3m8EJ/h91cwrJK5N7CkyiHRCnNK+jOUM20T/ 9Gume0YQJ9fiTOwv7zMotjGxJmIdeSEDQxYzL3ACDeE2LEbD/trtJMKAPhfFMrsRVbGd tMIUSDGBkf1RfLBpY/Mnb/wEeGM9YJJv1bWLMxVaJQJrBnDMgXaGjFPjmhYFVLAhoffL hzkxKQpe8o61fo2g7PLlnwF5MSC3PiLwP51nOoTMtmAxUqNJ5tPoXoGZvrNqvUY8HS4p /qWBKXXumngOgaf13dv7QdlgfO4WnMO/CdpNfpjR97wkyAV1riQXdvcAWkX0JjpfLLJV PHvA== X-Gm-Message-State: AOAM532RA0bOtKzYdRKyJenzH5d3K9E9DoAz7pkWE0ahiMgPiRUIhEUw /7ZlEYBw+//wg62KD3i1zz5RzJUyflwOJrFdpBTQg6+g/7z4ys7oWqPedHE5YR+GHalMXFxcea6 VFiUPF2dreatMfw== X-Received: by 2002:adf:9c85:: with SMTP id d5mr28584578wre.374.1640951348012; Fri, 31 Dec 2021 03:49:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOSGEuDRp2HNybF3MVJgPfgxFxNFANVmmtSwHonmlbykW9rRWMFORYSBDtBN1+3dkgCGjZ6Q== X-Received: by 2002:adf:9c85:: with SMTP id d5mr28584572wre.374.1640951347875; Fri, 31 Dec 2021 03:49:07 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Marcel Apfelbaum , Gerd Hoffmann , David Hildenbrand , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , "Michael S. Tsirkin" , Peter Xu Subject: [PATCH 1/8] hw/nvram: Restrict stub to sysemu and tools Date: Fri, 31 Dec 2021 12:48:54 +0100 Message-Id: <20211231114901.976937-2-philmd@redhat.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211231114901.976937-1-philmd@redhat.com> References: <20211231114901.976937-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: 1640951351925000003 User-mode emulation doesn't need the fw_cfg stub. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/nvram/meson.build | 6 ++++-- stubs/meson.build | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/nvram/meson.build b/hw/nvram/meson.build index 202a5466e63..f5ee9f6b88c 100644 --- a/hw/nvram/meson.build +++ b/hw/nvram/meson.build @@ -1,5 +1,7 @@ -# QOM interfaces must be available anytime QOM is used. -qom_ss.add(files('fw_cfg-interface.c')) +if have_system or have_tools + # QOM interfaces must be available anytime QOM is used. + qom_ss.add(files('fw_cfg-interface.c')) +endif =20 softmmu_ss.add(files('fw_cfg.c')) softmmu_ss.add(when: 'CONFIG_CHRP_NVRAM', if_true: files('chrp_nvram.c')) diff --git a/stubs/meson.build b/stubs/meson.build index 71469c1d50a..363f6fa785d 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -11,7 +11,6 @@ stub_ss.add(files('dump.c')) stub_ss.add(files('error-printf.c')) stub_ss.add(files('fdset.c')) -stub_ss.add(files('fw_cfg.c')) stub_ss.add(files('gdbstub.c')) stub_ss.add(files('get-vm-name.c')) if linux_io_uring.found() @@ -51,6 +50,7 @@ stub_ss.add(files('replay-tools.c')) endif if have_system + stub_ss.add(files('fw_cfg.c')) stub_ss.add(files('semihost.c')) stub_ss.add(files('usb-dev-stub.c')) stub_ss.add(files('xen-hw-stub.c')) --=20 2.33.1