[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] more tlb flush when vcpu migrates (was Re: [Xen-ia64-devel] [PATCH] add the definition of __cacheline_aligned and its variants (was Re: [PATCH] allow vcpu to move between pcpus))
On Mon, Jul 03, 2006 at 03:19:39PM +0200, Tristan Gingold wrote: > Le Lundi 03 Juillet 2006 15:00, Isaku Yamahata a écrit : > > On Mon, Jul 03, 2006 at 02:45:08PM +0200, Tristan Gingold wrote: > > > Why not adding the 'int last_cpu' field in the struct arch_vcpu ? > > > If two vcpus are running on the same cpu, the VHPT is always up to date. > > > > Since there is no gurantee that both two vcpu map > > (rid, virtual address) to a same pseudo physical address, > > VHPT and mTLB must be flushed everytime vcpu is switched. > > If they aren't flushed, it is highly likey that the per cpu variable > > area will be broken. > You are correct about percpu area. Probably now I understand whan you were seeing. Please see the attached patch. -- yamahata Attachment:
10570:a55e5195e5f7_more_vcpu_migration.patch _______________________________________________ Xen-ia64-devel mailing list Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ia64-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |