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)