[PATCH v3] vhost: exclude VM hugepages from coredumps
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Dec 20 13:43:02 CET 2022
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 <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(+)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list