xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [help]: VPID tagged TLBs question.
@ 2012-04-26  1:07 Mukesh Rathor
  2012-04-26  7:23 ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Mukesh Rathor @ 2012-04-26  1:07 UTC (permalink / raw)
  To: Xen-devel@lists.xensource.com, Keir Fraser, Ian Campbell


Hi, 

(Assume VPID is available and enabled.)

I'm trying to figure the TLB stuff with VPIDs. I understand from the
poorly written chapter in the intel manual that if an HVM vcpu is running
then only the TLBs tagged with the vcpu.VPID will be used. If xen
or a PV guest is running, then VPID 0 TLBs are what will be used. 

Now I understand the hvm_asid_flush_vcpu upon new guest cr3, will jsut
create a new asid/vpid, so the older vcpu.vpid tlb entries will just not
be used.

However, I don't understand the use of hvm_asid_flush_core which
it appears will cause all HVM vcpu's to get new vpid/asid, hence, discard
all previously used VPID tagged TLBs. In particular, consider a PV
guest:

write_ptbase -> write_cr3 -> hvm_flush_guest_tlbs -> hvm_asid_flush_core(). 

Since the PV guest is only using VPID 0 tagged TLBs, why do we need to
flush all TLBs for all HVM guests? 

thanks
Mukesh

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

end of thread, other threads:[~2012-04-28  5:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-26  1:07 [help]: VPID tagged TLBs question Mukesh Rathor
2012-04-26  7:23 ` Keir Fraser
2012-04-28  1:25   ` Mukesh Rathor
2012-04-28  5:45     ` 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).