[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 10/15] smbios:ipmi: Ignore IPMI devices with no fwin
From: |
minyard |
Subject: |
[Qemu-devel] [PATCH 10/15] smbios:ipmi: Ignore IPMI devices with no fwinfo function |
Date: |
Mon, 19 Aug 2019 15:17:00 -0500 |
From: Corey Minyard <address@hidden>
Not all devices have fwinfo (like the coming PCI one), so ignore
them if the their fwinfo function is NULL.
Cc: Michael S. Tsirkin <address@hidden>
Cc: Igor Mammedov <address@hidden>
Signed-off-by: Corey Minyard <address@hidden>
---
hw/smbios/smbios_type_38.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/smbios/smbios_type_38.c b/hw/smbios/smbios_type_38.c
index 0c08f282de..168b886647 100644
--- a/hw/smbios/smbios_type_38.c
+++ b/hw/smbios/smbios_type_38.c
@@ -94,6 +94,9 @@ static void smbios_add_ipmi_devices(BusState *bus)
ii = IPMI_INTERFACE(obj);
iic = IPMI_INTERFACE_GET_CLASS(obj);
memset(&info, 0, sizeof(info));
+ if (!iic->get_fwinfo) {
+ continue;
+ }
iic->get_fwinfo(ii, &info);
smbios_build_one_type_38(&info);
continue;
--
2.17.1
- [Qemu-devel] [PATCH 00/15] IPMI updates for 4.3, minyard, 2019/08/19
- [Qemu-devel] [PATCH 04/15] tests:ipmi: Fix IPMI BT tests, minyard, 2019/08/19
- [Qemu-devel] [PATCH 06/15] ipmi: Add a UUID device property, minyard, 2019/08/19
- [Qemu-devel] [PATCH 03/15] ipmi: Generate an interrupt on watchdog pretimeout expiry, minyard, 2019/08/19
- [Qemu-devel] [PATCH 10/15] smbios:ipmi: Ignore IPMI devices with no fwinfo function,
minyard <=
- [Qemu-devel] [PATCH 02/15] ipmi: Fix the get watchdog command, minyard, 2019/08/19
- [Qemu-devel] [PATCH 01/15] ipmi: Fix watchdog NMI handling, minyard, 2019/08/19
- [Qemu-devel] [PATCH 13/15] acpi: Add i2c serial bus CRS handling, minyard, 2019/08/19
- [Qemu-devel] [PATCH 05/15] qdev: Add a no default uuid property, minyard, 2019/08/19
- [Qemu-devel] [PATCH 07/15] ipmi: Split out KCS-specific code from ISA KCS code, minyard, 2019/08/19
- [Qemu-devel] [PATCH 11/15] ipmi: Add PCI IPMI interfaces, minyard, 2019/08/19
- [Qemu-devel] [PATCH 09/15] ipmi: Allow a size value to be passed for I/O space, minyard, 2019/08/19
- [Qemu-devel] [PATCH 15/15] pc: Add an SMB0 ACPI device to q35, minyard, 2019/08/19
- [Qemu-devel] [PATCH 14/15] ipmi: Fix SSIF ACPI handling to use the right CRS, minyard, 2019/08/19