All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Shiju Jose <shiju.jose@huawei.com>,
	Markus Armbruster <armbru@redhat.com>,
	Jonathan Cameron <Jonathan.Cameron@huawei.com>,
	Fan Ni <fan.ni@samsung.com>, Eric Blake <eblake@redhat.com>
Subject: Re: [PULL 05/51] qapi: cxl: Refactor CXL event injection for common commands arguments
Date: Thu, 5 Feb 2026 01:45:47 -0500	[thread overview]
Message-ID: <20260205014516-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <785b458d94343c629d353628f9cf6e5774dbc2f6.1770231744.git.mst@redhat.com>

On Wed, Feb 04, 2026 at 02:03:02PM -0500, Michael S. Tsirkin wrote:
> From: Shiju Jose <shiju.jose@huawei.com>
> 
> Refactor CXL event injection to use struct for common command
> arguments.
> 
> Suggested-by: Markus Armbruster <armbru@redhat.com>
> Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
> Acked-by: Markus Armbruster <armbru@redhat.com>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> Message-Id: <20260114142713.617806-2-Jonathan.Cameron@huawei.com>


I dropped this and the following 4 patches since there's a
new version under review now.

> ---
>  qapi/cxl.json | 89 +++++++++++++++++++++++++++++++++------------------
>  1 file changed, 58 insertions(+), 31 deletions(-)
> 
> diff --git a/qapi/cxl.json b/qapi/cxl.json
> index eeddb58d1d..55a088586e 100644
> --- a/qapi/cxl.json
> +++ b/qapi/cxl.json
> @@ -31,11 +31,10 @@
>   }
>  
>  ##
> -# @cxl-inject-general-media-event:
> +# @CXLCommonEventBase:
>  #
> -# Inject an event record for a General Media Event (CXL r3.0
> -# 8.2.9.2.1.1).  This event type is reported via one of the event logs
> -# specified via the log parameter.
> +# Common event base for a CXL Event (CXL r3.0 8.2.9.2.1
> +# Table 8-42 Common Event Record Format).
>  #
>  # @path: CXL type 3 device canonical QOM path
>  #
> @@ -44,6 +43,16 @@
>  # @flags: Event Record Flags.  See CXL r3.0 Table 8-42 Common Event
>  #     Record Format, Event Record Flags for subfield definitions.
>  #
> +# Since: 8.1
> +##
> +{ 'struct': 'CXLCommonEventBase',
> +  'data': { 'path': 'str', 'log': 'CxlEventLog', 'flags': 'uint8' } }
> +
> +##
> +# @CXLGeneralMediaEvent:
> +#
> +# Event record for a General Media Event (CXL r3.0 8.2.9.2.1.1).
> +#
>  # @dpa: Device Physical Address (relative to @path device).  Note
>  #     lower bits include some flags.  See CXL r3.0 Table 8-43 General
>  #     Media Event Record, Physical Address.
> @@ -74,26 +83,29 @@
>  #
>  # Since: 8.1
>  ##
> -{ 'command': 'cxl-inject-general-media-event',
> -  'data': { 'path': 'str', 'log': 'CxlEventLog', 'flags': 'uint8',
> -            'dpa': 'uint64', 'descriptor': 'uint8',
> +{ 'struct': 'CXLGeneralMediaEvent',
> +  'base': 'CXLCommonEventBase',
> +  'data': { 'dpa': 'uint64', 'descriptor': 'uint8',
>              'type': 'uint8', 'transaction-type': 'uint8',
>              '*channel': 'uint8', '*rank': 'uint8',
>              '*device': 'uint32', '*component-id': 'str' } }
>  
>  ##
> -# @cxl-inject-dram-event:
> +# @cxl-inject-general-media-event:
>  #
> -# Inject an event record for a DRAM Event (CXL r3.0 8.2.9.2.1.2).
> -# This event type is reported via one of the event logs specified via
> -# the log parameter.
> +# Inject an event record for a General Media Event (CXL r3.0
> +# 8.2.9.2.1.1).  This event type is reported via one of the event
> +# logs specified via the log parameter.
>  #
> -# @path: CXL type 3 device canonical QOM path
> +# Since: 8.1
> +##
> +{ 'command': 'cxl-inject-general-media-event',
> +  'data': 'CXLGeneralMediaEvent' }
> +
> +##
> +# @CXLDRAMEvent:
>  #
> -# @log: Event log to add the event to
> -#
> -# @flags: Event Record Flags.  See CXL r3.0 Table 8-42 Common Event
> -#     Record Format, Event Record Flags for subfield definitions.
> +# Event record for a DRAM Event (CXL r3.0 8.2.9.2.1.2).
>  #
>  # @dpa: Device Physical Address (relative to @path device).  Note
>  #     lower bits include some flags.  See CXL r3.0 Table 8-44 DRAM
> @@ -133,9 +145,9 @@
>  #
>  # Since: 8.1
>  ##
> -{ 'command': 'cxl-inject-dram-event',
> -  'data': { 'path': 'str', 'log': 'CxlEventLog', 'flags': 'uint8',
> -            'dpa': 'uint64', 'descriptor': 'uint8',
> +{ 'struct': 'CXLDRAMEvent',
> +  'base': 'CXLCommonEventBase',
> +  'data': { 'dpa': 'uint64', 'descriptor': 'uint8',
>              'type': 'uint8', 'transaction-type': 'uint8',
>              '*channel': 'uint8', '*rank': 'uint8', '*nibble-mask': 'uint32',
>              '*bank-group': 'uint8', '*bank': 'uint8', '*row': 'uint32',
> @@ -143,18 +155,21 @@
>             }}
>  
>  ##
> -# @cxl-inject-memory-module-event:
> +# @cxl-inject-dram-event:
>  #
> -# Inject an event record for a Memory Module Event (CXL r3.0
> -# 8.2.9.2.1.3).  This event includes a copy of the Device Health info
> -# at the time of the event.
> +# Inject an event record for a DRAM Event (CXL r3.0 8.2.9.2.1.2).
> +# This event type is reported via one of the event logs
> +# specified via the log parameter.
>  #
> -# @path: CXL type 3 device canonical QOM path
> +# Since: 8.1
> +##
> +{ 'command': 'cxl-inject-dram-event',
> +  'data': 'CXLDRAMEvent' }
> +
> +##
> +# @CXLMemModuleEvent:
>  #
> -# @log: Event Log to add the event to
> -#
> -# @flags: Event Record Flags.  See CXL r3.0 Table 8-42 Common Event
> -#     Record Format, Event Record Flags for subfield definitions.
> +# Event record for a Memory Module Event (CXL r3.0 8.2.9.2.1.3).
>  #
>  # @type: Device Event Type.  See CXL r3.0 Table 8-45 Memory Module
>  #     Event Record for bit definitions for bit definiions.
> @@ -185,9 +200,9 @@
>  #
>  # Since: 8.1
>  ##
> -{ 'command': 'cxl-inject-memory-module-event',
> -  'data': { 'path': 'str', 'log': 'CxlEventLog', 'flags' : 'uint8',
> -            'type': 'uint8', 'health-status': 'uint8',
> +{ 'struct': 'CXLMemModuleEvent',
> +  'base': 'CXLCommonEventBase',
> +  'data': { 'type': 'uint8', 'health-status': 'uint8',
>              'media-status': 'uint8', 'additional-status': 'uint8',
>              'life-used': 'uint8', 'temperature' : 'int16',
>              'dirty-shutdown-count': 'uint32',
> @@ -195,6 +210,18 @@
>              'corrected-persistent-error-count': 'uint32'
>              }}
>  
> +##
> +# @cxl-inject-memory-module-event:
> +#
> +# Inject an event record for a Memory Module Event (CXL r3.0
> +# 8.2.9.2.1.3).  This event includes a copy of the Device Health info
> +# at the time of the event.
> +#
> +# Since: 8.1
> +##
> +{ 'command': 'cxl-inject-memory-module-event',
> +  'data': 'CXLMemModuleEvent' }
> +
>  ##
>  # @cxl-inject-poison:
>  #
> -- 
> MST
> 



  reply	other threads:[~2026-02-05  6:46 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-04 19:16 [PULL 00/51] virtio,pci,pc: features, fixes Michael S. Tsirkin
2026-02-04 19:02 ` [PULL 01/51] vhost-user: ancilliary -> ancillary Michael S. Tsirkin
2026-02-04 19:02 ` [PULL 02/51] hw/cxl/cxl-mailbox-utils: Move declaration of scrub and ECS feature attributes in cmd_features_set_feature() Michael S. Tsirkin
2026-02-04 19:02 ` [PULL 03/51] hw/cxl: Add support for Maintenance command and Post Package Repair (PPR) Michael S. Tsirkin
2026-02-04 19:02 ` [PULL 04/51] hw/cxl: Add emulation for memory sparing control feature Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 05/51] qapi: cxl: Refactor CXL event injection for common commands arguments Michael S. Tsirkin
2026-02-05  6:45   ` Michael S. Tsirkin [this message]
2026-02-04 19:03 ` [PULL 06/51] hw/cxl/events: Update for rev3.2 common event record format Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 07/51] hw/cxl/events: Updates for rev3.2 general media event record Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 08/51] hw/cxl/events: Updates for rev3.2 DRAM " Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 09/51] hw/cxl/events: Updates for rev3.2 memory module " Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 10/51] pci/shpc: Do not unparent in instance_finalize() Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 11/51] hw/pci-host: Set DEVICE_CATEGORY_BRIDGE once in parent class_init() Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 12/51] intel_iommu: Add an IOMMU index for pre-translated addresses Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 13/51] intel_iommu: Support memory operations with " Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 14/51] pcie: Add a function to check if pasid privileged mode is enabled Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 15/51] pci: Block ATS requests when privileged mode is disabled Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 16/51] intel_iommu: Handle insufficient permissions during translation requests Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 17/51] intel_iommu: Minimal handling of privileged ATS request Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 18/51] intel_iommu: Add a CLI option to enable SVM Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 19/51] x86: q35: ich9: add 'wdat' property Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 20/51] acpi: add API to build WDAT instructions Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 21/51] x86: q35: generate WDAT ACPI table Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 22/51] tests: x86: q35: acpi: add WDAT table test case Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 23/51] tests: acpi: update expected WDAT blob Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 24/51] virtio/vhost: don't consider non-MAP_SHARED regions public Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 25/51] vdpa: fix vhost-vdpa suspended state not be shared Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 26/51] acpi/ghes: Automate data block cleanup in acpi_ghes_memory_errors() Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 27/51] acpi/ghes: Abort in acpi_ghes_memory_errors() if necessary Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 28/51] target/arm/kvm: Exit on error from acpi_ghes_memory_errors() Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 29/51] acpi/ghes: Bail early on error from get_ghes_source_offsets() Michael S. Tsirkin
2026-02-04 19:03 ` [PULL 30/51] acpi/ghes: Use error_fatal in acpi_ghes_memory_errors() Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 31/51] vhost: accept indirect descriptors in shadow virtqueue Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 32/51] virtio-dmabuf: Ensure UUID persistence for hash table insertion Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 33/51] virtio: Fix crash when sriov-pf is set for non-PCI-Express device Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 34/51] pcie_sriov: Fix PCI_SRIOV_* accesses in pcie_sriov_pf_exit() Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 35/51] q35: Fix migration of SMRAM state Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 36/51] standard-headers: Update virtio_spi.h from Linux v6.18-rc3 Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 37/51] virtio-spi: Add vhost-user-spi device support Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 38/51] hw/virtio/virtio-crypto: verify asym request size Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 39/51] cryptodev-builtin: Limit the maximum size Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 40/51] MAINTAINERS: Update VIOT maintainer Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 41/51] virtio-gpu-virgl: correct parent for blob memory region Michael S. Tsirkin
2026-02-11 20:46   ` Dmitry Osipenko
2026-02-11 21:32     ` Joelle van Dyne
2026-02-11 22:53       ` Dmitry Osipenko
2026-02-12  7:01         ` Michael S. Tsirkin
2026-02-12 11:00           ` Dmitry Osipenko
2026-02-12 23:57             ` Joelle van Dyne
2026-02-13  0:01               ` Michael S. Tsirkin
2026-02-13 13:07                 ` Dmitry Osipenko
2026-02-13 13:27               ` Dmitry Osipenko
2026-02-13 13:30               ` Michael Tokarev
2026-02-13 14:04                 ` Dmitry Osipenko
2026-02-13 14:16                   ` Dmitry Osipenko
2026-02-12  6:29     ` Michael S. Tsirkin
2026-02-13 14:29   ` Peter Maydell
2026-02-13 16:18     ` Alex Bennée
2026-02-13 19:48       ` Joelle van Dyne
2026-02-16 15:31         ` Dmitry Osipenko
2026-02-04 19:04 ` [PULL 42/51] virtio-pmem: ignore empty queue notifications Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 43/51] virtio-gpu: fix error handling in virgl_cmd_resource_create_blob Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 44/51] virtio-gpu: use consistent error checking for virtio_gpu_create_mapping_iov Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 45/51] vhost-user.rst: specify vhost-user back-end action on GET_VRING_BASE Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 46/51] vhost-user: introduce protocol feature for skip drain " Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 47/51] vmstate: introduce VMSTATE_VBUFFER_UINT64 Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 48/51] vhost: add vmstate for inflight region with inner buffer Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 49/51] vhost-user-blk: support inter-host inflight migration Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 50/51] hw/cxl: Check for overflow on santize media as both base and offset 64bit Michael S. Tsirkin
2026-02-04 19:04 ` [PULL 51/51] hw/cxl: Take into account how many media operations are requested for param check Michael S. Tsirkin
2026-02-05  6:31 ` [PULL 00/51] virtio,pci,pc: features, fixes Michael S. Tsirkin
2026-02-05  6:51 ` Michael S. Tsirkin
2026-02-05  7:00   ` Michael S. Tsirkin
2026-02-05  9:39     ` Igor Mammedov
2026-02-05  9:56   ` Peter Maydell
2026-02-05 12:08 ` [PULL v2 00/38] " Michael S. Tsirkin
2026-02-05 16:02   ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260205014516-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=armbru@redhat.com \
    --cc=eblake@redhat.com \
    --cc=fan.ni@samsung.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=shiju.jose@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.