From nobody Sun Sep 28 15:27:18 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1758895609; cv=none; d=zohomail.com; s=zohoarc; b=hQKFyxUM/sh5kiKfS3r/ow2zr9mKdgD1E9zcMICQTLEgALlPoZCBUS2fGdXEo9orkfCk01thNUvjd8kQBRjhpTcwiCWTGP4qbzyUA3jjrwzCacCUQn300BOoNgxjMfxtUjKFu/DRxt9BegpLVMB1iQpjRKSRncFx6Ba4WZR7crI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1758895609; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ea+0MhEY9iX2+yYiaaMVa1DUQB95GkrV93+grZ+Cioc=; b=GvimTWi37a6xbMGF9vfE2/XdcHRJcsY0DIulr7mewBQoj/monQRyBP5IDp1TRROY/r01Ywi9DKHSoJrMn1b3HMr8EbT9uAN/uK1xxZPpb3p6ibAmo9KhFH94rowqtszeJDOdNsm31vYy38Ox0dtBQHfs1YsA9SLHZ2b85O8++M0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1758895609339780.6023821668329; Fri, 26 Sep 2025 07:06:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v293T-0006p1-Ve; Fri, 26 Sep 2025 10:04:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v293N-0006nd-J0 for qemu-devel@nongnu.org; Fri, 26 Sep 2025 10:04:05 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v293A-0004qi-C3 for qemu-devel@nongnu.org; Fri, 26 Sep 2025 10:04:04 -0400 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-214-MEJXisDkOzC7Cj_FeY2XMA-1; Fri, 26 Sep 2025 10:03:46 -0400 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E8DB01800597; Fri, 26 Sep 2025 14:03:44 +0000 (UTC) Received: from toolbx.redhat.com (unknown [10.42.28.175]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 96F9A1956095; Fri, 26 Sep 2025 14:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1758895429; 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=ea+0MhEY9iX2+yYiaaMVa1DUQB95GkrV93+grZ+Cioc=; b=dw5x/81C76NeWjM7FrEulybCu+iKYySNRDQOj2/Pkto9nOo+yp2XCQekZksqKYbDeLAHou SWeNl6n717AJ/iK3r0kqR4omJvNBGK6FuKZt9NJ1BsZjoHFf6RvoZzQ+QjwJ5ssi9Hx2Wx 3MtgR8KBsZ6bWT8TjYSuyFGk6NPwBYo= X-MC-Unique: MEJXisDkOzC7Cj_FeY2XMA-1 X-Mimecast-MFC-AGG-ID: MEJXisDkOzC7Cj_FeY2XMA_1758895425 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Stefan Hajnoczi , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Markus Armbruster , Paolo Bonzini , "Michael S. Tsirkin" , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH v2 19/32] hw: mark all virtio CCW devices as secure Date: Fri, 26 Sep 2025 15:01:30 +0100 Message-ID: <20250926140144.1998694-20-berrange@redhat.com> In-Reply-To: <20250926140144.1998694-1-berrange@redhat.com> References: <20250926140144.1998694-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.446, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1758895610594116600 These are all intended for use in a virtualization scenario and must provide a security boundary. Signed-off-by: Daniel P. Berrang=C3=A9 --- hw/s390x/vhost-scsi-ccw.c | 1 + hw/s390x/vhost-user-fs-ccw.c | 1 + hw/s390x/vhost-vsock-ccw.c | 1 + hw/s390x/virtio-ccw-9p.c | 1 + hw/s390x/virtio-ccw-balloon.c | 1 + hw/s390x/virtio-ccw-blk.c | 1 + hw/s390x/virtio-ccw-crypto.c | 1 + hw/s390x/virtio-ccw-gpu.c | 1 + hw/s390x/virtio-ccw-input.c | 5 +++++ hw/s390x/virtio-ccw-md.c | 1 + hw/s390x/virtio-ccw-mem.c | 1 + hw/s390x/virtio-ccw-net.c | 1 + hw/s390x/virtio-ccw-rng.c | 1 + hw/s390x/virtio-ccw-scsi.c | 1 + hw/s390x/virtio-ccw-serial.c | 1 + hw/s390x/virtio-ccw.c | 1 + 16 files changed, 20 insertions(+) diff --git a/hw/s390x/vhost-scsi-ccw.c b/hw/s390x/vhost-scsi-ccw.c index 8341b23a95..2a16f8d06e 100644 --- a/hw/s390x/vhost-scsi-ccw.c +++ b/hw/s390x/vhost-scsi-ccw.c @@ -62,6 +62,7 @@ static const TypeInfo vhost_ccw_scsi =3D { .instance_size =3D sizeof(VHostSCSICcw), .instance_init =3D vhost_ccw_scsi_instance_init, .class_init =3D vhost_ccw_scsi_class_init, + .secure =3D true, }; =20 static void virtio_ccw_scsi_register(void) diff --git a/hw/s390x/vhost-user-fs-ccw.c b/hw/s390x/vhost-user-fs-ccw.c index cc1b8227fc..74c2ac288b 100644 --- a/hw/s390x/vhost-user-fs-ccw.c +++ b/hw/s390x/vhost-user-fs-ccw.c @@ -64,6 +64,7 @@ static const TypeInfo vhost_user_fs_ccw =3D { .instance_size =3D sizeof(VHostUserFSCcw), .instance_init =3D vhost_user_fs_ccw_instance_init, .class_init =3D vhost_user_fs_ccw_class_init, + .secure =3D true, }; =20 static void vhost_user_fs_ccw_register(void) diff --git a/hw/s390x/vhost-vsock-ccw.c b/hw/s390x/vhost-vsock-ccw.c index 552e9e86a4..60a286f6d5 100644 --- a/hw/s390x/vhost-vsock-ccw.c +++ b/hw/s390x/vhost-vsock-ccw.c @@ -71,6 +71,7 @@ static const TypeInfo vhost_vsock_ccw_info =3D { .instance_size =3D sizeof(VHostVSockCCWState), .instance_init =3D vhost_vsock_ccw_instance_init, .class_init =3D vhost_vsock_ccw_class_init, + .secure =3D true, }; =20 static void vhost_vsock_ccw_register(void) diff --git a/hw/s390x/virtio-ccw-9p.c b/hw/s390x/virtio-ccw-9p.c index 72bf6ec80c..72430b9897 100644 --- a/hw/s390x/virtio-ccw-9p.c +++ b/hw/s390x/virtio-ccw-9p.c @@ -64,6 +64,7 @@ static const TypeInfo virtio_ccw_9p_info =3D { .instance_size =3D sizeof(V9fsCCWState), .instance_init =3D virtio_ccw_9p_instance_init, .class_init =3D virtio_ccw_9p_class_init, + .secure =3D true, }; =20 static void virtio_ccw_9p_register(void) diff --git a/hw/s390x/virtio-ccw-balloon.c b/hw/s390x/virtio-ccw-balloon.c index 399b40f366..40425a5995 100644 --- a/hw/s390x/virtio-ccw-balloon.c +++ b/hw/s390x/virtio-ccw-balloon.c @@ -69,6 +69,7 @@ static const TypeInfo virtio_ccw_balloon =3D { .instance_size =3D sizeof(VirtIOBalloonCcw), .instance_init =3D virtio_ccw_balloon_instance_init, .class_init =3D virtio_ccw_balloon_class_init, + .secure =3D true, }; =20 static void virtio_ccw_balloon_register(void) diff --git a/hw/s390x/virtio-ccw-blk.c b/hw/s390x/virtio-ccw-blk.c index 7d8c4a75ce..a61da0f6d6 100644 --- a/hw/s390x/virtio-ccw-blk.c +++ b/hw/s390x/virtio-ccw-blk.c @@ -67,6 +67,7 @@ static const TypeInfo virtio_ccw_blk =3D { .instance_size =3D sizeof(VirtIOBlkCcw), .instance_init =3D virtio_ccw_blk_instance_init, .class_init =3D virtio_ccw_blk_class_init, + .secure =3D true, }; =20 static void virtio_ccw_blk_register(void) diff --git a/hw/s390x/virtio-ccw-crypto.c b/hw/s390x/virtio-ccw-crypto.c index 75e714603b..0903cc0c97 100644 --- a/hw/s390x/virtio-ccw-crypto.c +++ b/hw/s390x/virtio-ccw-crypto.c @@ -67,6 +67,7 @@ static const TypeInfo virtio_ccw_crypto =3D { .instance_size =3D sizeof(VirtIOCryptoCcw), .instance_init =3D virtio_ccw_crypto_instance_init, .class_init =3D virtio_ccw_crypto_class_init, + .secure =3D true, }; =20 static void virtio_ccw_crypto_register(void) diff --git a/hw/s390x/virtio-ccw-gpu.c b/hw/s390x/virtio-ccw-gpu.c index edb6a47d37..9f6170bcd4 100644 --- a/hw/s390x/virtio-ccw-gpu.c +++ b/hw/s390x/virtio-ccw-gpu.c @@ -66,6 +66,7 @@ static const TypeInfo virtio_ccw_gpu =3D { .instance_size =3D sizeof(VirtIOGPUCcw), .instance_init =3D virtio_ccw_gpu_instance_init, .class_init =3D virtio_ccw_gpu_class_init, + .secure =3D true, }; module_obj(TYPE_VIRTIO_GPU_CCW); module_kconfig(VIRTIO_CCW); diff --git a/hw/s390x/virtio-ccw-input.c b/hw/s390x/virtio-ccw-input.c index 2250d8cf98..f5e1a209d1 100644 --- a/hw/s390x/virtio-ccw-input.c +++ b/hw/s390x/virtio-ccw-input.c @@ -96,6 +96,7 @@ static const TypeInfo virtio_ccw_input =3D { .instance_size =3D sizeof(VirtIOInputCcw), .class_init =3D virtio_ccw_input_class_init, .abstract =3D true, + .secure =3D true, }; =20 static const TypeInfo virtio_ccw_input_hid =3D { @@ -103,6 +104,7 @@ static const TypeInfo virtio_ccw_input_hid =3D { .parent =3D TYPE_VIRTIO_INPUT_CCW, .instance_size =3D sizeof(VirtIOInputHIDCcw), .abstract =3D true, + .secure =3D true, }; =20 static const TypeInfo virtio_ccw_keyboard =3D { @@ -110,6 +112,7 @@ static const TypeInfo virtio_ccw_keyboard =3D { .parent =3D TYPE_VIRTIO_INPUT_HID_CCW, .instance_size =3D sizeof(VirtIOInputHIDCcw), .instance_init =3D virtio_ccw_keyboard_instance_init, + .secure =3D true, }; =20 static const TypeInfo virtio_ccw_mouse =3D { @@ -117,6 +120,7 @@ static const TypeInfo virtio_ccw_mouse =3D { .parent =3D TYPE_VIRTIO_INPUT_HID_CCW, .instance_size =3D sizeof(VirtIOInputHIDCcw), .instance_init =3D virtio_ccw_mouse_instance_init, + .secure =3D true, }; =20 static const TypeInfo virtio_ccw_tablet =3D { @@ -124,6 +128,7 @@ static const TypeInfo virtio_ccw_tablet =3D { .parent =3D TYPE_VIRTIO_INPUT_HID_CCW, .instance_size =3D sizeof(VirtIOInputHIDCcw), .instance_init =3D virtio_ccw_tablet_instance_init, + .secure =3D true, }; =20 static void virtio_ccw_input_register(void) diff --git a/hw/s390x/virtio-ccw-md.c b/hw/s390x/virtio-ccw-md.c index 0370f58450..9a0264efda 100644 --- a/hw/s390x/virtio-ccw-md.c +++ b/hw/s390x/virtio-ccw-md.c @@ -140,6 +140,7 @@ static const TypeInfo virtio_ccw_md_info =3D { .instance_size =3D sizeof(VirtIOMDCcw), .class_size =3D sizeof(VirtIOMDCcwClass), .abstract =3D true, + .secure =3D true, .interfaces =3D (const InterfaceInfo[]) { { TYPE_MEMORY_DEVICE }, { } diff --git a/hw/s390x/virtio-ccw-mem.c b/hw/s390x/virtio-ccw-mem.c index daa485d189..719386cfa7 100644 --- a/hw/s390x/virtio-ccw-mem.c +++ b/hw/s390x/virtio-ccw-mem.c @@ -216,6 +216,7 @@ static const TypeInfo virtio_ccw_mem =3D { .instance_size =3D sizeof(VirtIOMEMCcw), .instance_init =3D virtio_ccw_mem_instance_init, .class_init =3D virtio_ccw_mem_class_init, + .secure =3D true, }; =20 static void virtio_ccw_mem_register_types(void) diff --git a/hw/s390x/virtio-ccw-net.c b/hw/s390x/virtio-ccw-net.c index a7d4afbeb9..b2ebc76000 100644 --- a/hw/s390x/virtio-ccw-net.c +++ b/hw/s390x/virtio-ccw-net.c @@ -70,6 +70,7 @@ static const TypeInfo virtio_ccw_net =3D { .instance_size =3D sizeof(VirtIONetCcw), .instance_init =3D virtio_ccw_net_instance_init, .class_init =3D virtio_ccw_net_class_init, + .secure =3D true, }; =20 static void virtio_ccw_net_register(void) diff --git a/hw/s390x/virtio-ccw-rng.c b/hw/s390x/virtio-ccw-rng.c index 3263287d45..6216cc76dc 100644 --- a/hw/s390x/virtio-ccw-rng.c +++ b/hw/s390x/virtio-ccw-rng.c @@ -66,6 +66,7 @@ static const TypeInfo virtio_ccw_rng =3D { .instance_size =3D sizeof(VirtIORNGCcw), .instance_init =3D virtio_ccw_rng_instance_init, .class_init =3D virtio_ccw_rng_class_init, + .secure =3D true, }; =20 static void virtio_ccw_rng_register(void) diff --git a/hw/s390x/virtio-ccw-scsi.c b/hw/s390x/virtio-ccw-scsi.c index 06b4c6c4a5..a9e99b5af1 100644 --- a/hw/s390x/virtio-ccw-scsi.c +++ b/hw/s390x/virtio-ccw-scsi.c @@ -76,6 +76,7 @@ static const TypeInfo virtio_ccw_scsi =3D { .instance_size =3D sizeof(VirtIOSCSICcw), .instance_init =3D virtio_ccw_scsi_instance_init, .class_init =3D virtio_ccw_scsi_class_init, + .secure =3D true, }; =20 static void virtio_ccw_scsi_register(void) diff --git a/hw/s390x/virtio-ccw-serial.c b/hw/s390x/virtio-ccw-serial.c index 0dac590c08..5ae7bb2f30 100644 --- a/hw/s390x/virtio-ccw-serial.c +++ b/hw/s390x/virtio-ccw-serial.c @@ -76,6 +76,7 @@ static const TypeInfo virtio_ccw_serial =3D { .instance_size =3D sizeof(VirtioSerialCcw), .instance_init =3D virtio_ccw_serial_instance_init, .class_init =3D virtio_ccw_serial_class_init, + .secure =3D true, }; =20 static void virtio_ccw_serial_register(void) diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index d2f85b39f3..5977357aa9 100644 --- a/hw/s390x/virtio-ccw.c +++ b/hw/s390x/virtio-ccw.c @@ -1249,6 +1249,7 @@ static const TypeInfo virtio_ccw_device_info =3D { .class_init =3D virtio_ccw_device_class_init, .class_size =3D sizeof(VirtIOCCWDeviceClass), .abstract =3D true, + .secure =3D true, }; =20 /* virtio-ccw-bus */ --=20 2.50.1