Files
xen/tools/python
Matthew Fioravante d43861bd94 libxl: make devid a type so it is initialized properly
Previously device ids in libxl were treated as integers meaning they
were being initialized to 0, which is a valid device id. This patch
makes devid its own type in libxl and initializes it to -1, an invalid
value.

This fixes a bug where if you try to do a xl DEV-attach multiple
time it will continuously try to reattach device 0 instead of
generating a new device id.

Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>

xen-unstable changeset: 25988:8a073eb1e849
Backport-requested-by: Ian Campbell <Ian.Campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
2012-10-26 16:42:57 +01:00
..
2012-08-17 14:46:49 +01:00
2009-08-16 08:43:50 +01:00
2012-07-25 17:39:19 +01:00

The file test.py here is from the Zope project, and is Copyright (c) 2001,
2002 Zope Corporation and Contributors.  This file is released under the Zope
Public License, version 2.0, a copy of which is in the file ZPL-2.0.