From nobody Mon Feb 9 08:11:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1556216282; cv=none; d=zoho.com; s=zohoarc; b=m5aBAi4/LJr4+BrqqXI3MJBJOdSQfwpHo/8xd90mGaowiAvKnRdIw30BZvSI43NwqdEbgQc/iwSEOxrSt4+JAm+oxtOQxHL50i2iGgRO6zjKXPfRP6kWCWu70oWjrS7yQNyhR4jzsPEUqIk2HKpdKdVCSGqFAy/ZH+ntodZprXc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556216282; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=8TNuuiUrSMZAWqMkpHlFVL0SHyL5ztIi4Xz3Z60Kdwg=; b=FSKhlYt0p55zMXiKRiaU7k85eBxWAX1O5SqU7IzenemA4K5s/r/JtVB/67L/GCM5h+5+zoZDRIVVU/Tw6zS2Dn/ei8db1DZJOY2Mwkl8POwi1Gsd1OzBYIG1cBGtElhCLXCkd7obBXCcjZ5XLlIZA23KA/ZrTPFd8SEplllhNvM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1556216282032389.6715679196967; Thu, 25 Apr 2019 11:18:02 -0700 (PDT) Received: from localhost ([127.0.0.1]:33529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJiwZ-0006Na-5X for importer@patchew.org; Thu, 25 Apr 2019 14:17:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJisk-0003N7-RO for qemu-devel@nongnu.org; Thu, 25 Apr 2019 14:14:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJisj-0002Rb-Pj for qemu-devel@nongnu.org; Thu, 25 Apr 2019 14:14:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35118) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hJisj-0002NC-JP for qemu-devel@nongnu.org; Thu, 25 Apr 2019 14:14:01 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B6CEF3082230; Thu, 25 Apr 2019 18:13:59 +0000 (UTC) Received: from localhost (ovpn-116-9.gru2.redhat.com [10.97.116.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2386E600C0; Thu, 25 Apr 2019 18:13:56 +0000 (UTC) From: Eduardo Habkost To: Peter Maydell , qemu-devel@nongnu.org Date: Thu, 25 Apr 2019 15:13:41 -0300 Message-Id: <20190425181342.15360-4-ehabkost@redhat.com> In-Reply-To: <20190425181342.15360-1-ehabkost@redhat.com> References: <20190425181342.15360-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Thu, 25 Apr 2019 18:13:59 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PULL 3/4] Categorize devices: iommu X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eduardo Habkost , "Michael S. Tsirkin" , Ernest Esene , Paolo Bonzini , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Ernest Esene Set category and description for iommu devices. Signed-off-by: Ernest Esene Message-Id: <20190327170518.GA16887@erokenlabserver> Reviewed-by: Eduardo Habkost [ehabkost: edited commit message] Signed-off-by: Eduardo Habkost --- hw/i386/amd_iommu.c | 2 ++ hw/i386/intel_iommu.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c index 6eabdf9917..4a4e2c7fd4 100644 --- a/hw/i386/amd_iommu.c +++ b/hw/i386/amd_iommu.c @@ -1601,6 +1601,8 @@ static void amdvi_class_init(ObjectClass *klass, void= * data) dc_class->int_remap =3D amdvi_int_remap; /* Supported by the pc-q35-* machine types */ dc->user_creatable =3D true; + set_bit(DEVICE_CATEGORY_MISC, dc->categories); + dc->desc =3D "AMD IOMMU (AMD-Vi) DMA Remapping device"; } =20 static const TypeInfo amdvi =3D { diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 2558f48fe6..44b1231157 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -3741,6 +3741,8 @@ static void vtd_class_init(ObjectClass *klass, void *= data) x86_class->int_remap =3D vtd_int_remap; /* Supported by the pc-q35-* machine types */ dc->user_creatable =3D true; + set_bit(DEVICE_CATEGORY_MISC, dc->categories); + dc->desc =3D "Intel IOMMU (VT-d) DMA Remapping device"; } =20 static const TypeInfo vtd_info =3D { --=20 2.18.0.rc1.1.g3f1ff2140