> Date: Thu, 14 Feb 2013 12:10:32 -0500
> From: Andrew Hamilton <ahami...@tjhsst.edu>
> 
> gzipped tarball is attached.

Hi Andrew,

Thanks for the info.  Figured out what's wrong with the
factory-default config on you machine.  And since it is harmless and
easy to detect, figured out a workaround for the problem.  Patch
below.  Sorry it took me a while to find the time to look into this.

Cheers,

Mark


Index: config.c
===================================================================
RCS file: /cvs/src/usr.sbin/ldomctl/config.c,v
retrieving revision 1.14
diff -u -p -r1.14 config.c
--- config.c    8 Dec 2012 18:45:26 -0000       1.14
+++ config.c    26 Feb 2013 22:54:45 -0000
@@ -592,8 +592,16 @@ hvmd_init_endpoint(struct md *md, struct
        if (resource_id >= max_guest_ldcs)
                errx(1, "resource_id larger than max_guest_ldcs");
 
-       if (ldc_endpoints[resource_id])
+       if (ldc_endpoints[resource_id]) {
+               /*
+                * Some machine descriptions seem to have duplicate
+                * arcs.  Fortunately, these can be easily detected
+                * and ignored.
+                */
+               if (ldc_endpoints[resource_id]->hv_node == node)
+                       return;
                errx(1, "duplicate resource_id");
+       }
 
        endpoint = xzalloc(sizeof(*endpoint));
        endpoint->target_guest = -1;

Reply via email to