Skip to content

Commit

Permalink
xen/p2m: avoid unneccesary TLB flush in m2p_remove_override()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Vrabel authored and Konrad Rzeszutek Wilk committed Aug 9, 2013
1 parent 3eeef8f commit 65a45fa
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/x86/xen/p2m.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 65a45fa

Please sign in to comment.