qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 15/16] qapi: add HOTPLUG_STATE event


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v4 15/16] qapi: add HOTPLUG_STATE event
Date: Mon, 13 Feb 2023 15:10:29 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.7.2

On 13/2/23 15:01, Vladimir Sementsov-Ogievskiy wrote:
For PCIe and SHPC hotplug it's important to track led indicators,
especially the power led. Add an event that helps.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
---
  qapi/qdev.json                  | 175 ++++++++++++++++++++++++++++++++
  include/hw/hotplug.h            |  12 +++
  include/hw/pci/pci.h            |   3 +
  include/hw/pci/pci_bridge.h     |   2 +
  include/hw/pci/pcie.h           |   2 +
  include/hw/pci/shpc.h           |   2 +
  include/monitor/qdev.h          |   5 +
  hw/core/hotplug.c               |  13 +++
  hw/pci-bridge/pci_bridge_dev.c  |  14 +++
  hw/pci-bridge/pcie_pci_bridge.c |   1 +
  hw/pci/pcie.c                   |  79 ++++++++++++++
  hw/pci/pcie_port.c              |   1 +
  hw/pci/shpc.c                   | 102 ++++++++++++++++++-
  softmmu/qdev-monitor.c          |  39 +++++++
  14 files changed, 445 insertions(+), 5 deletions(-)

-ETOOBIG

+##
+# @HotplugSHPCSlotState:
+#
+# Standard Hot-Plug Controller slot state.
+#
+# @power-only: Slot is powered on but neither clock nor bus are connected.
+#
+# @enabled: Slot is powered on, clock and bus are connected, the card is
+#           fully functional from a hardware standpoint.
+#
+# @disabled: Slot is disabled, card us safe to be removed.

s/us/is/

+#
+# Since: 8.0
+##
+{ 'enum': 'HotplugSHPCSlotState',
+  'data': [ 'power-only', 'enabled', 'disabled' ] }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]