On 11/20/25 08:14, Akihiko Odaki wrote:
>> + if (virtio_gpu_hostmem_enabled(b->conf)) {
>> + map = qemu_ram_mmap(-1, b->conf.hostmem,
>> qemu_real_host_page_size(),
>> + 0, 0);
>
> qemu_ram_mmap() shouldn't be called if !defined(CONFIG_WIN32).
Indeed, see now that mmap-alloc.c not compiled for Windows target.
Though, it appears to me that Cygwin provides a compatible mmap()
implementation that supports MAP_FIXED, thus the mapping likely should
work on Windows.
Will re-add !defined(CONFIG_WIN32) and address rest of the comments.
Thanks a lot for the review.
--
Best regards,
Dmitry