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] translate_domain_pte must handle ED bit

To: "Isaku Yamahata" <yamahata@xxxxxxxxxxxxx>, "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Subject: RE: [Xen-ia64-devel] [PATCH] translate_domain_pte must handle ED bit
From: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Date: Wed, 22 Feb 2006 15:01:04 -0800
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 22 Feb 2006 23:01:16 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcY2hRvRb0EG/53VRtaz5DGCacsufwBW1uPQ
Thread-topic: [Xen-ia64-devel] [PATCH] translate_domain_pte must handle ED bit
> On Mon, Feb 20, 2006 at 10:54:41PM +0800, Tian, Kevin wrote:
> > >From: Isaku Yamahata
> > >Sent: 2006年2月20日 16:32
> > >
> > >translate_domain_pte() must handle ED bit explicitly.
> > >This case can occur because of vcpu_itc_d().
> > >
> > >--
> > >Yamahata
> > 
> > Seems a bug, however do you know why it only jumps out now? 
> Seems PAGE_ED is likely on in lookup_domain_mpa...
> 
> Perhaps vcpu->arch.dtlb cache hit in vcpu_translate() is very rare
> because of tlb cache and VHPT. 
> To hit this bug it would be necessary to run a huge amount of
> guest domains competing tlb cache and VHPT entries.
> It seems that no one does.

I know that definitely the vcpu->arch.dtlb cache gets used,
at least when I run my compile-Linux-many-times-in-both-
domain0-and-domU test.  It is rare though.  You may want to
add a printk to see for yourself.
 
> > BTW, bit[53-63] are ignored bits per 4.1.1.5 of SDM2, and 
> then you can just ignore them instead of BUG there. ;-)
> 
> Hmm, the current code seems to assume just simply that bit[53-63] and
> ED bit[52] can be used for address machine page frame number.
> Some clean up might be needed.

FYI, I was hoping that some day we might be able to use some ignored
bits to indicate the contiguous block size that the page belongs
to.  E.g. even if the page is 16K, if it is part of an aligned
contiguous block of 64K where phys==machine, the larger block size
could be put into the TLB.  This obviously was never implemented
(and could cause extra flushing overhead if the p2m mapping changed
for any of the "sub pages" so may not even be advantageous).

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