mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
a056332e73
commit
df2ac211a6
4 changed files with 12 additions and 9 deletions
|
@ -30,6 +30,7 @@ struct S390CcwMachineState {
|
|||
bool pv;
|
||||
uint8_t loadparm[8];
|
||||
uint64_t memory_limit;
|
||||
uint64_t max_pagesize;
|
||||
|
||||
SCLPDevice *sclp;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue