From nobody Tue Feb 10 06:26:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.50 as permitted sender) client-ip=209.85.128.50; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f50.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.50 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1615764584; cv=none; d=zohomail.com; s=zohoarc; b=DzDq/NBdF4fh0Y6noJ/OAm5GYbzQWJnEaBb2UlC3aHpPqjWsfIBbwTVDsEILj8bE7Wd/OrvGoHzEfXiotFG5HBVMRH9ncTww5yd4xnxKu+72D7Z+HMvKoMBQsZGj5QZqlHPuWF9hh7fXWOrI7xWWTdku97xE22BsbEKpPFNo39g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615764584; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=70oiTPRv0w7FE2MLsRVbgiZ8dTQJ/B4k2Scty1V1FuU=; b=Iel1dSXB11T0ShVHsuFLOeaNrkgY/ziVP5pusbqvUljVgwbmSz2ScJ6Rl92NEiwp8IF6VvDkm2EYDi3cy369EzB6PU0bXphchZQ3YWRRetkpTSGLSJZiVFDsVzOA9xo2J7BZwl5x42hLwPk5LCT8Fss1qTd6zNrdq/T0P+wC4NQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.50 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mx.zohomail.com with SMTPS id 1615764584186210.44829617203675; Sun, 14 Mar 2021 16:29:44 -0700 (PDT) Received: by mail-wm1-f50.google.com with SMTP id r15-20020a05600c35cfb029010e639ca09eso19217663wmq.1 for ; Sun, 14 Mar 2021 16:29:43 -0700 (PDT) Return-Path: Return-Path: Received: from localhost.localdomain (17.red-88-21-201.staticip.rima-tde.net. [88.21.201.17]) by smtp.gmail.com with ESMTPSA id b15sm12054487wmd.41.2021.03.14.16.29.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Mar 2021 16:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=70oiTPRv0w7FE2MLsRVbgiZ8dTQJ/B4k2Scty1V1FuU=; b=O3RPy4rqGH8KkAP9tNHKtelgXjEIHJ/q+IGzTj/RHP6qVTpSzef7VZ9jPcp1Yev19u aFAa4Kr/DqXbD0DK7+tZqJFYFGPLiT3Vu4jOceIlJdg45+a4Je6HHo39/I6SoW9CVTsk EuAzY3Ym2YyY+nPp9vfsHi/StLuHhi/1biptIAb4kuFOkjGA2ZZSQ6oRVR/z1PV0lRbS qX6jpKzkFX5bT6UQSAeGUj8pMQ5wBYY490zTejvw9Ig79CKtXEEaBbckMx5umTbGJLoL jTdyqx/AL1IaccQ6IHMEXkSLHmolQtwS1sOvfAmiIekqyhDETsQoB3YYjKjnbxLoiaF1 sH5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=70oiTPRv0w7FE2MLsRVbgiZ8dTQJ/B4k2Scty1V1FuU=; b=LJjEfRQ2UZsPVk4kMKQyesxJeDsnRL/qT/bJTqjFYfWfGX547gLy+MziewRAYRAhcd j8YMIBtetCxqYE72u5sExmYxeILoN+2LfvcrxBClZpa0OFfkHN46IrQ9z7TrSo/d93qI HTYEbygXiYwi4REpopaur1vtGL0vHWyrJfA+ahCjhK7iUNs9Jt7OLPp9fakMZgbXdqD1 eQoUFkHRv5HfEn711qHzu304eQhQK1+S29ct+NHu0S5QnNQgQMAZMcuK8R+N0LXVjGjP ynNSssOTCJ45tdnEd23u6o20Mp3MrpQbQfB/919tR93psON027m6S/zu/McpNUWhyAst WYZw== X-Gm-Message-State: AOAM532tcRfYPda9e1nGjp6o2S3GM6u0uv/Dw6AyjfM3yPU0IC8HLqb2 ZAqFLcfWBEkcvM14OIR9T8o= X-Google-Smtp-Source: ABdhPJy66fgwB1Ba3PO0EzjRIMd2orHQBICO/MbU+2p/kHOK2oRT4j2q7ViAewvH9o5kiQ+h43/psQ== X-Received: by 2002:a05:600c:1550:: with SMTP id f16mr23245428wmg.97.1615764582442; Sun, 14 Mar 2021 16:29:42 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Claudio Fontana , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Laszlo Ersek , Gerd Hoffmann , Thomas Huth , Laurent Vivier Subject: [RFC PATCH 5/8] qtest/libqos: Restrict CPU I/O instructions Date: Mon, 15 Mar 2021 00:29:10 +0100 Message-Id: <20210314232913.2607360-6-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210314232913.2607360-1-f4bug@amsat.org> References: <20210314232913.2607360-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) Restrict CPU I/O instructions to architectures providing I/O bus. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/qtest/libqos/fw_cfg.h | 3 +++ tests/qtest/libqos/fw_cfg.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tests/qtest/libqos/fw_cfg.h b/tests/qtest/libqos/fw_cfg.h index c6a7cf8cf05..3bfb6d6d55b 100644 --- a/tests/qtest/libqos/fw_cfg.h +++ b/tests/qtest/libqos/fw_cfg.h @@ -36,6 +36,8 @@ size_t qfw_cfg_get_file(QFWCFG *fw_cfg, const char *filen= ame, =20 QFWCFG *mm_fw_cfg_init(QTestState *qts, uint64_t base); void mm_fw_cfg_uninit(QFWCFG *fw_cfg); + +#ifdef TARGET_HAS_IOPORT QFWCFG *io_fw_cfg_init(QTestState *qts, uint16_t base); void io_fw_cfg_uninit(QFWCFG *fw_cfg); =20 @@ -48,6 +50,7 @@ static inline void pc_fw_cfg_uninit(QFWCFG *fw_cfg) { io_fw_cfg_uninit(fw_cfg); } +#endif /* TARGET_HAS_IOPORT */ =20 G_DEFINE_AUTOPTR_CLEANUP_FUNC(QFWCFG, mm_fw_cfg_uninit) =20 diff --git a/tests/qtest/libqos/fw_cfg.c b/tests/qtest/libqos/fw_cfg.c index 6b8e1babe51..db2b83f5212 100644 --- a/tests/qtest/libqos/fw_cfg.c +++ b/tests/qtest/libqos/fw_cfg.c @@ -131,6 +131,7 @@ void mm_fw_cfg_uninit(QFWCFG *fw_cfg) g_free(fw_cfg); } =20 +#ifdef TARGET_HAS_IOPORT static void io_fw_cfg_select(QFWCFG *fw_cfg, uint16_t key) { qtest_outw(fw_cfg->qts, fw_cfg->base, key); @@ -162,3 +163,4 @@ void io_fw_cfg_uninit(QFWCFG *fw_cfg) { g_free(fw_cfg); } +#endif /* TARGET_HAS_IOPORT */ --=20 2.26.2