s390x/kvm: legacy_s390_alloc() only supports one allocation
authorDavid Hildenbrand <david@redhat.com>
Thu, 28 Jun 2018 11:38:16 +0000 (13:38 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 2 Jul 2018 08:37:38 +0000 (10:37 +0200)
commit8151942151fe1cbf072414d8822b80b00abfbf42
treea0286ea68e01c91d0ff97d5a6d62bab55a83118f
parentd66b43c896f89d610f8738169db8e10e63a3a9e6
s390x/kvm: legacy_s390_alloc() only supports one allocation

We always allocate at a fixed address, a second allocation can therefore
of course never work. We would simply overwrite mappings.

This can e.g. happen in s390_memory_init(), if trying to allocate more
than > 8TB. Let's just bail out, as there is no need for supporting it
(legacy handling for z/VM).

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180628113817.30814-2-david@redhat.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/kvm.c