>>> On 19.01.17 at 18:29, <roger....@citrix.com> wrote: > @@ -176,6 +177,8 @@ unsigned int __init dom0_max_vcpus(void) > max_vcpus = opt_dom0_max_vcpus_max; > if ( max_vcpus > MAX_VIRT_CPUS ) > max_vcpus = MAX_VIRT_CPUS; > + if ( dom0_pvh && max_vcpus > HVM_MAX_VCPUS ) > + max_vcpus = HVM_MAX_VCPUS;
Thinking about it again, we shouldn't apply two limits here, when those limits can change independently. I think you want limit = dom0_pvh ? HVM_MAX_VCPUS : MAX_VIRT_CPUS; if ( max_vcpus > limit ) max_vcpus = limit; Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel