From nobody Tue Nov 11 22:40:33 2025 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; dkim=fail; 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 ARC-Seal: i=1; a=rsa-sha256; t=1566246291; cv=none; d=zoho.com; s=zohoarc; b=OlbZol7Ohpag+voD7Pq7cEdgf7itpvF0wEc4ulIN4libg/x9q4dRYOFfrO6MuKl8FoF9rlf0HJ+12fOG1aXhs9GA3vdO9q9y2u2iCqXdcRSVkaWadjQOocAyDkdKNSfKvMLXDBQmCm8LltQflYnPN6uLOoQr5DlJFXJ8Y16w2KQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566246291; 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=HAO9jklM0LAfKmS8U9Hd9mmyxmn4OVgmHv+jleswvpA=; b=bx4SE+EF4UPzd/h/xIe7LQyrbeq9Iys04H4cJ2h1n+5526tBqEJDNQh/Hkocq7Zcak4y2/4cV23he4YuwFX8DtJWtWvBvuZShk43mkLRIIZk4zYajAoAfXXdEwv6tOI3OJZ0tDxBv8X0oy1ICCSXEmnP3e50yijaaTqT+7ZRAjM= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566246291811429.25791928186277; Mon, 19 Aug 2019 13:24:51 -0700 (PDT) Received: from localhost ([::1]:57396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzoCr-0000DG-TP for importer@patchew.org; Mon, 19 Aug 2019 16:24:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45547) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzo5r-0007jD-4p for qemu-devel@nongnu.org; Mon, 19 Aug 2019 16:17:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzo5j-0003NN-L0 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 16:17:30 -0400 Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]:43660) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hzo5j-0003Mo-Ea for qemu-devel@nongnu.org; Mon, 19 Aug 2019 16:17:23 -0400 Received: by mail-ot1-x343.google.com with SMTP id e12so2880991otp.10 for ; Mon, 19 Aug 2019 13:17:23 -0700 (PDT) Received: from serve.minyard.net ([47.184.134.43]) by smtp.gmail.com with ESMTPSA id r13sm3252607oic.56.2019.08.19.13.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 13:17:22 -0700 (PDT) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 48CE51805AE; Mon, 19 Aug 2019 20:17:18 +0000 (UTC) Received: by t430.minyard.net (Postfix, from userid 1000) id 2CDE130232A; Mon, 19 Aug 2019 15:17:17 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=HAO9jklM0LAfKmS8U9Hd9mmyxmn4OVgmHv+jleswvpA=; b=oJLYzIYd5CjC/D+ZLuWj+bIIOBjP5YRELEg1qE4LkGcI4DlvkcXHAQhGeTZfsqXO+D pB8wMjouOSyA5zK5jJ3kyV+FdfDQSG5S6wQ+n1QBe9FLOVnAxEvWUvpdgnIiTOAR5a6e EUfpOONxxUZNcwpjwZXHdjDmJTLPEBWec3nPgDlb3iFHVGvqvAUjJUY4v1o6UO6koB4C sTYKE/5Z150O636Q6Ht+ZTUcIhlnn9D+//GgnuDCNpn1dklPyfXutecso0NRKTixEtcx XP8K0Yvbp3zlaNZlFMtR7nUH74o0C+8dWAfu4N0dDxrioYpu/HyKXFlTJeTI7GBHdRew oXjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=HAO9jklM0LAfKmS8U9Hd9mmyxmn4OVgmHv+jleswvpA=; b=qHa0iF/Qw+6lTB4I18YAm4YsykVXw2qifRlY7HchDSCCEjBtxxjUSrxw2KIzUT3FZ9 zJNeNkqeMPYQA48Mg0bwg2faoJqrBv95M/hiyIcCT5xGGvZ7tIeO8qgLSWfHTU25Cj1b m9ydu+fPyeOSyh2N6bOnflCg5CFMRGqrtJ6YXgBw5Xy4foz402pUEN8qLppQSBtI4P56 q2CrYQiwdBES6kGkfm7i2DaKM3Q/oHXW0IX7UOnlvYk8ZMsc0e2RSRKmqbJZAc3nh9co Q+J8TW21vPVq5Fmo/+Hp1DODGgJAOXZgWZrTLFwvwWHWxzUxS3kqcKFT8Dda13dgT9W5 oiaQ== X-Gm-Message-State: APjAAAXk7GCZDKigMvna8yfkxDvAmFOlXvw9e/jhQPcEfBoFxfNvcYse BXYS6Q7fIQArf5rKWt7apg== X-Google-Smtp-Source: APXvYqzi73OG1doWpbVfthtbe87VpwWHvr6vIoJErPfku8NHWM7AL7OnZonRXkIfa8KAdESbzFjGfQ== X-Received: by 2002:a9d:7055:: with SMTP id x21mr19130070otj.137.1566245842605; Mon, 19 Aug 2019 13:17:22 -0700 (PDT) From: minyard@acm.org To: QEMU Developers Date: Mon, 19 Aug 2019 15:17:01 -0500 Message-Id: <20190819201705.31633-12-minyard@acm.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190819201705.31633-1-minyard@acm.org> References: <20190819201705.31633-1-minyard@acm.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::343 Subject: [Qemu-devel] [PATCH 11/15] ipmi: Add PCI IPMI interfaces 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 , "Michael S . Tsirkin" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Corey Minyard Pretty straightforward, just hook the current KCS and BT code into the PCI system with the proper configuration. Cc: Michael S. Tsirkin Cc: M: Marcel Apfelbaum Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak | 2 + hw/i386/Kconfig | 2 + hw/ipmi/Kconfig | 10 +++ hw/ipmi/Makefile.objs | 2 + hw/ipmi/pci_ipmi_bt.c | 146 +++++++++++++++++++++++++++++++ hw/ipmi/pci_ipmi_kcs.c | 146 +++++++++++++++++++++++++++++++ include/hw/pci/pci.h | 1 + 7 files changed, 309 insertions(+) create mode 100644 hw/ipmi/pci_ipmi_bt.c create mode 100644 hw/ipmi/pci_ipmi_kcs.c diff --git a/default-configs/i386-softmmu.mak b/default-configs/i386-softmm= u.mak index cd5ea391e8..b819582d78 100644 --- a/default-configs/i386-softmmu.mak +++ b/default-configs/i386-softmmu.mak @@ -10,6 +10,8 @@ #CONFIG_ISA_DEBUG=3Dn #CONFIG_ISA_IPMI_BT=3Dn #CONFIG_ISA_IPMI_KCS=3Dn +#CONFIG_PCI_IPMI_KCS=3Dn +#CONFIG_PCI_IPMI_BT=3Dn #CONFIG_PCI_DEVICES=3Dn #CONFIG_PVPANIC=3Dn #CONFIG_QXL=3Dn diff --git a/hw/i386/Kconfig b/hw/i386/Kconfig index 6350438036..b4efaa0818 100644 --- a/hw/i386/Kconfig +++ b/hw/i386/Kconfig @@ -8,6 +8,8 @@ config PC imply HYPERV imply ISA_IPMI_KCS imply ISA_IPMI_BT + imply PCI_IPMI_KCS + imply PCI_IPMI_BT imply ISA_DEBUG imply PARALLEL imply PCI_DEVICES diff --git a/hw/ipmi/Kconfig b/hw/ipmi/Kconfig index b944fae100..12db4e81ad 100644 --- a/hw/ipmi/Kconfig +++ b/hw/ipmi/Kconfig @@ -20,3 +20,13 @@ config ISA_IPMI_BT bool depends on ISA_BUS select IPMI + +config PCI_IPMI_KCS + bool + depends on PCI + select IPMI + +config PCI_IPMI_BT + bool + depends on PCI + select IPMI diff --git a/hw/ipmi/Makefile.objs b/hw/ipmi/Makefile.objs index 4ffa45a66c..2d7f080a86 100644 --- a/hw/ipmi/Makefile.objs +++ b/hw/ipmi/Makefile.objs @@ -2,4 +2,6 @@ common-obj-$(CONFIG_IPMI) +=3D ipmi.o ipmi_kcs.o ipmi_bt.o common-obj-$(CONFIG_IPMI_LOCAL) +=3D ipmi_bmc_sim.o common-obj-$(CONFIG_IPMI_EXTERN) +=3D ipmi_bmc_extern.o common-obj-$(CONFIG_ISA_IPMI_KCS) +=3D isa_ipmi_kcs.o +common-obj-$(CONFIG_PCI_IPMI_KCS) +=3D pci_ipmi_kcs.o common-obj-$(CONFIG_ISA_IPMI_BT) +=3D isa_ipmi_bt.o +common-obj-$(CONFIG_PCI_IPMI_BT) +=3D pci_ipmi_bt.o diff --git a/hw/ipmi/pci_ipmi_bt.c b/hw/ipmi/pci_ipmi_bt.c new file mode 100644 index 0000000000..6ed925a665 --- /dev/null +++ b/hw/ipmi/pci_ipmi_bt.c @@ -0,0 +1,146 @@ +/* + * QEMU PCI IPMI BT emulation + * + * Copyright (c) 2017 Corey Minyard, MontaVista Software, LLC + * + * Permission is hereby granted, free of charge, to any person obtaining a= copy + * of this software and associated documentation files (the "Software"), t= o deal + * in the Software without restriction, including without limitation the r= ights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or se= ll + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included= in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS= OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OT= HER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING= FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS = IN + * THE SOFTWARE. + */ +#include "qemu/osdep.h" +#include "migration/vmstate.h" +#include "qapi/error.h" +#include "hw/ipmi/ipmi_bt.h" +#include "hw/pci/pci.h" + +#define TYPE_PCI_IPMI_BT "pci-ipmi-bt" +#define PCI_IPMI_BT(obj) OBJECT_CHECK(PCIIPMIBTDevice, (obj), \ + TYPE_PCI_IPMI_BT) + +typedef struct PCIIPMIBTDevice { + PCIDevice dev; + IPMIBT bt; + bool irq_enabled; + uint32_t uuid; +} PCIIPMIBTDevice; + +static void pci_ipmi_raise_irq(IPMIBT *ik) +{ + PCIIPMIBTDevice *pik =3D ik->opaque; + + pci_set_irq(&pik->dev, true); +} + +static void pci_ipmi_lower_irq(IPMIBT *ik) +{ + PCIIPMIBTDevice *pik =3D ik->opaque; + + pci_set_irq(&pik->dev, false); +} + +static void pci_ipmi_bt_realize(PCIDevice *pd, Error **errp) +{ + PCIIPMIBTDevice *pik =3D PCI_IPMI_BT(pd); + IPMIInterface *ii =3D IPMI_INTERFACE(pd); + IPMIInterfaceClass *iic =3D IPMI_INTERFACE_GET_CLASS(ii); + + if (!pik->bt.bmc) { + error_setg(errp, "IPMI device requires a bmc attribute to be set"); + return; + } + + pik->uuid =3D ipmi_next_uuid(); + + pik->bt.bmc->intf =3D ii; + pik->bt.opaque =3D pik; + + pci_config_set_prog_interface(pd->config, 0x02); /* BT */ + pci_config_set_interrupt_pin(pd->config, 0x01); + pik->bt.use_irq =3D 1; + pik->bt.raise_irq =3D pci_ipmi_raise_irq; + pik->bt.lower_irq =3D pci_ipmi_lower_irq; + + iic->init(ii, 8, errp); + if (*errp) { + return; + } + pci_register_bar(pd, 0, PCI_BASE_ADDRESS_SPACE_IO, &pik->bt.io); +} + +const VMStateDescription vmstate_PCIIPMIBTDevice =3D { + .name =3D TYPE_IPMI_INTERFACE_PREFIX "pci-bt", + .version_id =3D 1, + .minimum_version_id =3D 1, + .fields =3D (VMStateField[]) { + VMSTATE_PCI_DEVICE(dev, PCIIPMIBTDevice), + VMSTATE_STRUCT(bt, PCIIPMIBTDevice, 1, vmstate_IPMIBT, IPMIBT), + VMSTATE_END_OF_LIST() + } +}; + +static void pci_ipmi_bt_instance_init(Object *obj) +{ + PCIIPMIBTDevice *pik =3D PCI_IPMI_BT(obj); + + ipmi_bmc_find_and_link(obj, (Object **) &pik->bt.bmc); +} + +static void *pci_ipmi_bt_get_backend_data(IPMIInterface *ii) +{ + PCIIPMIBTDevice *pik =3D PCI_IPMI_BT(ii); + + return &pik->bt; +} + +static void pci_ipmi_bt_class_init(ObjectClass *oc, void *data) +{ + DeviceClass *dc =3D DEVICE_CLASS(oc); + PCIDeviceClass *pdc =3D PCI_DEVICE_CLASS(oc); + IPMIInterfaceClass *iic =3D IPMI_INTERFACE_CLASS(oc); + + pdc->vendor_id =3D PCI_VENDOR_ID_QEMU; + pdc->device_id =3D PCI_DEVICE_ID_QEMU_IPMI; + pdc->revision =3D 1; + pdc->class_id =3D PCI_CLASS_SERIAL_IPMI; + + dc->vmsd =3D &vmstate_PCIIPMIBTDevice; + dc->desc =3D "PCI IPMI BT"; + pdc->realize =3D pci_ipmi_bt_realize; + + iic->get_backend_data =3D pci_ipmi_bt_get_backend_data; + ipmi_bt_class_init(iic); +} + +static const TypeInfo pci_ipmi_bt_info =3D { + .name =3D TYPE_PCI_IPMI_BT, + .parent =3D TYPE_PCI_DEVICE, + .instance_size =3D sizeof(PCIIPMIBTDevice), + .instance_init =3D pci_ipmi_bt_instance_init, + .class_init =3D pci_ipmi_bt_class_init, + .interfaces =3D (InterfaceInfo[]) { + { TYPE_IPMI_INTERFACE }, + { INTERFACE_CONVENTIONAL_PCI_DEVICE }, + { } + } +}; + +static void pci_ipmi_bt_register_types(void) +{ + type_register_static(&pci_ipmi_bt_info); +} + +type_init(pci_ipmi_bt_register_types) diff --git a/hw/ipmi/pci_ipmi_kcs.c b/hw/ipmi/pci_ipmi_kcs.c new file mode 100644 index 0000000000..eeba63baa4 --- /dev/null +++ b/hw/ipmi/pci_ipmi_kcs.c @@ -0,0 +1,146 @@ +/* + * QEMU PCI IPMI KCS emulation + * + * Copyright (c) 2017 Corey Minyard, MontaVista Software, LLC + * + * Permission is hereby granted, free of charge, to any person obtaining a= copy + * of this software and associated documentation files (the "Software"), t= o deal + * in the Software without restriction, including without limitation the r= ights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or se= ll + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included= in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS= OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OT= HER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING= FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS = IN + * THE SOFTWARE. + */ +#include "qemu/osdep.h" +#include "migration/vmstate.h" +#include "qapi/error.h" +#include "hw/ipmi/ipmi_kcs.h" +#include "hw/pci/pci.h" + +#define TYPE_PCI_IPMI_KCS "pci-ipmi-kcs" +#define PCI_IPMI_KCS(obj) OBJECT_CHECK(PCIIPMIKCSDevice, (obj), \ + TYPE_PCI_IPMI_KCS) + +typedef struct PCIIPMIKCSDevice { + PCIDevice dev; + IPMIKCS kcs; + bool irq_enabled; + uint32_t uuid; +} PCIIPMIKCSDevice; + +static void pci_ipmi_raise_irq(IPMIKCS *ik) +{ + PCIIPMIKCSDevice *pik =3D ik->opaque; + + pci_set_irq(&pik->dev, true); +} + +static void pci_ipmi_lower_irq(IPMIKCS *ik) +{ + PCIIPMIKCSDevice *pik =3D ik->opaque; + + pci_set_irq(&pik->dev, false); +} + +static void pci_ipmi_kcs_realize(PCIDevice *pd, Error **errp) +{ + PCIIPMIKCSDevice *pik =3D PCI_IPMI_KCS(pd); + IPMIInterface *ii =3D IPMI_INTERFACE(pd); + IPMIInterfaceClass *iic =3D IPMI_INTERFACE_GET_CLASS(ii); + + if (!pik->kcs.bmc) { + error_setg(errp, "IPMI device requires a bmc attribute to be set"); + return; + } + + pik->uuid =3D ipmi_next_uuid(); + + pik->kcs.bmc->intf =3D ii; + pik->kcs.opaque =3D pik; + + pci_config_set_prog_interface(pd->config, 0x01); /* KCS */ + pci_config_set_interrupt_pin(pd->config, 0x01); + pik->kcs.use_irq =3D 1; + pik->kcs.raise_irq =3D pci_ipmi_raise_irq; + pik->kcs.lower_irq =3D pci_ipmi_lower_irq; + + iic->init(ii, 8, errp); + if (*errp) { + return; + } + pci_register_bar(pd, 0, PCI_BASE_ADDRESS_SPACE_IO, &pik->kcs.io); +} + +const VMStateDescription vmstate_PCIIPMIKCSDevice =3D { + .name =3D TYPE_IPMI_INTERFACE_PREFIX "pci-kcs", + .version_id =3D 1, + .minimum_version_id =3D 1, + .fields =3D (VMStateField[]) { + VMSTATE_PCI_DEVICE(dev, PCIIPMIKCSDevice), + VMSTATE_STRUCT(kcs, PCIIPMIKCSDevice, 1, vmstate_IPMIKCS, IPMIKCS), + VMSTATE_END_OF_LIST() + } +}; + +static void pci_ipmi_kcs_instance_init(Object *obj) +{ + PCIIPMIKCSDevice *pik =3D PCI_IPMI_KCS(obj); + + ipmi_bmc_find_and_link(obj, (Object **) &pik->kcs.bmc); +} + +static void *pci_ipmi_kcs_get_backend_data(IPMIInterface *ii) +{ + PCIIPMIKCSDevice *pik =3D PCI_IPMI_KCS(ii); + + return &pik->kcs; +} + +static void pci_ipmi_kcs_class_init(ObjectClass *oc, void *data) +{ + DeviceClass *dc =3D DEVICE_CLASS(oc); + PCIDeviceClass *pdc =3D PCI_DEVICE_CLASS(oc); + IPMIInterfaceClass *iic =3D IPMI_INTERFACE_CLASS(oc); + + pdc->vendor_id =3D PCI_VENDOR_ID_QEMU; + pdc->device_id =3D PCI_DEVICE_ID_QEMU_IPMI; + pdc->revision =3D 1; + pdc->class_id =3D PCI_CLASS_SERIAL_IPMI; + + dc->vmsd =3D &vmstate_PCIIPMIKCSDevice; + dc->desc =3D "PCI IPMI KCS"; + pdc->realize =3D pci_ipmi_kcs_realize; + + iic->get_backend_data =3D pci_ipmi_kcs_get_backend_data; + ipmi_kcs_class_init(iic); +} + +static const TypeInfo pci_ipmi_kcs_info =3D { + .name =3D TYPE_PCI_IPMI_KCS, + .parent =3D TYPE_PCI_DEVICE, + .instance_size =3D sizeof(PCIIPMIKCSDevice), + .instance_init =3D pci_ipmi_kcs_instance_init, + .class_init =3D pci_ipmi_kcs_class_init, + .interfaces =3D (InterfaceInfo[]) { + { TYPE_IPMI_INTERFACE }, + { INTERFACE_CONVENTIONAL_PCI_DEVICE }, + { } + } +}; + +static void pci_ipmi_kcs_register_types(void) +{ + type_register_static(&pci_ipmi_kcs_info); +} + +type_init(pci_ipmi_kcs_register_types) diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index 1b840e61a2..f3f0ffd5fb 100644 --- a/include/hw/pci/pci.h +++ b/include/hw/pci/pci.h @@ -55,6 +55,7 @@ extern bool pci_available; /* QEMU/Bochs VGA (0x1234) */ #define PCI_VENDOR_ID_QEMU 0x1234 #define PCI_DEVICE_ID_QEMU_VGA 0x1111 +#define PCI_DEVICE_ID_QEMU_IPMI 0x1112 =20 /* VMWare (0x15ad) */ #define PCI_VENDOR_ID_VMWARE 0x15ad --=20 2.17.1