summaryrefslogtreecommitdiff
path: root/hw/xen
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2018-02-27 16:23:07 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2018-03-06 13:16:29 +1100
commit1a5008fc17fe3d286baa6d07b5cce122553968e7 (patch)
tree8bda77fecd410828c588cb4df6b03625f7758ff2 /hw/xen
parent72fdd4de8e5fdc1a6078e000835fb54592a3fe97 (diff)
downloadqemu-1a5008fc17fe3d286baa6d07b5cce122553968e7.tar.gz
spapr: harden code that depends on VSMT
VSMT must be set in order to compute VCPU ids. This means that the following functions must not be called before spapr_set_vsmt_mode() was called: - spapr_vcpu_id() - spapr_is_thread0_in_vcore() - xics_max_server_number() We had a recent regression where the latter would be called before VSMT was set, and broke migration of some old machine types. This patch adds assert() in the above functions to avoid problems in the future. Also, since VSMT is really a CPU related thing, spapr_set_vsmt_mode() is now called from spapr_init_cpus(), just before the first VSMT user. Signed-off-by: Greg Kurz <groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/xen')
0 files changed, 0 insertions, 0 deletions