]> git.proxmox.com Git - mirror_qemu.git/commit
hw/cxl/mbox: Split mailbox command payload into separate input and output
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Oct 2023 16:07:51 +0000 (17:07 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Nov 2023 08:39:11 +0000 (03:39 -0500)
commit6f59274e937576fbb2623b687aa2556e115a712f
tree3c9269ea81ae21b42dd6d4d2dbc8e05f44eea815
parenta7bb53b1eee6836d29003a8ffbd2c2c4c55a40c2
hw/cxl/mbox: Split mailbox command payload into separate input and output

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>
hw/cxl/cxl-events.c
hw/cxl/cxl-mailbox-utils.c
include/hw/cxl/cxl_device.h