On Wed, Nov 9, 2016 at 6:32 PM, Paolo Bonzini <pbonz...@redhat.com> wrote: > > > On 09/11/2016 18:19, Vincent Palatin wrote: >>> > Please try removing this block and instead starting QEMU with >>> > -mem-prealloc. If it works, remove hax_populate_ram and just set >>> > mem_prealloc to 1 in hax_accel_init. >> it's not working, later hax_set_ram() is unhappy about what it is >> finding the mappings. >> By the way, even if it had worked at startup, under memory pressure, >> Windows might have evicted the physical pages (which is not supported >> by the HAXM kernel module) >> >> I can try to move this in os_mem_prealloc() if you feel it's cleaner. > > Yes, that would work!
Actually, os_mem_prealloc seems mostly no-op in the win32 version, I have postponed this change for after my v2 patchset. -- Vincent