Hi Mike,
On 12/7/22 17:54, Mike Pattrick wrote:
Currently if an application wants to include shared hugepages in
coredumps in conjunction with the vhost library, the coredump will be
larger than expected and include unneeded virtual machine memory.
This patch will mark all vhost huge pages as DONTDUMP, except for some
select pages used by DPDK.
Signed-off-by: Mike Pattrick <m...@redhat.com>
---
v2:
* Removed warning on unsupported platforms
v3:
* Removed pointer warning on 32bit platforms
---
lib/vhost/iotlb.c | 5 +++++
lib/vhost/vhost.h | 12 ++++++++++++
lib/vhost/vhost_user.c | 10 ++++++++++
3 files changed, 27 insertions(+)
Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>
Thanks,
Maxime