mem: mark pages as not accessed when freeing memory
authorLi Feng <fengli@smartx.com>
Fri, 24 Apr 2020 10:42:05 +0000 (18:42 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 24 Apr 2020 17:36:17 +0000 (19:36 +0200)
commit76e91e3f14fc13f31608167d698682790be45cba
treedbbca9ad3074634d2e2ff51b83843cf36dc0cbb2
parenta9aa14d9aa755472ab4e2aae62524feed7e8731f
mem: mark pages as not accessed when freeing memory

Commit 8a4baf06c17a ("mem: mark pages as not accessed when reserving VA")
has mapped the initialized memory with PROT_NONE, and when it's unmapped,
eal_memalloc.c should remmap the anonymous memory with PROT_NONE too.

Fixes: 8a4baf06c17a ("mem: mark pages as not accessed when reserving VA")
Cc: stable@dpdk.org
Signed-off-by: Li Feng <fengli@smartx.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linux/eal_memalloc.c