22 messages in com.xensource.lists.xen-develRe: [Xen-devel] NetBSD port and a cou...
FromSent OnAttachments
Christian Limpach27 Jan 2004 12:59 
Kip Macy27 Jan 2004 23:43 
Ian Pratt28 Jan 2004 00:07 
Steven Hand28 Jan 2004 02:49 
Ian Pratt28 Jan 2004 03:23 
Christian Limpach28 Jan 2004 06:54 
Christian Limpach28 Jan 2004 08:22 
Steven Hand28 Jan 2004 08:37 
Keir Fraser28 Jan 2004 08:50 
Kip Macy28 Jan 2004 09:05 
Christian Limpach28 Jan 2004 09:06 
Christian Limpach28 Jan 2004 10:35 
Ian Pratt28 Jan 2004 11:03 
Kip Macy28 Jan 2004 13:28 
Andi Kleen28 Jan 2004 14:59 
Kip Macy28 Jan 2004 15:09 
Andi Kleen28 Jan 2004 15:24 
Kip Macy28 Jan 2004 15:48 
Larry McVoy28 Jan 2004 16:18 
Kip Macy28 Jan 2004 16:31 
John Szakmeister29 Jan 2004 03:13 
Thorsten Glaser12 Mar 2005 12:58 
Subject:Re: [Xen-devel] NetBSD port and a couple of remarks
From:Steven Hand (Stev@cl.cam.ac.uk)
Date:01/28/2004 08:37:43 AM
List:com.xensource.lists.xen-devel

Well not sure off hand if these problems are fixed (I had a quick scan through the 1.0 world but it seems like ancient history :-) I did notice a somewhat odd behaviour in the pinning case (dropping reference counts) but it's possible that I just misremember how it used to work..

I use the following patch: (against the xen-1.1 tar.gz) diff -pru ../../xeno-1.1.bk/xen/common/domain.c xen/common/domain.c --- ../../xeno-1.1.bk/xen/common/domain.c 2003-10-29 18:27:39.000000000 +0100 +++ xen/common/domain.c 2004-01-22 00:43:16.000000000 +0100 @@ -354,6 +378,7 @@ int final_setup_guestos(struct task_stru net_ring_t *shared_rings; net_vif_t *net_vif; int i; + struct pfn_info *page;

if ( (p->flags & PF_CONSTRUCTED) ) return -EINVAL; @@ -362,6 +387,9 @@ int final_setup_guestos(struct task_stru * mem mappings - set them up. */ phys_l2tab = meminfo->l2_pgt_addr; + page = frame_table + (phys_l2tab >> PAGE_SHIFT); + get_page_type(page); + get_page_tot(page); l2tab = map_domain_mem(phys_l2tab); memcpy(&l2tab[DOMAIN_ENTRIES_PER_L2_PAGETABLE], &idle_pg_table[DOMAIN_ENTRIES_PER_L2_PAGETABLE],

This will result in a $40000001 count and then after a switch to another table and an unpin of the initial table, the count will be 0.

Ack ; as I noted in the previous email, the dropping of ref counts in the unpin code looked suspicious.

It's all free to access, e.g. just type one of

bk clone bk://xen.bkbits.net/xeno-1.2.bk bk clone bk://xen.bkbits.net/xeno-unstable.bk

yes, except that I don't want to deal with the bitkeeper licence and figure out whether I'm allowed to use it or not.

Ok - I've put a bzball at

http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xeno-1.2.tar.bz2

cheers,

S.