Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen/p2m: avoid unneccesary TLB flush in m2p_remove_override()

In m2p_remove_override() when removing the grant map from the kernel
mapping and replacing with a mapping to the original page, the grant
unmap will already have flushed the TLB and it is not necessary to do
it again after updating the mapping.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

authored by

David Vrabel and committed by
Konrad Rzeszutek Wilk
65a45fa2 3eeef8f7

-1
-1
arch/x86/xen/p2m.c
··· 1003 1003 1004 1004 set_pte_at(&init_mm, address, ptep, 1005 1005 pfn_pte(pfn, PAGE_KERNEL)); 1006 - __flush_tlb_single(address); 1007 1006 kmap_op->host_addr = 0; 1008 1007 } 1009 1008 }