]> xenbits.xensource.com Git - libvirt.git/commitdiff
RPC: Support up to 16384 cpus on the host and 4096 in the guest
authorPeter Krempa <pkrempa@redhat.com>
Tue, 28 May 2013 12:29:12 +0000 (14:29 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 3 Jun 2013 15:07:13 +0000 (17:07 +0200)
The RPC limits for cpu maps didn't allow to use libvirt on ultra big
boxes. This patch increases size of the limits to support a maximum of
16384 cpus on the host with a maximum of 4096 cpus per guest.
The full cpu map of such a system takes 8 megabytes and the map for
vcpu pinning is 2 kilobytes long.

src/remote/remote_protocol.x

index 1ebbce786e3fc8880430a2a6b0e18f0ca9e4cf51..972337748e64760e94a299afd826d2dca0e84b50 100644 (file)
@@ -82,13 +82,13 @@ const REMOTE_DOMAIN_ID_LIST_MAX = 16384;
 const REMOTE_DOMAIN_NAME_LIST_MAX = 16384;
 
 /* Upper limit on cpumap (bytes) passed to virDomainPinVcpu. */
-const REMOTE_CPUMAP_MAX = 256;
+const REMOTE_CPUMAP_MAX = 2048;
 
 /* Upper limit on number of info fields returned by virDomainGetVcpus. */
-const REMOTE_VCPUINFO_MAX = 2048;
+const REMOTE_VCPUINFO_MAX = 16384;
 
 /* Upper limit on cpumaps (bytes) passed to virDomainGetVcpus. */
-const REMOTE_CPUMAPS_MAX = 16384;
+const REMOTE_CPUMAPS_MAX = 8388608;
 
 /* Upper limit on migrate cookie. */
 const REMOTE_MIGRATE_COOKIE_MAX = 16384;