Skip to content

Commit

Permalink
hw/cxl/mbox: Split mailbox command payload into separate input and ou…
Browse files Browse the repository at this point in the history
…tput

New CCI types that will be supported shortly do not have a single buffer
used in both directions. As such, split it up. To avoid the complexities
of implementing all commands to handle potential aliasing, take a copy of
the input before use.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Message-Id: <20231023160806.13206-3-Jonathan.Cameron@huawei.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
jic23 authored and mstsirkin committed Nov 7, 2023
1 parent a7bb53b commit 6f59274
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 99 deletions.
2 changes: 1 addition & 1 deletion hw/cxl/cxl-events.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ bool cxl_event_insert(CXLDeviceState *cxlds, CXLEventLogType log_type,

CXLRetCode cxl_event_get_records(CXLDeviceState *cxlds, CXLGetEventPayload *pl,
uint8_t log_type, int max_recs,
uint16_t *len)
size_t *len)
{
CXLEventLog *log;
CXLEvent *entry;
Expand Down

0 comments on commit 6f59274

Please sign in to comment.