Jonathan Cameron <jonathan.came...@huawei.com> writes:

> From: Ira Weiny <ira.we...@intel.com>
>
> To facilitate testing provide a QMP command to inject a general media
> event.  The event can be added to the log specified.
>
> Signed-off-by: Ira Weiny <ira.we...@intel.com>
> Reviewed-by: Fan Ni <fan...@samsung.com>
> Acked-by: Markus Armbruster <arm...@redhat.com>
> Signed-off-by: Jonathan Cameron <jonathan.came...@huawei.com>
> ---
>  qapi/cxl.json               |  74 ++++++++++++++++++++++++
>  include/hw/cxl/cxl_events.h |  20 +++++++
>  hw/mem/cxl_type3.c          | 111 ++++++++++++++++++++++++++++++++++++
>  hw/mem/cxl_type3_stubs.c    |  10 ++++
>  4 files changed, 215 insertions(+)
>
> diff --git a/qapi/cxl.json b/qapi/cxl.json
> index ed1c7eea3a..7f0b432767 100644
> --- a/qapi/cxl.json
> +++ b/qapi/cxl.json

[...]

> +##
> +# @cxl-inject-general-media-event:
> +#
> +# 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
> +#
> +# @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.
> +#
> +# @dpa: Device Physical Address (relative to @path device).  Note
> +#     lower bits include some flags. See CXL r3.0 Table 8-43 General

Two spaces between sentences for consistency, please.

> +#     Media Event Record, Physical Address.
> +#

[...]


Reply via email to