flush_tlb_mask and grant_table on ia64
Quoted 9 lines
From: [email protected] [mailto:[email protected]] On Behalf Of Tristan Gingold
Sent: 2006?4?21? 15:24
To: [email protected]; [email protected]
Subject: [Xen-ia64-devel]flush_tlb_maskandgrant_tableon ia64Hi,
Quoted 8 lines
on IA64 flushing the whole TLB is very expensive: this is a cpu tlb flush and clearing 16MB of memory (virtual tlb).
However, flushing an address range is rather cheap. Flushing an address range on every processors is also cheap (no IPI).Unfortunatly Xen common code flushes the whole TLB after unmapping grant reference.
Agreed
Quoted 8 lines
Currently, this is not done on IA64 because
domain_dirty_cpumaskis never set (bug!).We can flush TLB by range within
destroy_grant_host_mapping. But then we need to disable theflush_tlb_maskcall.What is the best solution?
It depends on the coverage of VHPT and coverage of purged page. Linux kernel also use this,
If coverage of purged page is less than a fixed value, flush TLB by range.
If coverage of purged page is larger than a fixed value, Flush the whole TLB.
Quoted 10 lines
Thank you for comments,
Tristan._______________________________________________
Xen-ia64-devel mailing list
[email protected]
http://lists.xensource.com/xen-ia64-devel
Quoted 23 lines · Anthony
From: [email protected]
Quoted 8 lines
[mailto:[email protected]] On Behalf Of Tristan Gingold
Sent: 2006?4?21? 15:24
To: [email protected]; [email protected]
Subject: [Xen-ia64-devel]flush_tlb_maskandgrant_tableon ia64Hi,
Quoted 7 lines
on IA64 flushing the whole TLB is very expensive: this is a cpu tlb flush and clearing 16MB of memory (virtual tlb).
However, flushing an address range is rather cheap. Flushing an address range on every processors is also cheap (no IPI).Unfortunatly Xen common code flushes the whole TLB after unmapping grant reference.
Agreed
Quoted 3 lines
Currently, this is not done on IA64 because
domain_dirty_cpumaskis never set (bug!).
Quoted 6 lines
Quoted 4 lines
We can flush TLB by range within
destroy_grant_host_mapping. But then we need to disable theflush_tlb_maskcall.What is the best solution?
It depends on the coverage of VHPT and coverage of purged page.
From my point of view, the problem is not the number of frames to be purge. I suppose only a few pages are unmapped per unmap_grant_ref call (although I may be wrong here).
From my point of view the problem is how to make Xen common code more arch neutral.
Tristan.
Quoted 29 lines · Tristan Gingold
Quoted 28 lines · Anthony
From: [email protected]
Quoted 8 lines
[mailto:[email protected]] On Behalf Of Tristan Gingold
Sent: 2006?4?21? 15:24
To: [email protected]; [email protected]
Subject: [Xen-ia64-devel]flush_tlb_maskandgrant_tableon ia64Hi,
Quoted 7 lines
on IA64 flushing the whole TLB is very expensive: this is a cpu tlb flush and clearing 16MB of memory (virtual tlb).
However, flushing an address range is rather cheap. Flushing an address range on every processors is also cheap (no IPI).Unfortunatly Xen common code flushes the whole TLB after unmapping grant reference.
Agreed
Quoted 7 lines
Currently, this is not done on IA64 because
domain_dirty_cpumaskis never set (bug!).We can flush TLB by range within
destroy_grant_host_mapping. But then we need to disable theflush_tlb_maskcall.What is the best solution?
Quoted 7 lines
Quoted 1 line
It depends on the coverage of VHPT and coverage of purged page.
From my point of view, the problem is not the number of frames to be purge. I suppose only a few pages are unmapped per
unmap_grant_refcall (although I may be wrong here).From my point of view the problem is how to make Xen common code more arch neutral.
I think the obvious solution would be to provide more information to the arch code, e.g.
flush_grant_ref(gnttab_unmap_grant_ref_t *ref)
or maybe
flush_tlb_range(ulong maddr, ulong len)
x86 could ignore this extra data and simply flush the whole TLB as it does now.
Signature · 2 lines
Hollis Blanchard IBM Linux Technology Center
Quoted 39 lines · Hollis Blanchard
Quoted 29 lines · Tristan Gingold
Quoted 28 lines · Anthony
From: [email protected]
Quoted 8 lines
[mailto:[email protected]] On Behalf Of Tristan Gingold
Sent: 2006?4?21? 15:24
To: [email protected]; [email protected]
Subject: [Xen-ia64-devel]flush_tlb_maskandgrant_tableon ia64Hi,
Quoted 7 lines
on IA64 flushing the whole TLB is very expensive: this is a cpu tlb flush and clearing 16MB of memory (virtual tlb). However, flushing an address range is rather cheap. Flushing an address range on every processors is also cheap (no IPI).
Unfortunatly Xen common code flushes the whole TLB after unmapping grant reference.
Agreed
Quoted 7 lines
Currently, this is not done on IA64 because
domain_dirty_cpumaskis never set (bug!).We can flush TLB by range within
destroy_grant_host_mapping. But then we need to disable theflush_tlb_maskcall.What is the best solution?
Quoted 8 lines
Quoted 1 line
It depends on the coverage of VHPT and coverage of purged page.
From my point of view, the problem is not the number of frames to be purge. I suppose only a few pages are unmapped per
unmap_grant_refcall (although I may be wrong here).From my point of view the problem is how to make Xen common code more arch neutral.
Quoted 8 lines
I think the obvious solution would be to provide more information to the arch code, e.g.
flush_grant_ref(gnttab_unmap_grant_ref_t *ref)
or maybe
flush_tlb_range(ulong maddr, ulong len)x86 could ignore this extra data and simply flush the whole TLB as it does now.
Yes, I am going this way.
However this is not so simple: we want to call flush_tlb_range for every page but flush_tlb_all only once...
Tristan.