s390x: introduce s390_get_memory_limit()
authorDavid Hildenbrand <david@redhat.com>
Thu, 19 Dec 2024 14:41:07 +0000 (15:41 +0100)
committerDavid Hildenbrand <david@redhat.com>
Sat, 21 Dec 2024 14:59:59 +0000 (15:59 +0100)
commit27221b69a3ea49339a1f82b9622126f3928e0915
tree007331160db0ffde936775c1d0c7a121cd415f36
parent3c6fb557d295949bea291c3bf88ee9c83392e78c
s390x: introduce s390_get_memory_limit()

Let's add s390_get_memory_limit(), to query what has been successfully
set via s390_set_memory_limit(). Allow setting the limit only once.

We'll remember the limit in the machine state. Move
s390_set_memory_limit() to machine code, merging it into
set_memory_limit(), because this really is a machine property.

Message-ID: <20241219144115.2820241-7-david@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
hw/s390x/s390-virtio-ccw.c
include/hw/s390x/s390-virtio-ccw.h
target/s390x/cpu-sysemu.c
target/s390x/cpu.h