|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xend: pass-through: report attach errors
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1244108259 -3600
# Node ID f569292aacc59dbbd89b3d28248fcc0e1275e4f1
# Parent 76afaac7df865a42c9cc6496f700c0ae84659e7d
xend: pass-through: report attach errors from device model
Cc: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Cc: Edwin Zhai <edwin.zhai@xxxxxxxxx>
Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
---
tools/python/xen/xend/XendDomainInfo.py | 6 ++++++
1 files changed, 6 insertions(+)
diff -r 76afaac7df86 -r f569292aacc5 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Thu Jun 04 10:36:36 2009 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py Thu Jun 04 10:37:39 2009 +0100
@@ -752,6 +752,12 @@ class XendDomainInfo:
vslot = xstransact.Read("/local/domain/0/device-model/%i/parameter"
% self.getDomid())
+ try:
+ vslot_int = int(vslot, 16)
+ except ValueError:
+ raise VmError(("Cannot pass-through PCI function '%s'. " +
+ "Device model reported an error: %s") %
+ (bdf_str, vslot))
else:
vslot = new_dev['vslot']
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] xend: pass-through: report attach errors from device model,
Xen patchbot-unstable <=
|
|
|
|
|