summary refs log tree commit diff stats
path: root/include
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2024-12-19 15:41:13 +0100
committerDavid Hildenbrand <david@redhat.com>2024-12-21 15:59:59 +0100
commitdf2ac211a62e6ced7f1495b634fa6f78962f2321 (patch)
tree429313a2002321015cd0c73726fd2c1834f6ff5d /include
parenta056332e732110c8ef0d40ffd49bd03afc2f04ca (diff)
downloadfocaccia-qemu-df2ac211a62e6ced7f1495b634fa6f78962f2321.tar.gz
focaccia-qemu-df2ac211a62e6ced7f1495b634fa6f78962f2321.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/hw/s390x/s390-virtio-ccw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/s390x/s390-virtio-ccw.h b/include/hw/s390x/s390-virtio-ccw.h
index de04336c5a..599740a998 100644
--- a/include/hw/s390x/s390-virtio-ccw.h
+++ b/include/hw/s390x/s390-virtio-ccw.h
@@ -30,6 +30,7 @@ struct S390CcwMachineState {
     bool pv;
     uint8_t loadparm[8];
     uint64_t memory_limit;
+    uint64_t max_pagesize;
 
     SCLPDevice *sclp;
 };