summary refs log tree commit diff stats
path: root/include/hw/hyperv/dynmem-proto.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hv-balloon: define dm_hot_add_with_region to avoid Coverity warningMaciej S. Szmigiero2024-03-081-1/+8
| | | | | | | | | | | | | | | | | | | 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>
* include/hw/hyperv/dynmem-proto.h: spelling fix: nunber, atleastMichael Tokarev2023-11-151-3/+3
| | | | | | Fixes: 4f80cd2f033e "Add Hyper-V Dynamic Memory Protocol definitions" Acked-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
* Add Hyper-V Dynamic Memory Protocol definitionsMaciej S. Szmigiero2023-11-061-0/+423
This commit adds Hyper-V Dynamic Memory Protocol definitions, taken from hv_balloon Linux kernel driver, adapted to the QEMU coding style and definitions. Acked-by: David Hildenbrand <david@redhat.com> Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>