summary refs log tree commit diff stats
path: root/scripts/modules/module_block.py
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2020-01-22 14:11:12 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2020-02-02 14:07:57 +1100
commit12b3868eadf0d5c5ada24f7036c55de7943575a9 (patch)
treef62385a05cab83e5f529b76888c70b017ca5575e /scripts/modules/module_block.py
parent493028d8d798f4ac7b933c91598605acd7e61c7e (diff)
downloadfocaccia-qemu-12b3868eadf0d5c5ada24f7036c55de7943575a9.tar.gz
focaccia-qemu-12b3868eadf0d5c5ada24f7036c55de7943575a9.zip
spapr: Don't allow multiple active vCPUs at CAS
According to the description of "ibm,client-architecture-support" that
can found in LoPAPR "B.6.2.3 Root Node Methods":

If multiple partition processors or threads are active at the time of
the ibm,client-architecture-support method call, or an error is detected
in the format of the ibm,architecture.vec structure, the err? boolean
shall be TRUE; else FALSE.

We certainly don't want to temper with the platform or with the PCR of
the other vCPUs if they happen to be active. Ensure we have only one
active vCPU and fail CAS otherwise. This is just for conformance and
robustness, it doesn't fix any known bugs.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <157969867170.571404.12117797348882189656.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'scripts/modules/module_block.py')
0 files changed, 0 insertions, 0 deletions