WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] [PATCH] add the definition of __cacheline_aligned a

To: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [PATCH] add the definition of __cacheline_aligned and its variants (was Re: [PATCH] allow vcpu to move between pcpus)
From: Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Date: Mon, 3 Jul 2006 14:45:08 +0200
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 03 Jul 2006 05:42:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060703122824.GG10979%yamahata@xxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200606220914.02813.Tristan.Gingold@xxxxxxxx> <200607031401.26624.Tristan.Gingold@xxxxxxxx> <20060703122824.GG10979%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.5
Le Lundi 03 Juillet 2006 14:28, Isaku Yamahata a écrit :
> On Mon, Jul 03, 2006 at 02:01:26PM +0200, Tristan Gingold wrote:
> > Le Lundi 03 Juillet 2006 12:27, Isaku Yamahata a écrit :
> > > On Mon, Jul 03, 2006 at 10:34:33AM +0200, Tristan Gingold wrote:
> > > > Also, note that __cacheline_aligned_in_smp is defined as nothing on
> > > > xen/ia64. You'd better either not to use it or define it.
> >
> > BTW, why not putting last_vcpu within struct arch_vcpu ?
> > "vcpu->domain->arch.last_vcpu[smp_processor_id()] " looks a little bit
> > strange...
>
> I don't understand what you're sugessting.
> The rid region is per-domain resource with the current implementation,
> so it is natural to put last_vcpu[] into struct arch_domain.
>
> If what you suggest is something like
> struct arch_vcpu
>       struct last_vcpu last_vcpu[NR_CPUS]
> and
> vcpu->last_vcpu[smp_processor_id()],
> then it doesn't work correctly.
> Please consider the case that two vcpus of a same domain are
> running on a same physical cpu.
Sorry I was not clear enough.

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.

Tristan.


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>