From: "Jan Beulich" Subject: Re: [PATCH for-4.5 1/2] xen/domctl: Fix getdomaininfo() of a domain without vcpus Date: Tue, 21 Oct 2014 09:35:59 +0100 Message-ID: <5446370F02000078000408F1@mail.emea.novell.com> References: <1413822093-1621-1-git-send-email-andrew.cooper3@citrix.com> <1413822093-1621-2-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1413822093-1621-2-git-send-email-andrew.cooper3@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: IanJackson , Keir Fraser , Wei Liu , Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 20.10.14 at 18:21, wrote: > --- a/xen/common/domctl.c > +++ b/xen/common/domctl.c > @@ -156,6 +156,7 @@ void getdomaininfo(struct domain *d, struct xen_domctl_getdomaininfo *info) > struct vcpu_runstate_info runstate; > > info->domain = d->domain_id; > + info->max_vcpu_id = XEN_INVALID_MAX_VCPU_ID; > info->nr_online_vcpus = 0; > info->ssidref = 0; Afaict this will convert the so far random allocation failure in the tool stack to a guaranteed one. Hence I think that despite them touching hypervisor and tools, the patches should be folded to not cause an apparent regression between applying the first and second to people who are lucky in not hitting the allocation failure right now. In any event the hypervisor side is Acked-by: Jan Beulich Jan