From nobody Mon Feb 9 14:30:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1606725531; cv=none; d=zohomail.com; s=zohoarc; b=czccXlTWR57aMw9FACSY83yW4RnSCP7g/7V6fWemNZZ9xtIG9+R0G4oPtGAmT0L3kHaz59vUdpgJeGYyEQBUOguBqVp5ulAXtUgWBMXqSGqWQm9jNcnNC7w9adUSW5gKLYbPElGiJo6LzKnXV/eDD2dNJ4udbKTd16hrk2ooIpw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606725531; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=qEj6letAz0p5Uba+V1+Fkmm/UdYZLszHXRReVk4XqrA=; b=WlQ0Qjbf3kvrNexUYDSW+T2x51OXQi2b+f5V8nyH/9Wa6Pgy9DNJ2+ChXQPC0SPBFaRVxnmBsjvL6pSfSf2pRBaphKkTHQW2tDgqbYPq5u8qs25+xVcJAe1eEuj7Qv6VdQHf89IkNOKw/qOGW6zEUabA2KZpDlSCaVTukJKhDKA= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1606725531726314.3715190636807; Mon, 30 Nov 2020 00:38:51 -0800 (PST) Received: from localhost ([::1]:58170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjehu-0004hA-90 for importer@patchew.org; Mon, 30 Nov 2020 03:38:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegX-0002yN-KL; Mon, 30 Nov 2020 03:37:25 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:2810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegU-0000Os-8N; Mon, 30 Nov 2020 03:37:25 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Ckz9P6c8QzkjR6; Mon, 30 Nov 2020 16:36:41 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Nov 2020 16:37:07 +0800 From: Gan Qixin To: , Subject: [PATCH v2 01/12] pc-dimm: put it into the 'storage' category Date: Mon, 30 Nov 2020 16:36:19 +0800 Message-ID: <20201130083630.2520597-2-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201130083630.2520597-1-ganqixin@huawei.com> References: <20201130083630.2520597-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected 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=45.249.212.190; envelope-from=ganqixin@huawei.com; helo=szxga04-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kuhn.chenqun@huawei.com, thuth@redhat.com, zhang.zhanghailiang@huawei.com, Gan Qixin , "Michael S . Tsirkin" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" The category of the pc-dimm device is not set, put it into the 'storage' category. Signed-off-by: Gan Qixin --- Cc: Michael S. Tsirkin --- hw/mem/pc-dimm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c index 2ffc986734..017146e3d1 100644 --- a/hw/mem/pc-dimm.c +++ b/hw/mem/pc-dimm.c @@ -282,6 +282,7 @@ static void pc_dimm_class_init(ObjectClass *oc, void *d= ata) mdc->get_plugged_size =3D memory_device_get_region_size; mdc->get_memory_region =3D pc_dimm_md_get_memory_region; mdc->fill_device_info =3D pc_dimm_md_fill_device_info; + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); } =20 static TypeInfo pc_dimm_info =3D { --=20 2.23.0 From nobody Mon Feb 9 14:30:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1606725664; cv=none; d=zohomail.com; s=zohoarc; b=REbKQr7BEUpIxqpMHtqkgeTYj8pXYf83fQhGztnIJVoUH3GsL3fOcSSXsT28EzH+Kc8+bBeE196XFj0C4XirAglV+RAzAyhHpxlit93EV7R6Vg72cLluebrg4xWKAbdg5q3LcyUl1AhBBPCWp3qhwbDHRVkCHicDpZcLGcH/0NI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606725664; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=i0wv5mzEpXDx/o5n1EHfftFa2UxJgPPdURJGPxtgC10=; b=ZsoUA/Nnvylszn8JcDWyZz5EWp2r0rNg6oBAfjcWxD9LWB89qurePLav002vvQeTvof44aiWbUL1xsFNEeg4bUzArXWfaAQm74VjkNFLuHV/q17J3ND8mNxj6Ip7b9hhlW0YKiG0yaAGudjfoECY5BU8tQRgy7S/30vZUwCUaAQ= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1606725664220893.1259970537369; Mon, 30 Nov 2020 00:41:04 -0800 (PST) Received: from localhost ([::1]:37578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjek3-0007pf-6y for importer@patchew.org; Mon, 30 Nov 2020 03:41:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegY-0002yf-Fj; Mon, 30 Nov 2020 03:37:26 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:2812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegW-0000Pp-Iv; Mon, 30 Nov 2020 03:37:26 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Ckz9V6nkrzkjRf; Mon, 30 Nov 2020 16:36:46 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Nov 2020 16:37:10 +0800 From: Gan Qixin To: , Subject: [PATCH v2 02/12] virtio-pmem: put it into the 'storage' category Date: Mon, 30 Nov 2020 16:36:20 +0800 Message-ID: <20201130083630.2520597-3-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201130083630.2520597-1-ganqixin@huawei.com> References: <20201130083630.2520597-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected 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=45.249.212.190; envelope-from=ganqixin@huawei.com; helo=szxga04-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thuth@redhat.com, zhang.zhanghailiang@huawei.com, "Michael S . Tsirkin" , Pankaj Gupta , Gan Qixin , kuhn.chenqun@huawei.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" The category of the virtio-pmem device is not set, put it into the 'storage' category. Signed-off-by: Gan Qixin Reviewed-by: Pankaj Gupta --- Cc: Michael S. Tsirkin --- hw/virtio/virtio-pmem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/virtio/virtio-pmem.c b/hw/virtio/virtio-pmem.c index ddb0125901..98b3139cd0 100644 --- a/hw/virtio/virtio-pmem.c +++ b/hw/virtio/virtio-pmem.c @@ -175,6 +175,7 @@ static void virtio_pmem_class_init(ObjectClass *klass, = void *data) =20 vpc->fill_device_info =3D virtio_pmem_fill_device_info; vpc->get_memory_region =3D virtio_pmem_get_memory_region; + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); } =20 static TypeInfo virtio_pmem_info =3D { --=20 2.23.0 From nobody Mon Feb 9 14:30:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1606725672; cv=none; d=zohomail.com; s=zohoarc; b=FCqaZBipnxR+drvfwW63dYVEREhEsR/D/FvtVzJtxk+2TOMHIiu0kJJZHv3Hnm5Qix7fre/VNYhJ2QdIUS1GSpYXhCtzNo7au7O0YMKoZPSV+jihORHYzSLLg2CKm6PG9Wvou6WIksGp1jsbu6Ui/QH4AJYbDcPDITDURyXAhPw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606725672; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=TR1Tb/8/CR/tAIMIDL9Jryvpb/Uf55g2Rc2vpHazFOQ=; b=F3hpTZ4vFuFeMTLDJPCXfRo3s8gBsYc+yZjbycij/mY6uyp4aL+M18YlTQtjXikCfLBrsdnmvTnNgzJ1zKgDpao0Jrd/oGar/0n4y0GWuJyBzQnCiGMlDn6T+ARe9z+h4mJ76d7quyoTbrAS9UhvUm8GoF1eHoxdl6FjMAj0WvA= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1606725672883603.4703182115379; Mon, 30 Nov 2020 00:41:12 -0800 (PST) Received: from localhost ([::1]:38070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjekB-00081i-S3 for importer@patchew.org; Mon, 30 Nov 2020 03:41:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegd-00036x-6E; Mon, 30 Nov 2020 03:37:31 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:2980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjega-0000Ro-Ve; Mon, 30 Nov 2020 03:37:30 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Ckz9l0w5VzhXqk; Mon, 30 Nov 2020 16:36:59 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Nov 2020 16:37:17 +0800 From: Gan Qixin To: , Subject: [PATCH v2 03/12] vmmouse: put it into the 'input' category Date: Mon, 30 Nov 2020 16:36:21 +0800 Message-ID: <20201130083630.2520597-4-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201130083630.2520597-1-ganqixin@huawei.com> References: <20201130083630.2520597-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected 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=45.249.212.191; envelope-from=ganqixin@huawei.com; helo=szxga05-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thuth@redhat.com, zhang.zhanghailiang@huawei.com, "Michael S . Tsirkin" , Gan Qixin , kuhn.chenqun@huawei.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" The category of the vmmouse device is not set, put it into the 'input' category. Signed-off-by: Gan Qixin Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth --- Cc: Michael S. Tsirkin --- hw/i386/vmmouse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/i386/vmmouse.c b/hw/i386/vmmouse.c index a3556438f0..df4798f502 100644 --- a/hw/i386/vmmouse.c +++ b/hw/i386/vmmouse.c @@ -308,6 +308,7 @@ static void vmmouse_class_initfn(ObjectClass *klass, vo= id *data) dc->reset =3D vmmouse_reset; dc->vmsd =3D &vmstate_vmmouse; device_class_set_props(dc, vmmouse_properties); + set_bit(DEVICE_CATEGORY_INPUT, dc->categories); } =20 static const TypeInfo vmmouse_info =3D { --=20 2.23.0 From nobody Mon Feb 9 14:30:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1606725812; cv=none; d=zohomail.com; s=zohoarc; b=WFjmxx7GXsIUKphyD9ciCTaHK4X5rcqv+n3nSmPMuAvGKQi0+N3QN1/4l+R7zdz8Nhpy4usjVJ244DUn2GgvNTSvLQbHrVVQsryP6Y4wU+5+v962nR/fhwj4ea3dA2a/kiYOWOwd/GJ4yzvLw/LsKs8mf9++F3WSwWGIhIKvzB4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606725812; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=T8cw2sBN4U0WnKGBKSfPoLKd+srUOUngP7w5t2ZrN3U=; b=VA86z2OeykJfEwfYR61pKeNwnnTmVhwddJR5qgf6jaRgoEgACP1EHfbAztsy+YLcNwbweRzW853AgKIx8fPNLazAC5ZbBdiOOWK8ocxn3xQkzsm15ZBf/BMQsYoSIPmdZ1IhLqw17K1bh0g/hkgqSbnh+YS/WNVfCNwRt8Zrk6g= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1606725812644921.2995646420675; Mon, 30 Nov 2020 00:43:32 -0800 (PST) Received: from localhost ([::1]:43558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjemR-0001t5-F9 for importer@patchew.org; Mon, 30 Nov 2020 03:43:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegh-0003J4-Q9; Mon, 30 Nov 2020 03:37:35 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:2102) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjege-0000Tp-Id; Mon, 30 Nov 2020 03:37:35 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Ckz9x6LGlzhfp4; Mon, 30 Nov 2020 16:37:09 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Nov 2020 16:37:19 +0800 From: Gan Qixin To: , Subject: [PATCH v2 04/12] nvdimm: put it into the 'storage' category Date: Mon, 30 Nov 2020 16:36:22 +0800 Message-ID: <20201130083630.2520597-5-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201130083630.2520597-1-ganqixin@huawei.com> References: <20201130083630.2520597-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected 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=45.249.212.32; envelope-from=ganqixin@huawei.com; helo=szxga06-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kuhn.chenqun@huawei.com, thuth@redhat.com, zhang.zhanghailiang@huawei.com, Gan Qixin , Xiao Guangrong Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" The category of the nvdimm device is not set, put it into the 'storage' category. Signed-off-by: Gan Qixin Reviewed-by: Pankaj Gupta Reviewed-by: Thomas Huth --- Cc: Xiao Guangrong --- hw/mem/nvdimm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/mem/nvdimm.c b/hw/mem/nvdimm.c index e1574bc07c..e30695b2ce 100644 --- a/hw/mem/nvdimm.c +++ b/hw/mem/nvdimm.c @@ -236,6 +236,7 @@ static void nvdimm_class_init(ObjectClass *oc, void *da= ta) =20 nvc->read_label_data =3D nvdimm_read_label_data; nvc->write_label_data =3D nvdimm_write_label_data; + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); } =20 static TypeInfo nvdimm_info =3D { --=20 2.23.0 From nobody Mon Feb 9 14:30:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1606725784; cv=none; d=zohomail.com; s=zohoarc; b=Nc7DyA/J3BqssE9WiioMegzoIoz+I1yapO7RrtotJuOLR9Jql7NKiUMBamzE1Bzs0464HrSuPrSz+UT1PEDDpOEg7kFuWsF1WIElug5LsOHn4Xs+xSD5wqDH95kicqmInt7JBeFaSEadhA8xJW/eM5CTpYgMrOj4hKutnyPFMlY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606725784; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=DUDbC6W5ygFc/MuUe1mbnL5xESRJ/JrWZbWHvaWbAWU=; b=C9Dd3G0DYRs6TwRFNA7aD8IKJwOywf68kpj76dEcOb0m9gn5ApnIO0gjt62jHIyJllzap0uBDLWhNWgw+I2miASFB6t/RtuG7JwzAbIfvTaYhSGZqCqtIAHda+y1eQEPdhUAmNReWuskoDPv5b+1PrQKIVM8Az8jiBgS47sR6s0= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1606725784184210.38035062592667; Mon, 30 Nov 2020 00:43:04 -0800 (PST) Received: from localhost ([::1]:42134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjely-0001HS-Si for importer@patchew.org; Mon, 30 Nov 2020 03:43:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegg-0003Fy-K1; Mon, 30 Nov 2020 03:37:34 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:2101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjege-0000TX-Jp; Mon, 30 Nov 2020 03:37:34 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Ckz9x6VtSzhgLH; Mon, 30 Nov 2020 16:37:09 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Nov 2020 16:37:22 +0800 From: Gan Qixin To: , Subject: [PATCH v2 05/12] mc146818rtc: put it into the 'misc' category Date: Mon, 30 Nov 2020 16:36:23 +0800 Message-ID: <20201130083630.2520597-6-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201130083630.2520597-1-ganqixin@huawei.com> References: <20201130083630.2520597-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected 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=45.249.212.32; envelope-from=ganqixin@huawei.com; helo=szxga06-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kuhn.chenqun@huawei.com, thuth@redhat.com, zhang.zhanghailiang@huawei.com, Gan Qixin , "Michael S . Tsirkin" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" The category of the mc146818rtc device is not set, put it into the 'misc' category. Signed-off-by: Gan Qixin Reviewed-by: Thomas Huth --- Cc: Michael S. Tsirkin --- hw/rtc/mc146818rtc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/rtc/mc146818rtc.c b/hw/rtc/mc146818rtc.c index 7a38540cb9..39edca0996 100644 --- a/hw/rtc/mc146818rtc.c +++ b/hw/rtc/mc146818rtc.c @@ -1039,6 +1039,7 @@ static void rtc_class_initfn(ObjectClass *klass, void= *data) dc->vmsd =3D &vmstate_rtc; isa->build_aml =3D rtc_build_aml; device_class_set_props(dc, mc146818rtc_properties); + set_bit(DEVICE_CATEGORY_MISC, dc->categories); } =20 static const TypeInfo mc146818rtc_info =3D { --=20 2.23.0 From nobody Mon Feb 9 14:30:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1606725919; cv=none; d=zohomail.com; s=zohoarc; b=RZrXnVIqnXtR+4BLish9H76+NxFMhNq6tuXHooBU/R06KpmZNt6uDJ3fU7KwXsLguoTy4zM/VoolxlTYF6yUfHkBCIENuP8ql7gJNCXJQYZvOYetXaKecgxbNB/Yrj/ulZpvVXIlDyGvibwV3gOYFCLaypJ2w/mNLSEx/OxB6Jk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606725919; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=WxvP0LjbeB9k2HRE4ri2R6dPco0zb+GD0OAHUSjPdz0=; b=UIQbugmcGSaS9LYft7KnYEPm7HbmEQ8w5Wv/yxrGc261hphQK6SBukS3U8OilXjpMkWyVBmUvEXyEI/9bn7Jv4SVVsihU6dlzhJsBW1zPk1LYKpYChRmx3BjwvrxFffW1HZ1HWrKkHwOMeyW0CqAnsja+CMCvrR+V/8gT33VcMw= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 160672591930386.03497059618621; Mon, 30 Nov 2020 00:45:19 -0800 (PST) Received: from localhost ([::1]:49474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjeo9-0004IX-WD for importer@patchew.org; Mon, 30 Nov 2020 03:45:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegm-0003NQ-BL; Mon, 30 Nov 2020 03:37:40 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:2105) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegj-0000VY-07; Mon, 30 Nov 2020 03:37:40 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CkzB31L5xzhkXx; Mon, 30 Nov 2020 16:37:15 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Nov 2020 16:37:24 +0800 From: Gan Qixin To: , Subject: [PATCH v2 06/12] ipmi: put some ipmi devices into the correct category Date: Mon, 30 Nov 2020 16:36:24 +0800 Message-ID: <20201130083630.2520597-7-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201130083630.2520597-1-ganqixin@huawei.com> References: <20201130083630.2520597-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected 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=45.249.212.32; envelope-from=ganqixin@huawei.com; helo=szxga06-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corey Minyard , kuhn.chenqun@huawei.com, thuth@redhat.com, zhang.zhanghailiang@huawei.com, Gan Qixin Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Some ipmi devices have no category, put them into the correct category. Signed-off-by: Gan Qixin --- Cc: Corey Minyard --- hw/ipmi/ipmi_bmc_extern.c | 1 + hw/ipmi/ipmi_bmc_sim.c | 1 + hw/ipmi/isa_ipmi_bt.c | 1 + hw/ipmi/isa_ipmi_kcs.c | 1 + hw/ipmi/pci_ipmi_bt.c | 1 + hw/ipmi/pci_ipmi_kcs.c | 1 + 6 files changed, 6 insertions(+) diff --git a/hw/ipmi/ipmi_bmc_extern.c b/hw/ipmi/ipmi_bmc_extern.c index c3f3306e66..aa8faf9a9b 100644 --- a/hw/ipmi/ipmi_bmc_extern.c +++ b/hw/ipmi/ipmi_bmc_extern.c @@ -529,6 +529,7 @@ static void ipmi_bmc_extern_class_init(ObjectClass *oc,= void *data) dc->hotpluggable =3D false; dc->realize =3D ipmi_bmc_extern_realize; device_class_set_props(dc, ipmi_bmc_extern_properties); + set_bit(DEVICE_CATEGORY_MISC, dc->categories); } =20 static const TypeInfo ipmi_bmc_extern_type =3D { diff --git a/hw/ipmi/ipmi_bmc_sim.c b/hw/ipmi/ipmi_bmc_sim.c index f78e92d3d5..611650f79e 100644 --- a/hw/ipmi/ipmi_bmc_sim.c +++ b/hw/ipmi/ipmi_bmc_sim.c @@ -2214,6 +2214,7 @@ static void ipmi_sim_class_init(ObjectClass *oc, void= *data) dc->realize =3D ipmi_sim_realize; device_class_set_props(dc, ipmi_sim_properties); bk->handle_command =3D ipmi_sim_handle_command; + set_bit(DEVICE_CATEGORY_MISC, dc->categories); } =20 static const TypeInfo ipmi_sim_type =3D { diff --git a/hw/ipmi/isa_ipmi_bt.c b/hw/ipmi/isa_ipmi_bt.c index b7c2ad557b..7fc6022f13 100644 --- a/hw/ipmi/isa_ipmi_bt.c +++ b/hw/ipmi/isa_ipmi_bt.c @@ -152,6 +152,7 @@ static void isa_ipmi_bt_class_init(ObjectClass *oc, voi= d *data) iic->get_backend_data =3D isa_ipmi_bt_get_backend_data; ipmi_bt_class_init(iic); iic->get_fwinfo =3D isa_ipmi_bt_get_fwinfo; + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); } =20 static const TypeInfo isa_ipmi_bt_info =3D { diff --git a/hw/ipmi/isa_ipmi_kcs.c b/hw/ipmi/isa_ipmi_kcs.c index 7dd6bf0040..b50901fc3b 100644 --- a/hw/ipmi/isa_ipmi_kcs.c +++ b/hw/ipmi/isa_ipmi_kcs.c @@ -159,6 +159,7 @@ static void isa_ipmi_kcs_class_init(ObjectClass *oc, vo= id *data) iic->get_backend_data =3D isa_ipmi_kcs_get_backend_data; ipmi_kcs_class_init(iic); iic->get_fwinfo =3D isa_ipmi_kcs_get_fwinfo; + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); } =20 static const TypeInfo isa_ipmi_kcs_info =3D { diff --git a/hw/ipmi/pci_ipmi_bt.c b/hw/ipmi/pci_ipmi_bt.c index b6e52730d3..7d7435719a 100644 --- a/hw/ipmi/pci_ipmi_bt.c +++ b/hw/ipmi/pci_ipmi_bt.c @@ -125,6 +125,7 @@ static void pci_ipmi_bt_class_init(ObjectClass *oc, voi= d *data) =20 iic->get_backend_data =3D pci_ipmi_bt_get_backend_data; ipmi_bt_class_init(iic); + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); } =20 static const TypeInfo pci_ipmi_bt_info =3D { diff --git a/hw/ipmi/pci_ipmi_kcs.c b/hw/ipmi/pci_ipmi_kcs.c index de13418862..0f1a1e4098 100644 --- a/hw/ipmi/pci_ipmi_kcs.c +++ b/hw/ipmi/pci_ipmi_kcs.c @@ -125,6 +125,7 @@ static void pci_ipmi_kcs_class_init(ObjectClass *oc, vo= id *data) =20 iic->get_backend_data =3D pci_ipmi_kcs_get_backend_data; ipmi_kcs_class_init(iic); + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); } =20 static const TypeInfo pci_ipmi_kcs_info =3D { --=20 2.23.0 From nobody Mon Feb 9 14:30:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1606725918; cv=none; d=zohomail.com; s=zohoarc; b=Ep7e/G3lxWZ6t3iqQofSIZNEli2fElHDGmgnSEJR071KhD5kLY/aIyYpW/BkIGaF2KuHdyOkVpWRWYB2MynN6RCXdTQCCbujLgbLKjFru2ynjkAHWbzuMebrdkyqI17XTLoI7UN+s9iZLPlAt19M3/Brf92IgR92TMdmaW6jStc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606725918; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Buv7k+5IepNVWnpX8KK5fNOb/v89us/F7QkXbjYGAms=; b=fmIU1etowgy8DKpigSq+EjKnZapnNagQnjJMeuTNAJN3xZUg9LiCHhLUI4L1bVrIQQlzDwmwy6NUQJDkmETbAF6Yb8YLW9hA1NhQ+5C5eF+jF27nWZIoXWmlSA28CCtxW2rQPqpSykGFiCae5iAhfHf3K1yp0CCQJ/u32lGAZrw= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1606725918683906.4961183944508; Mon, 30 Nov 2020 00:45:18 -0800 (PST) Received: from localhost ([::1]:49392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjeo8-0004GY-Bq for importer@patchew.org; Mon, 30 Nov 2020 03:45:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjego-0003PD-9d; Mon, 30 Nov 2020 03:37:43 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:2104) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegj-0000VX-Sx; Mon, 30 Nov 2020 03:37:42 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CkzB317LvzhkWm; Mon, 30 Nov 2020 16:37:15 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Nov 2020 16:37:25 +0800 From: Gan Qixin To: , Subject: [PATCH v2 07/12] tpm: put some tpm devices into the correct category Date: Mon, 30 Nov 2020 16:36:25 +0800 Message-ID: <20201130083630.2520597-8-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201130083630.2520597-1-ganqixin@huawei.com> References: <20201130083630.2520597-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected 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=45.249.212.32; envelope-from=ganqixin@huawei.com; helo=szxga06-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kuhn.chenqun@huawei.com, thuth@redhat.com, zhang.zhanghailiang@huawei.com, Gan Qixin , Stefan Berger Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Some tpm devices have no category, put them into the correct category. Signed-off-by: Gan Qixin Reviewed-by: Stefan Berger --- Cc: Stefan Berger --- hw/tpm/tpm_tis_isa.c | 1 + hw/tpm/tpm_tis_sysbus.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/tpm/tpm_tis_isa.c b/hw/tpm/tpm_tis_isa.c index 6fd876eebf..10d8a14f19 100644 --- a/hw/tpm/tpm_tis_isa.c +++ b/hw/tpm/tpm_tis_isa.c @@ -150,6 +150,7 @@ static void tpm_tis_isa_class_init(ObjectClass *klass, = void *data) dc->reset =3D tpm_tis_isa_reset; tc->request_completed =3D tpm_tis_isa_request_completed; tc->get_version =3D tpm_tis_isa_get_tpm_version; + set_bit(DEVICE_CATEGORY_MISC, dc->categories); } =20 static const TypeInfo tpm_tis_isa_info =3D { diff --git a/hw/tpm/tpm_tis_sysbus.c b/hw/tpm/tpm_tis_sysbus.c index 2c32aa7099..45e63efd63 100644 --- a/hw/tpm/tpm_tis_sysbus.c +++ b/hw/tpm/tpm_tis_sysbus.c @@ -139,6 +139,7 @@ static void tpm_tis_sysbus_class_init(ObjectClass *klas= s, void *data) dc->reset =3D tpm_tis_sysbus_reset; tc->request_completed =3D tpm_tis_sysbus_request_completed; tc->get_version =3D tpm_tis_sysbus_get_tpm_version; + set_bit(DEVICE_CATEGORY_MISC, dc->categories); } =20 static const TypeInfo tpm_tis_sysbus_info =3D { --=20 2.23.0 From nobody Mon Feb 9 14:30:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1606725561; cv=none; d=zohomail.com; s=zohoarc; b=icgHRgEJ0Ba9b29YnWm1cuB9OqEArLxlMtD+zXUl5y1g6Ar84VLhYjK/53ZnmM4O38rBXWdIkbsKt1nPtotflzqU2OyiqK6f6pKWgAwMijMYKJkhr54NJpXgpDTOWdUrDh6lBOWI2SMZ/k6RjF6j5rlayZmbGizHX/+zN1xniuM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606725561; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=tL0PxpixjjGY50cgdE0nmMEwjGyShZWDGuig+5yfHAI=; b=bgvUIuYL424Tj56PCqmyAPIGeDUmqXyKSS23WYpQC46cSt7tze6rdRhju9DebSD05OV264JdUz3Tc5zAlt+6PIMfsCujpIaGrtGh0NujEuperZ7leQIvVZ5WDg8EYdOUn3xhPNzoQNwJT5ynxUmfFYxbePTjKm2QAGq0JkvVxPE= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1606725561031149.16904259806995; Mon, 30 Nov 2020 00:39:21 -0800 (PST) Received: from localhost ([::1]:59510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjeiN-0005Ex-VD for importer@patchew.org; Mon, 30 Nov 2020 03:39:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegq-0003Pa-T7; Mon, 30 Nov 2020 03:37:45 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:2103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegj-0000VW-UZ; Mon, 30 Nov 2020 03:37:44 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CkzB30hWzzhk61; Mon, 30 Nov 2020 16:37:15 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Nov 2020 16:37:26 +0800 From: Gan Qixin To: , Subject: [PATCH v2 08/12] AMDVI-PCI: put it into the 'misc' category Date: Mon, 30 Nov 2020 16:36:26 +0800 Message-ID: <20201130083630.2520597-9-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201130083630.2520597-1-ganqixin@huawei.com> References: <20201130083630.2520597-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected 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=45.249.212.32; envelope-from=ganqixin@huawei.com; helo=szxga06-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kuhn.chenqun@huawei.com, thuth@redhat.com, zhang.zhanghailiang@huawei.com, Gan Qixin , Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" The category of the AMDVI-PCI device is not set, put it into the 'misc' category. Signed-off-by: Gan Qixin --- Cc: Paolo Bonzini --- hw/i386/amd_iommu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c index 74a93a5d93..1d4e488f7f 100644 --- a/hw/i386/amd_iommu.c +++ b/hw/i386/amd_iommu.c @@ -1621,6 +1621,13 @@ static const TypeInfo amdvi =3D { .class_init =3D amdvi_class_init }; =20 +static void amdvi_pci_class_init(ObjectClass *klass, void *data) +{ + DeviceClass *dc =3D DEVICE_CLASS(klass); + + set_bit(DEVICE_CATEGORY_MISC, dc->categories); +} + static const TypeInfo amdviPCI =3D { .name =3D TYPE_AMD_IOMMU_PCI, .parent =3D TYPE_PCI_DEVICE, @@ -1629,6 +1636,7 @@ static const TypeInfo amdviPCI =3D { { INTERFACE_CONVENTIONAL_PCI_DEVICE }, { }, }, + .class_init =3D amdvi_pci_class_init }; =20 static void amdvi_iommu_memory_region_class_init(ObjectClass *klass, void = *data) --=20 2.23.0 From nobody Mon Feb 9 14:30:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1606726002; cv=none; d=zohomail.com; s=zohoarc; b=oKF3MU6swdna8JI7WIWJXx0oCnWxbcd8IYxUkbFFRdhi9zwZFM4OW/pATCRq+OFVsumqdtjiG5qn98JqpHz1dGNhKAxzhYO4E/BWsTFg/6bNCXHoNwzz8Wsn0FQB/gOPwYOTgcAvedalaE7Yr76DfOnSNE99aIs/wcXE5K0h0kA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606726002; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=wBZEV7vaqBaA9Z/echur+PWpZwjxwjnUoZlktmfGT/M=; b=TC1HcsQluNYAZQ1sg8byfxzaR+WRaq46PbG2VjzzmU3YgV6Y5RAo/UywW35wfbd1l7K37rDLckyvtUIGLnlQ3Ci8QnmaTIy4plhE3L3lycudys3FTAdEDxriXckTh1ct3XlRmWe6VGDxHUv21sXvgQLKq7LYJdKUDZ74yGpPo9k= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1606726002188569.8464181280012; Mon, 30 Nov 2020 00:46:42 -0800 (PST) Received: from localhost ([::1]:53776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjepV-00067K-1u for importer@patchew.org; Mon, 30 Nov 2020 03:46:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjeh1-0003RP-FR; Mon, 30 Nov 2020 03:37:55 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:2982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjego-0000XV-Cv; Mon, 30 Nov 2020 03:37:52 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CkzB22qQ2zhkNB; Mon, 30 Nov 2020 16:37:14 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Nov 2020 16:37:28 +0800 From: Gan Qixin To: , Subject: [PATCH v2 09/12] u2f-passthru: put it into the 'misc' category Date: Mon, 30 Nov 2020 16:36:27 +0800 Message-ID: <20201130083630.2520597-10-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201130083630.2520597-1-ganqixin@huawei.com> References: <20201130083630.2520597-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected 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=45.249.212.191; envelope-from=ganqixin@huawei.com; helo=szxga05-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thuth@redhat.com, zhang.zhanghailiang@huawei.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Gerd Hoffmann , Gan Qixin , kuhn.chenqun@huawei.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" The category of the u2f-passthru device is not set, put it into the 'misc' category. Signed-off-by: Gan Qixin Acked-by: Gerd Hoffmann --- Cc: Gerd Hoffmann Cc: Philippe Mathieu-Daud=C3=A9 --- hw/usb/u2f-passthru.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/usb/u2f-passthru.c b/hw/usb/u2f-passthru.c index ae00e93f35..fc93429c9c 100644 --- a/hw/usb/u2f-passthru.c +++ b/hw/usb/u2f-passthru.c @@ -534,6 +534,7 @@ static void u2f_passthru_class_init(ObjectClass *klass,= void *data) dc->desc =3D "QEMU U2F passthrough key"; dc->vmsd =3D &u2f_passthru_vmstate; device_class_set_props(dc, u2f_passthru_properties); + set_bit(DEVICE_CATEGORY_MISC, dc->categories); } =20 static const TypeInfo u2f_key_passthru_info =3D { --=20 2.23.0 From nobody Mon Feb 9 14:30:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1606726156; cv=none; d=zohomail.com; s=zohoarc; b=Y3rOqk6GeKXSvZpqWkWd5zkG+ZkJTjg7D1JnVX55wiMp7kkKXXqjzhwiK3XBdv3ET4VbQCBYsNta1jhCbTMFaTRGX8doAatlkExUZ8kVmNVDVPiBJrLkz3rPK9PLjTye46qlT6FwqNEoHCHQr3VVo+k4bUZHI1N9dlsxM16wwyk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606726156; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=BzJx0tVrZhGQ77vpMgMgWRO2ikikDPXcB/0iUcGjeDw=; b=K+pSKSufnfTiErWIhPaRVEx7xfKIcwtAr0YucvgAAm0MNTh4Jzb+axZGSd/zki70Kk7ehz2VI7xVimQt/JRbStnymymI8jPwYfFaKmhFimzT5J0k5X9lOg8oRmVWtb0qWJAH8/4HQszjMP4BMRytXduiGhIWP7+T7zPXeDXSgpQ= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1606726156325331.4796582470681; Mon, 30 Nov 2020 00:49:16 -0800 (PST) Received: from localhost ([::1]:58108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjery-0007w7-Tr for importer@patchew.org; Mon, 30 Nov 2020 03:49:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegw-0003Qh-VG; Mon, 30 Nov 2020 03:37:53 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:2869) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjego-0000XX-Cl; Mon, 30 Nov 2020 03:37:48 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CkzB23Nm0z15VQK; Mon, 30 Nov 2020 16:37:14 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Nov 2020 16:37:29 +0800 From: Gan Qixin To: , Subject: [PATCH v2 10/12] tosa-ssp: put it into the 'misc' category Date: Mon, 30 Nov 2020 16:36:28 +0800 Message-ID: <20201130083630.2520597-11-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201130083630.2520597-1-ganqixin@huawei.com> References: <20201130083630.2520597-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected 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=45.249.212.190; envelope-from=ganqixin@huawei.com; helo=szxga04-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kuhn.chenqun@huawei.com, thuth@redhat.com, zhang.zhanghailiang@huawei.com, Gan Qixin , Peter Maydell Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" The category of the tosa-ssp device is not set, put it into the 'misc' category. Signed-off-by: Gan Qixin --- Cc: Peter Maydell --- hw/arm/tosa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/tosa.c b/hw/arm/tosa.c index fe88ed89fe..0e3461c8ed 100644 --- a/hw/arm/tosa.c +++ b/hw/arm/tosa.c @@ -292,10 +292,12 @@ static const TypeInfo tosa_dac_info =3D { =20 static void tosa_ssp_class_init(ObjectClass *klass, void *data) { + DeviceClass *dc =3D DEVICE_CLASS(klass); SSISlaveClass *k =3D SSI_SLAVE_CLASS(klass); =20 k->realize =3D tosa_ssp_realize; k->transfer =3D tosa_ssp_tansfer; + set_bit(DEVICE_CATEGORY_MISC, dc->categories); } =20 static const TypeInfo tosa_ssp_info =3D { --=20 2.23.0 From nobody Mon Feb 9 14:30:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1606726051; cv=none; d=zohomail.com; s=zohoarc; b=IxB4spZHj17x5p0RecXChUU+c+uj0PPXDejhHgzA6zq3axdVMk3JsFn2iqGdD+b6ZiLm4WRTrduMImraCiE0s2FORuY7MplPPTwKbZvCVmlelDmtKjvQ/Y4y+SYWEHGc3Fh0x+Gs1rr0c7ApCiN/YYL/D59+ADlADa3/WfNRV4Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606726051; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=TtCg/VFdJL/2R92JyryxlH63Mjd1xwZpGMVfVz5B9oc=; b=gAnIx2i7f6cj2pG7Xi9O8rkq2OM9Qbjcjq4yMX69hMJhODhCPqZ9JLXI2e4xjXo5qf/FkDliVQRis7V+frDV38qQWv6boFbZwIjMCwwCXNk3uiU331/pyCFo/2lZ6LEYzJO8S5sn2u4tWDrbULnG8zHq2bzFHJ+z1DDIsojcefQ= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1606726051660124.69193046255111; Mon, 30 Nov 2020 00:47:31 -0800 (PST) Received: from localhost ([::1]:54810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjeqI-0006Y3-JQ for importer@patchew.org; Mon, 30 Nov 2020 03:47:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegt-0003Q1-T9; Mon, 30 Nov 2020 03:37:49 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:2981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegq-0000XU-97; Mon, 30 Nov 2020 03:37:47 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CkzB22dZNzhkPg; Mon, 30 Nov 2020 16:37:14 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Nov 2020 16:37:31 +0800 From: Gan Qixin To: , Subject: [PATCH v2 11/12] spitz: put some Spitz-family devices into the correct category Date: Mon, 30 Nov 2020 16:36:29 +0800 Message-ID: <20201130083630.2520597-12-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201130083630.2520597-1-ganqixin@huawei.com> References: <20201130083630.2520597-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected 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=45.249.212.191; envelope-from=ganqixin@huawei.com; helo=szxga05-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kuhn.chenqun@huawei.com, thuth@redhat.com, zhang.zhanghailiang@huawei.com, Gan Qixin , Peter Maydell Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Some Spitz-family devices have no category, put them into the correct categ= ory. Signed-off-by: Gan Qixin --- Cc: Peter Maydell --- hw/arm/spitz.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/spitz.c b/hw/arm/spitz.c index 32bdeacfd3..0e5e8a4634 100644 --- a/hw/arm/spitz.c +++ b/hw/arm/spitz.c @@ -1218,6 +1218,7 @@ static void corgi_ssp_class_init(ObjectClass *klass, = void *data) k->realize =3D corgi_ssp_realize; k->transfer =3D corgi_ssp_transfer; dc->vmsd =3D &vmstate_corgi_ssp_regs; + set_bit(DEVICE_CATEGORY_MISC, dc->categories); } =20 static const TypeInfo corgi_ssp_info =3D { @@ -1247,6 +1248,7 @@ static void spitz_lcdtg_class_init(ObjectClass *klass= , void *data) k->realize =3D spitz_lcdtg_realize; k->transfer =3D spitz_lcdtg_transfer; dc->vmsd =3D &vmstate_spitz_lcdtg_regs; + set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories); } =20 static const TypeInfo spitz_lcdtg_info =3D { --=20 2.23.0 From nobody Mon Feb 9 14:30:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1606725584; cv=none; d=zohomail.com; s=zohoarc; b=LAPEAyIz8pYt1ra15NhFUWafF/C6jxRZSJrRx18Q3h/s0Iw7SkOe7zUEeJknpBJmYhexwdVrPAttYxd4EUxx3L7XYeOYRwf87WaifiWGOWZx9ZCQhpqzypwrg1eqGsPvo2V6oA4BFD9mAlLlPNhtYRtUCuZM+tvKja9AbkighO4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606725584; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Gy6dg8L4Z9BUpbZG+78HC8tux4kwBFrC8xOMcnZG6KE=; b=G9d7bS0CfyB+8na8uvjDAPjUAzdQEayk8Iasqd0NvefYtjSTeaz5pBydagESmqEBZUj1xuNgGlU8SyR7kB1b4qP5f/oThkSOvS1X04oFz4SOAn7sIi47aAVWLXlVb/AuyUZytzeozGBm+MEI8DgltIXl4ve7eitBjCdSPa/mZR4= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1606725584503980.9949592773334; Mon, 30 Nov 2020 00:39:44 -0800 (PST) Received: from localhost ([::1]:60534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjeil-0005ds-FE for importer@patchew.org; Mon, 30 Nov 2020 03:39:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjegt-0003Px-S6; Mon, 30 Nov 2020 03:37:49 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:2870) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjego-0000XZ-BL; Mon, 30 Nov 2020 03:37:45 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CkzB239tlz15V5n; Mon, 30 Nov 2020 16:37:14 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Nov 2020 16:37:32 +0800 From: Gan Qixin To: , Subject: [PATCH v2 12/12] SPI flash devices: put them into the 'storage' category Date: Mon, 30 Nov 2020 16:36:30 +0800 Message-ID: <20201130083630.2520597-13-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201130083630.2520597-1-ganqixin@huawei.com> References: <20201130083630.2520597-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected 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=45.249.212.190; envelope-from=ganqixin@huawei.com; helo=szxga04-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thuth@redhat.com, zhang.zhanghailiang@huawei.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Alistair Francis , Gan Qixin , kuhn.chenqun@huawei.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" SPI flash devices have no category, put them into the 'storage' category. Signed-off-by: Gan Qixin Reviewed-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/block/m25p80.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 483925f57a..8dd3ef8559 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c @@ -1397,6 +1397,7 @@ static void m25p80_class_init(ObjectClass *klass, voi= d *data) device_class_set_props(dc, m25p80_properties); dc->reset =3D m25p80_reset; mc->pi =3D data; + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); } =20 static const TypeInfo m25p80_info =3D { --=20 2.23.0