hw/cxl/mbox: Pull the payload out of struct cxl_cmd and make instances constant
commita7bb53b1eee6836d29003a8ffbd2c2c4c55a40c2
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Oct 2023 16:07:50 +0000 (23 17:07 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Nov 2023 08:39:11 +0000 (7 03:39 -0500)
tree3280650cd87673991a63b8a344bda66ea65ecd5d
parent45234c2dd2920f16f768bda1ec8353bda8c5a929
hw/cxl/mbox: Pull the payload out of struct cxl_cmd and make instances constant

Putting the pointer in the structure for command handling puts a single
variable element inside an otherwise constant structure. Move it out as
a directly passed variable and take the cxl_cmd structures constant.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Message-Id: <20231023160806.13206-2-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/cxl/cxl-mailbox-utils.c
include/hw/cxl/cxl_device.h