From: David Vrabel Date: Fri, 19 Jul 2013 14:51:59 +0000 (+0100) Subject: xen/p2m: avoid unneccesary TLB flush in m2p_remove_override() X-Git-Tag: v3.12-rc1~144^2~16 X-Git-Url: http://pileus.org/git/?p=~andy%2Flinux;a=commitdiff_plain;h=65a45fa2f640f72757ef00f2bc83f9654d65a62b 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 Cc: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk Reviewed-by: Stefano Stabellini --- diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c index 95fb2aa5927..74672eeac88 100644 --- a/arch/x86/xen/p2m.c +++ b/arch/x86/xen/p2m.c @@ -1003,7 +1003,6 @@ int m2p_remove_override(struct page *page, set_pte_at(&init_mm, address, ptep, pfn_pte(pfn, PAGE_KERNEL)); - __flush_tlb_single(address); kmap_op->host_addr = 0; } }