Re: [PATCH v2 2/6] x86/kvm: add boot parameter for adding vcpu-id bits
From: Paolo Bonzini
Date: Tue Sep 28 2021 - 12:41:42 EST
On 03/09/21 15:08, Juergen Gross wrote:
+ if (vcpu_id_add_bits >= 0) {
+ n_bits += vcpu_id_add_bits;
+ } else {
+ n_bits++; /* One additional bit for core level. */
+ if (topology_max_die_per_package() > 1)
+ n_bits++; /* One additional bit for die level. */
This needs to be unconditional since it is always possible to emulate a
multiple-die-per-package topology for a guest, even if the host has just
one.
Paolo
+ }
+
+ if (!n_bits)