From: Masaki Kanno Subject: Re: [rfc 2/2] xend: Use AUTO_PHP_SLOT_STR=0xff rather than0x0 for auto slot allocation Date: Fri, 13 Mar 2009 18:01:08 +0900 Message-ID: References: <20090313070734.348651099@vergenet.net> <20090313071336.753119578@vergenet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090313071336.753119578@vergenet.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Simon Horman , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 Best regards, Kan