qemu/include/hw/hyperv
Maciej S. Szmigiero 546987284a hv-balloon: define dm_hot_add_with_region to avoid Coverity warning
Since the presence of a hot add memory region is optional in hot add
request message it wasn't part of this message declaration
(struct dm_hot_add).

Instead, the code allocated such enlarged message by simply adding the
necessary size for this extra field to the size of basic hot add message
struct.

However, Coverity considers accessing this extra member to be
an out-of-bounds access, even thought the memory is actually there.

Fix this by adding an extended variant of this message that explicitly has
an additional union dm_mem_page_range at its end.

CID: #1523903
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
2024-03-08 14:18:56 +01:00
..
dynmem-proto.h hv-balloon: define dm_hot_add_with_region to avoid Coverity warning 2024-03-08 14:18:56 +01:00
hv-balloon.h Add Hyper-V Dynamic Memory Protocol driver (hv-balloon) base 2023-11-06 14:08:10 +01:00
hyperv-proto.h hyperv: Add definitions for syndbg 2022-04-06 14:31:56 +02:00
hyperv.h hyperv: Add support to process syndbg commands 2022-04-06 14:31:56 +02:00
vmbus-bridge.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
vmbus-proto.h vmbus: add vmbus protocol definitions 2020-06-10 12:09:39 -04:00
vmbus.h include/: spelling fixes 2023-09-08 13:08:52 +03:00