]> git.proxmox.com Git - mirror_qemu.git/commit
xen: Don't pass MemoryListener around by value
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 18 Jul 2023 10:10:57 +0000 (11:10 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Tue, 1 Aug 2023 09:22:33 +0000 (10:22 +0100)
commitbcb40db010517120dfffccc77cef9e4fcd3235fa
tree3bf6126fd98bab4626d7cb814dc3ba5e74c7f525
parentf4f71363fcdb1092ff64d2bba6f9af39570c2f2b
xen: Don't pass MemoryListener around by value

Coverity points out (CID 15131061513107) that MemoryListener is a
192 byte struct which we are passing around by value.  Switch to
passing a const pointer into xen_register_ioreq() and then to
xen_do_ioreq_register().  We can also make the file-scope
MemoryListener variables const, since nothing changes them.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230718101057.1110979-1-peter.maydell@linaro.org>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
hw/arm/xen_arm.c
hw/i386/xen/xen-hvm.c
hw/xen/xen-hvm-common.c
include/hw/xen/xen-hvm-common.h