[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC 01/41] qdev: Introduce new device category to cover basic topology device
- To: Paolo Bonzini <pbonzini@xxxxxxxxxx>, Alex Bennée <alex.bennee@xxxxxxxxxx>, Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>, Eduardo Habkost <eduardo@xxxxxxxxxxx>, Marcel Apfelbaum <marcel.apfelbaum@xxxxxxxxx>, Yanan Wang <wangyanan55@xxxxxxxxxx>, Richard Henderson <richard.henderson@xxxxxxxxxx>, "Michael S . Tsirkin" <mst@xxxxxxxxxx>, Jason Wang <jasowang@xxxxxxxxxx>, Nicholas Piggin <npiggin@xxxxxxxxx>, Daniel Henrique Barboza <danielhb413@xxxxxxxxx>, Igor Mammedov <imammedo@xxxxxxxxxx>, Cédric Le Goater <clg@xxxxxxxx>, Frédéric Barrat <fbarrat@xxxxxxxxxxxxx>, David Gibson <david@xxxxxxxxxxxxxxxxxxxxx>, Harsh Prateek Bora <harshpb@xxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Gerd Hoffmann <kraxel@xxxxxxxxxx>, Peter Maydell <peter.maydell@xxxxxxxxxx>, Alistair Francis <alistair@xxxxxxxxxxxxx>, "Edgar E . Iglesias" <edgar.iglesias@xxxxxxxxx>, Daniel P . Berrangé <berrange@xxxxxxxxxx>, Bin Meng <bin.meng@xxxxxxxxxxxxx>, Palmer Dabbelt <palmer@xxxxxxxxxxx>, Weiwei Li <liwei1518@xxxxxxxxx>, Liu Zhiwei <zhiwei_liu@xxxxxxxxxxxxxxxxx>, qemu-devel@xxxxxxxxxx, kvm@xxxxxxxxxxxxxxx, qemu-ppc@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, qemu-arm@xxxxxxxxxx, qemu-riscv@xxxxxxxxxx, qemu-s390x@xxxxxxxxxx
- From: Zhao Liu <zhao1.liu@xxxxxxxxxxxxxxx>
- Date: Thu, 30 Nov 2023 22:41:23 +0800
- Cc: Nina Schoetterl-Glausch <nsg@xxxxxxxxxxxxx>, Thomas Huth <thuth@xxxxxxxxxx>, Zhiyuan Lv <zhiyuan.lv@xxxxxxxxx>, Zhenyu Wang <zhenyu.z.wang@xxxxxxxxx>, Yongwei Ma <yongwei.ma@xxxxxxxxx>, Zhao Liu <zhao1.liu@xxxxxxxxx>
- Delivery-date: Thu, 30 Nov 2023 14:39:11 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
From: Zhao Liu <zhao1.liu@xxxxxxxxx>
Topology devices are used to define CPUs and need to be created and
realized before the board initialization.
Use this new catogory to identify such special devices.
Signed-off-by: Zhao Liu <zhao1.liu@xxxxxxxxx>
---
include/hw/qdev-core.h | 1 +
system/qdev-monitor.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h
index 151d9682380d..97b7cfd04e35 100644
--- a/include/hw/qdev-core.h
+++ b/include/hw/qdev-core.h
@@ -86,6 +86,7 @@ typedef enum DeviceCategory {
DEVICE_CATEGORY_SOUND,
DEVICE_CATEGORY_MISC,
DEVICE_CATEGORY_CPU,
+ DEVICE_CATEGORY_CPU_DEF,
DEVICE_CATEGORY_WATCHDOG,
DEVICE_CATEGORY_MAX
} DeviceCategory;
diff --git a/system/qdev-monitor.c b/system/qdev-monitor.c
index a13db763e5dd..0f163b2d0310 100644
--- a/system/qdev-monitor.c
+++ b/system/qdev-monitor.c
@@ -173,6 +173,7 @@ static void qdev_print_devinfos(bool show_no_user)
[DEVICE_CATEGORY_SOUND] = "Sound",
[DEVICE_CATEGORY_MISC] = "Misc",
[DEVICE_CATEGORY_CPU] = "CPU",
+ [DEVICE_CATEGORY_CPU_DEF] = "CPU Definition",
[DEVICE_CATEGORY_WATCHDOG]= "Watchdog",
[DEVICE_CATEGORY_MAX] = "Uncategorized",
};
--
2.34.1
|