xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* No need to flush TLB in do_mmu_update ?
@ 2013-05-16 23:57 Xinxin Jin
  2013-05-17  5:17 ` Keir Fraser
  0 siblings, 1 reply; 2+ messages in thread
From: Xinxin Jin @ 2013-05-16 23:57 UTC (permalink / raw)
  To: Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 313 bytes --]

Hi, I read the code of the hypercall handler do_mmu_update(), which updates
guests' page table. I thought after update it should flush the old mapping
from relative TLB entry. However I didn't find any TLB flush operations in
this function. Could anyone explain what is the reason behind ? Thanks a
lot !

Xinxin

[-- Attachment #1.2: Type: text/html, Size: 458 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: No need to flush TLB in do_mmu_update ?
  2013-05-16 23:57 No need to flush TLB in do_mmu_update ? Xinxin Jin
@ 2013-05-17  5:17 ` Keir Fraser
  0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2013-05-17  5:17 UTC (permalink / raw)
  To: Xinxin Jin, Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 657 bytes --]

It is up to the guest to request the TLB flushes that it needs. Xen performs
the flushes it needs only for its own safety.


On 17/05/2013 00:57, "Xinxin Jin" <xinxinjin89@gmail.com> wrote:

> Hi, I read the code of the hypercall handler do_mmu_update(), which updates
> guests' page table. I thought after update it should flush the old mapping
> from relative TLB entry. However I didn't find any TLB flush operations in
> this function. Could anyone explain what is the reason behind ? Thanks a lot !
> 
> Xinxin
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel


[-- Attachment #1.2: Type: text/html, Size: 1419 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-17  5:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-16 23:57 No need to flush TLB in do_mmu_update ? Xinxin Jin
2013-05-17  5:17 ` Keir Fraser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).