On 01/03/2018 04:58, Thomas Huth wrote: >> When a guests reboots with diagnose 308 subcode 3 it requests the memory >> to be cleared. We did not do it so far. This does not only violate the >> architecture, it also misses the chance to free up that memory on >> reboot, which would help on host memory over commitment. By using >> ram_block_discard_range we can cover both cases. > > Sounds like a good idea. I wonder whether that release_all_ram() > function should maybe rather reside in exec.c, so that other machines > that want to clear all RAM at reset time can use it, too?
Either way is fine for me. With s/rams/ram/ the s390-only patch is ok. Paolo