]> xenbits.xensource.com Git - xen.git/commit
x86/mem_sharing: add missing m2p entry when mapping shared_info page
authorTamas K Lengyel <tamas@tklengyel.com>
Wed, 18 Oct 2023 08:02:42 +0000 (04:02 -0400)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 31 Oct 2023 16:10:14 +0000 (16:10 +0000)
commit23eb39acf011ef9bbe02ed4619c55f208fbcd39b
tree0a5ca4e4bc8e6fe03b916bd3b9c0cfec791f6ec6
parentcfff187ed5f2068f48a3d44f0560b1721902a276
x86/mem_sharing: add missing m2p entry when mapping shared_info page

When mapping in the shared_info page to a fork the m2p entry wasn't set
resulting in the shared_info being reset even when the fork reset was called
with only reset_state and not reset_memory. This results in an extra
unnecessary TLB flush.

Fixes: 1a0000ac775 ("mem_sharing: map shared_info page to same gfn during fork")
Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm/mem_sharing.c