Skip to contentSkip to conversation

hw/isa/isa-bus: Set category of the "isabus-bridge" device

PATCH In review Thomas Huth 3 participants 4 messages Jan 20, 2017 – Jan 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/isa/isa-bus: Set category of the "isabus-bridge" device

It has "bridge" in its name, so it should be in the category DEVICE_CATEGORY_BRIDGE.

---
 hw/isa/isa-bus.c | 1 +
 1 file changed, 1 insertion(+)
hw/isa/isa-bus.c +1 -0
index 9d07b11..0ffbc8d 100644
@@ -219,6 +219,7 @@ static void isabus_bridge_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
+    set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
     dc->fw_name = "isa";
 }
 
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 13 lines · Thomas Huth

It has "bridge" in its name, so it should be in the category DEVICE_CATEGORY_BRIDGE.

---
 hw/isa/isa-bus.c | 1 +
 1 file changed, 1 insertion(+)
hw/isa/isa-bus.c +0 -0
index 9d07b11..0ffbc8d 100644

hw/isa/isa-bus.c static void isabus_bridge_class_init(ObjectClass *klass, void *data) · line 224

Quoted 6 lines
hw/isa/isa-bus.c +1 -0
@@ -219,6 +219,7 @@ static void isabus_bridge_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
+    set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
     dc->fw_name = "isa";
 }

Does it have any effect on the guest?
ISA is an old thing...

Thanks,

/mjt

#2 lore raw
Quoted 17 lines · Michael Tokarev
Quoted 16 lines · Thomas Huth

It has "bridge" in its name, so it should be in the category DEVICE_CATEGORY_BRIDGE.

---
 hw/isa/isa-bus.c | 1 +
 1 file changed, 1 insertion(+)
hw/isa/isa-bus.c +0 -0
index 9d07b11..0ffbc8d 100644
@@ -219,6 +219,7 @@ static void isabus_bridge_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
Quoted 6 lines

hw/isa/isa-bus.c static void isabus_bridge_class_init(ObjectClass *klass, void *data) · line 224

Quoted 3 lines
hw/isa/isa-bus.c +1 -0
+    set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
     dc->fw_name = "isa";
 }

Does it have any effect on the guest?
ISA is an old thing...

No, as far as I know, this is just used in qdev_print_devinfos() to print out the devices in nice categories when you start QEMU with "-device ?". Devices that do not have a category bit set show up in the "Uncategorized" section - which tends to get overcrowded if the devices are not sorted into proper categories.

Thomas

Reviewed-by
#3 lore raw
Quoted 25 lines · Thomas Huth
Quoted 17 lines · Michael Tokarev
Quoted 16 lines · Thomas Huth

It has "bridge" in its name, so it should be in the category DEVICE_CATEGORY_BRIDGE.

---
 hw/isa/isa-bus.c | 1 +
 1 file changed, 1 insertion(+)
hw/isa/isa-bus.c +0 -0
index 9d07b11..0ffbc8d 100644
@@ -219,6 +219,7 @@ static void isabus_bridge_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
Quoted 6 lines

hw/isa/isa-bus.c static void isabus_bridge_class_init(ObjectClass *klass, void *data) · line 224

Quoted 3 lines
hw/isa/isa-bus.c +1 -0
+    set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
     dc->fw_name = "isa";
 }

Does it have any effect on the guest?
ISA is an old thing...

Quoted 5 lines

No, as far as I know, this is just used in qdev_print_devinfos() to print out the devices in nice categories when you start QEMU with "-device ?". Devices that do not have a category bit set show up in the "Uncategorized" section - which tends to get overcrowded if the devices are not sorted into proper categories.

It's definitely the only effect of dc->categories.