QEMU crashes if virtiofs cache size is bigger than the RAM size of the underlying host

This issue manifests when i try to test virtio-fs inside a VM. If the total VM RAM size is smaller than that of virtio-fs cache, qemu will fail to launch with such error. docker: Error response from daemon: OCI runtime create failed: qemu-system-x86_64: /home/ganeshma/qemu/memory.c:2155: memory_region_get_ram_ptr: Assertion `mr->ram_block' failed.: unknown.

This issue was reproducible both with kata and just qemu directly as well.

Edited by Ganesh Mahalingam