[PATCH v3] vhost: exclude VM hugepages from coredumps
Maxime Coquelin
maxime.coquelin at redhat.com
Fri Feb 3 15:50:13 CET 2023
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 <mkp at 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(+)
>
Applied to dpdk-next-virtio/main.
Thanks,
Maxime
More information about the dev
mailing list