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-devel

Re: [Xen-devel] [rfc 2/2] xend: Use AUTO_PHP_SLOT_STR=0xff rather than0x

To: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [rfc 2/2] xend: Use AUTO_PHP_SLOT_STR=0xff rather than0x0 for auto slot allocation
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Sat, 14 Mar 2009 08:49:43 +1100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 13 Mar 2009 14:50:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A5C9A3BA3FDD92kanno.masaki@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20090313070734.348651099@xxxxxxxxxxxx> <20090313071336.753119578@xxxxxxxxxxxx> <A5C9A3BA3FDD92kanno.masaki@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Fri, Mar 13, 2009 at 06:01:08PM +0900, Masaki Kanno wrote:
> Hi Simon,
> 
> >Index: xen-unstable.hg/tools/python/xen/util/xsconstants.py
> >===================================================================
> >--- xen-unstable.hg.orig/tools/python/xen/util/xsconstants.py        
> >2009-03-13 16
> >:55:50.000000000 +1100
> >+++ xen-unstable.hg/tools/python/xen/util/xsconstants.py     2009-03-13 16:
> 57:
> >57.000000000 +1100
> >@@ -112,3 +112,7 @@ INVALID_POLICY_PREFIX = 'INV_'
> > INVALID_SSIDREF = 0xFFFFFFFFL
> > 
> > XS_INACCESSIBLE_LABEL = '__INACCESSIBLE__'
> >+
> >+NR_PCI_DEV = 32
> >+AUTO_PHP_SLOT = NR_PCI_DEV
> >+AUTO_PHP_SLOT_STR = "%02x" % NR_PCI_DEV
> >
> 
> In xsconstants.py, constants for Xen Security Policies are defined.
> I think that the following files are better than xsconstants.py.
> 
>   - tools/python/xen/util/pci.py
>   - tools/python/xen/xend/server/DevConstants.py
>   - tools/python/xen/xend/XendConstants.py

Thanks, I was unsure of where a good place to define these constants
once would be.

-- 
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en


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