Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
---
 Osstest/JobDB/Executive.pm |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Osstest/JobDB/Executive.pm b/Osstest/JobDB/Executive.pm
index 6ba3d37..2572f5f 100644
--- a/Osstest/JobDB/Executive.pm
+++ b/Osstest/JobDB/Executive.pm
@@ -125,6 +125,14 @@ END
 
 sub host_check_allocated ($$) { #method
     my ($jd, $ho) = @_;
+
+    if ($ho->{Host}) {
+       # This is a nested guest; check allocation of the parent host.
+       # We don't attempt to set Shared, SharedMaybeOthers, etc.
+       # (since nested hosts aren't shared between jobs).
+       return $jd->host_check_allocated($ho->{Host});
+    }
+
     $ho->{Shared}= resource_check_allocated('host', $ho->{Name});
     $ho->{SharedMaybeOthers}=
         $ho->{Shared} &&
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to