Anthony Liguori
2005-Mar-09 20:28 UTC
[Xen-devel] [PATCH] Cleanup error paths in xen/common/dom0_ops.c
I''ve written an automated dom0_op generator in an effort to test the libxc rewrite. The tool is still awfully primative and the rewrite is not yet complete but I wanted to post fixes for some bugs the tool found so I wouldn''t forget. The first makes sure that builddomain returns ESRCH when passed an invalid domain ID (this is what every other dom0_op returns). The second makes sure that unpausedomain returns EINVAL if you try to unpause yourself. This is the behavior of pausedomain and is a bit more sane than just returning 0. I''ve tested this on today''s unstable (able to boot and create domains with Xend just as before). Regards, Anthony Liguori Signed-off-by: Anthony Liguori (aliguori@us.ibm.com)