s390x: remember the maximum page size
authorDavid Hildenbrand <david@redhat.com>
Thu, 19 Dec 2024 14:41:13 +0000 (15:41 +0100)
committerDavid Hildenbrand <david@redhat.com>
Sat, 21 Dec 2024 14:59:59 +0000 (15:59 +0100)
commitdf2ac211a62e6ced7f1495b634fa6f78962f2321
tree429313a2002321015cd0c73726fd2c1834f6ff5d
parenta056332e732110c8ef0d40ffd49bd03afc2f04ca
s390x: remember the maximum page size

Let's remember the value (successfully) set via s390_set_max_pagesize().
This will be helpful to reject hotplugged memory devices that would exceed
this initially set page size.

Handle it just like how we handle s390_get_memory_limit(), storing it in
the machine, and moving the handling to machine code.

Message-ID: <20241219144115.2820241-13-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