]> 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>
Tue, 14 Nov 2023 13:00:20 +0000 (14:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 14 Nov 2023 13:00:20 +0000 (14:00 +0100)
commit4bd2c8c8b9dc1ce823a93d48e431deeb38fa1c50
treec570ccc973549fde0e5093e1dfb91c8d6b880114
parent011d20a69cf453c968d9f7d9b326bc4ae0870e9d
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>
master commit: 23eb39acf011ef9bbe02ed4619c55f208fbcd39b
master date: 2023-10-31 16:10:14 +0000
xen/arch/x86/mm/mem_sharing.c