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: Simon Horman <horms@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [rfc 2/2] xend: Use AUTO_PHP_SLOT_STR=0xff rather than0x0 for auto slot allocation
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Fri, 13 Mar 2009 18:01:08 +0900
Cc:
Delivery-date: Fri, 13 Mar 2009 02:01:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090313071336.753119578@xxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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



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