[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH for-4.5 0/2] Fix `xl vcpu-list` with partially created domains



This series fixes a bug to do with listing the vcpus of a domain lacking any.
This can occur if there was an error constructing a domain, and it wasn't
successfully cleaned up.

This series fixes two problems.  First that getdomaininfo() in Xen previously
had no way of expressing "this domain has no vcpus", and second that libxl
would blindly allocate memory with an uninitialised value in the case that it
encountered a domain in this state.

This bug was discovered against Xen 4.4, but the bug is present in -unstable
as well.  As such, I flag it for backport ASAP.

Andrew Cooper (2):
  xen/domctl: Fix getdomaininfo() of a domain without vcpus
  tools/[lib]xl: Fix `xl vcpu-list` when domains without vcpus exist

 tools/libxl/libxl.c         |    8 +++++++-
 tools/libxl/xl_cmdimpl.c    |    4 +---
 xen/common/domctl.c         |    1 +
 xen/include/public/domctl.h |    1 +
 4 files changed, 10 insertions(+), 4 deletions(-)

-- 
1.7.10.4


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.