From: Keir Fraser Subject: Re: Question about vcpu_avail Date: Tue, 24 Nov 2009 15:20:52 +0000 Message-ID: References: <4B0BF6E0.4070707@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4B0BF6E0.4070707@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Michal Novotny , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 24/11/2009 15:08, "Michal Novotny" wrote: >> Yeah, I think you get it. In your example: if the user specifies maxvcpus=4, >> vcpus=2 then xm turns that into vcpus=4, vcpu_avail=3 before sending it to >> xend. >> > Right, so, you mean that I should implement it into `xm` command itself > and not XenD ? Well, what about people using eg. libvirt with upstream > Xen? This way it should not be working since XM is not used... right? If you add new config fields to xend, then libvirt callers are going to need to be modified to expose them to users, aren't they (e.g., in a GUI or whatever)? If the callers need modifying anyway, then they can just be modified in a similar way to what I propose for xm, and deconstruct into the config primitives that xend already understands. -- Keir