s390x/cpu_model: disallow unpack for --only-migratable
commit0110253e690f37ff0add0c8d75f47747041d75fa
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 25 Jan 2021 13:53:32 +0000 (25 14:53 +0100)
committerCornelia Huck <cohuck@redhat.com>
Thu, 4 Mar 2021 10:23:35 +0000 (4 11:23 +0100)
tree622e9103f8f608b0923533c5f028793172c144cd
parentc40ae5a3ee387b13116948cbfe7824f03311db7e
s390x/cpu_model: disallow unpack for --only-migratable

Secure execution (aka protected virtualization) guests cannot be
migrated at the moment. If the unpack facility is provided in the cpu
model, a guest may choose to transition to secure mode, making the
guest unmigratable at that point in time. If the machine was explicitly
started with --only-migratable, we would get a failure only when the
guest actually tries to transition; instead, explicitly disallow the
unpack facility if --only-migratable was specified to avoid late
surprises.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Message-Id: <20210125135332.181324-1-borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/cpu_models.c