All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] Fix xl vcpu-set to decrease amount of vCPUS without warnining.
@ 2015-03-13 20:26 Konrad Rzeszutek Wilk
  2015-03-13 20:26 ` [PATCH v2 1/5] libxl: Add ERROR_NOTFOUND for libxl_domain_info when it cannot find the domain Konrad Rzeszutek Wilk
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Konrad Rzeszutek Wilk @ 2015-03-13 20:26 UTC (permalink / raw)
  To: xen-devel, ian.jackson, stefano.stabellini, ian.campbell,
	wei.liu2

Hey,

This patchset had been floating in the past. The aim for is to allow
the user to do 'xl vcpu-set <domain-id> X' where the X can be bigger
than the amount of physical CPUs the machine has. You can do this by
launching an guest with huge amount of virtual CPUs without issues.

>From (http://lists.xenproject.org/archives/html/xen-devel/2015-02/msg00216.html):
"

Let me rehash what we had in set in stone way back in 4.4:
 - The guest config ('maxvcpus') is permitted to be greater than the pCPUs.
   Ditto for the initially allocated ('vcpus') amounts. It is also
   OK to be different - 'vcpus' < 'maxvcpus', etc.

 - If the 'vcpus' < pCPUs and we want to increase it above pCPUs we should
   error out and print out a warning telling them to use --ignore-host.
   Regardless of the dominfo.max_vcpu_id - so if the max_vpcu_id is
   greater than pCPU and 'vcpu' < pCPU, we should still warn the user
   when increasing.

 - If the 'vcpus' > pCPUs and we want to decrease to be below pCPUs then
   we should do that without the warning.
   (this is what the patchset is fixing).

"

However during the fixes an request was made to have libxl_domain_info
return a more proper return value when there are no domains found - hence:
 [PATCH v2 1/5] libxl: Add ERROR_NOTFOUND for libxl_domain_info when

is part of this patchset.


 tools/libxl/libxl.c         | 18 +++++++++------
 tools/libxl/libxl.h         |  4 +++-
 tools/libxl/libxl_types.idl |  1 +
 tools/libxl/xl_cmdimpl.c    | 55 +++++++++++++++++++++++++++++----------------
 4 files changed, 51 insertions(+), 27 deletions(-)

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-03-18 14:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-13 20:26 [PATCH v2] Fix xl vcpu-set to decrease amount of vCPUS without warnining Konrad Rzeszutek Wilk
2015-03-13 20:26 ` [PATCH v2 1/5] libxl: Add ERROR_NOTFOUND for libxl_domain_info when it cannot find the domain Konrad Rzeszutek Wilk
2015-03-18 13:03   ` Ian Campbell
2015-03-13 20:26 ` [PATCH v2 2/5] libxl: vcpuset: Return error values Konrad Rzeszutek Wilk
2015-03-18 13:06   ` Ian Campbell
2015-03-18 13:08     ` Ian Campbell
2015-03-18 14:09       ` Dario Faggioli
2015-03-18 14:15         ` Konrad Rzeszutek Wilk
2015-03-18 13:37     ` Konrad Rzeszutek Wilk
2015-03-13 20:26 ` [PATCH v2 3/5] libxl: vcpuset: Check max_vcpus argument against the maximum number of vCPUs the guest has set Konrad Rzeszutek Wilk
2015-03-18 13:11   ` Ian Campbell
2015-03-13 20:26 ` [PATCH v2 4/5] libxl: vcpuset: Remove useless limit on max_vcpus Konrad Rzeszutek Wilk
2015-03-18 13:13   ` Ian Campbell
2015-03-13 20:26 ` [PATCH v2 5/5] libxl: vcpu-set - allow to decrease vcpu count on overcommitted guests (v3) Konrad Rzeszutek Wilk
2015-03-18 13:15   ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.