From nobody Mon Feb 9 11:31:56 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1631143270; cv=none; d=zohomail.com; s=zohoarc; b=UaHsgtx7lpw0bzBi25B71iVOwimVmcmEXfNQYa9uKuwFOaMrmrvOty9fOnTxXj9SCHRw5g04OUwUQzXqBitGiBa9hWZlJ+kXwhAASZToXKSGyoigSWRk+t8v1NPZprCd4OlcG8xam1+G6uPQMfXm+yAtDX5iStAr0LHEG2ouag4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631143270; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=geCiN4saZ2frlXmhHZT44DYe1b4J1aCN7Xj/FRob9pQ=; b=Xer5lprSCanDA9Vhq8idZlbyoxX6h6fgIoSp3GZ+eTXwQQM7FhjrNS1SFE/9WP/NhryIvm7XDXSo4qXpXH7zRupo5LPjXoYQhEr2Epz6MKvHzvO6B4Bfp4h/kOz2mXYHTO3K+TpO1ZFheC+dx2UgEzUL2uJkFv+TIi18Mjh6aPk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1631143270672658.2612369618483; Wed, 8 Sep 2021 16:21:10 -0700 (PDT) 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-45-Y5B-ZUtJMgyUvp9vvIAWQg-1; Wed, 08 Sep 2021 19:21:06 -0400 Received: by mail-wm1-f71.google.com with SMTP id c2-20020a7bc8420000b0290238db573ab7so37200wml.5 for ; Wed, 08 Sep 2021 16:21:06 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.. (21.red-83-52-55.dynamicip.rima-tde.net. [83.52.55.21]) by smtp.gmail.com with ESMTPSA id t18sm13191wrp.97.2021.09.08.16.21.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 16:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631143269; 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=geCiN4saZ2frlXmhHZT44DYe1b4J1aCN7Xj/FRob9pQ=; b=Ej2G0uBDOnT4bgcRFr2XEZEQUaG9J7w5/mINcOg8a7am3t3rPUNysiTDy+w+eF/s/VuT+p mpc/4x9/mFF+0a9ML2HKhbOG9Joibj5TnStWRA1B3TvQW6aDVAK0DwzSi8orDEbEPssqdn Ognn3BuVOzsI74EyAQEykqlVYpt2uBY= X-MC-Unique: Y5B-ZUtJMgyUvp9vvIAWQg-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=geCiN4saZ2frlXmhHZT44DYe1b4J1aCN7Xj/FRob9pQ=; b=mtO+3gsqYklddZ4BEOgJrLGVYdhGH36ydWvrrAGmPe5VklYJ2FLTJhEkfmmVhBbSNS KRCbmw4jicnkxNVM+evAOqwUjoha6jSnY9PZizP6d0y+ETMoL6fcgvdR6TL7DIdAHsZB 9eefzoddYaQzVC8SiueXKBmnyqALwuIvHy5LAXm/+yosPpqZG95eGTB9sHKduFcjzy4r +BkjL7rAXEyQuXzPu2SqYamYKG5fHKd6gWleWwJiaMc6CtUU6hYTv4dIAPPiMn8vksuq rACyzadgMCTIxfd8XEmBSNy90tW0hyEasWPnRsHXap/jpDwmMwLvt/CO2oXhoO0BGSVt 0vOQ== X-Gm-Message-State: AOAM5317+LW/HdZc/80ftD9Tf5ylGIlHwBAi6lXTesJXgwIq5QHSRZQF zNYSF865Oe9RYuPe5/coBoYh2LvKNV8skvC4Ad0WjyGl3Cac8YdSfgDl2uE9I0lk7TYc2PUB8+1 2e0XRMkLfsxrbRw== X-Received: by 2002:a05:600c:3b84:: with SMTP id n4mr5902093wms.50.1631143265001; Wed, 08 Sep 2021 16:21:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCzGiWOShaEshb6oqBDiWr1/WLhbErNDpTZCYYbU0bD2w0oJKgL2kMezD9hKtqCektWiLpSA== X-Received: by 2002:a05:600c:3b84:: with SMTP id n4mr5902087wms.50.1631143264855; Wed, 08 Sep 2021 16:21:04 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Prasad J Pandit , "Michael S. Tsirkin" , Markus Armbruster , Paolo Bonzini , Eduardo Habkost , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Eric Blake , Richard Henderson , qemu-block@nongnu.org, Peter Maydell , xen-devel@lists.xenproject.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [RFC PATCH 08/10] hw/misc: Mark testdev devices as unsafe Date: Thu, 9 Sep 2021 01:20:22 +0200 Message-Id: <20210908232024.2399215-9-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210908232024.2399215-1-philmd@redhat.com> References: <20210908232024.2399215-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: 1631143271774100002 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/hyperv/hyperv_testdev.c | 1 + hw/misc/pc-testdev.c | 1 + hw/misc/pci-testdev.c | 1 + 3 files changed, 3 insertions(+) diff --git a/hw/hyperv/hyperv_testdev.c b/hw/hyperv/hyperv_testdev.c index 9a56ddf83fe..6a75c350389 100644 --- a/hw/hyperv/hyperv_testdev.c +++ b/hw/hyperv/hyperv_testdev.c @@ -310,6 +310,7 @@ static void hv_test_dev_class_init(ObjectClass *klass, = void *data) =20 set_bit(DEVICE_CATEGORY_MISC, dc->categories); dc->realize =3D hv_test_dev_realizefn; + dc->taints_security_policy =3D true; } =20 static const TypeInfo hv_test_dev_info =3D { diff --git a/hw/misc/pc-testdev.c b/hw/misc/pc-testdev.c index e3896518694..6294b80ec1b 100644 --- a/hw/misc/pc-testdev.c +++ b/hw/misc/pc-testdev.c @@ -199,6 +199,7 @@ static void testdev_class_init(ObjectClass *klass, void= *data) =20 set_bit(DEVICE_CATEGORY_MISC, dc->categories); dc->realize =3D testdev_realizefn; + dc->taints_security_policy =3D true; } =20 static const TypeInfo testdev_info =3D { diff --git a/hw/misc/pci-testdev.c b/hw/misc/pci-testdev.c index 03845c8de34..189eb9bf1bb 100644 --- a/hw/misc/pci-testdev.c +++ b/hw/misc/pci-testdev.c @@ -340,6 +340,7 @@ static void pci_testdev_class_init(ObjectClass *klass, = void *data) set_bit(DEVICE_CATEGORY_MISC, dc->categories); dc->reset =3D qdev_pci_testdev_reset; device_class_set_props(dc, pci_testdev_properties); + dc->taints_security_policy =3D true; } =20 static const TypeInfo pci_testdev_info =3D { --=20 2.31.1