Hanging when testing Venus Driver with "stuck in ring seqno wait with iter at"

2023-05-04 Thread DUO Labs
I'm working on getting the Venus driver to work inside QEMU guests, but when I tested `vkcube` in a Linux guest with `VN_DEBUG=init`, I got `stuck in ring seqno wait with iter at {i}` with updating i at exponentially increasing intervals. Taking a cursor glance at the code, it seems that this i

Re: Hanging when testing Venus Driver with "stuck in ring seqno wait with iter at"

2023-05-13 Thread DUO Labs
After some more checking, it seems the problem is in here: `vn_cs_encoder_reserve_internal`, as this is the only place where a vn_cs_encoder can grow with `vn_cs_encoder_add_buffer`. For the buffer_count to be 0, this must mean that this is never called. The vn_cs_encoder assigned to a ring is

Re: Hanging when testing Venus Driver with "stuck in ring seqno wait with iter at"

2023-05-24 Thread DUO Labs
On the host end, I do face an error `warning: virtio_gpu_remap_udmabuf: dmabuf mmap failed: Invalid argument`. The error is due to the fact that `res->blob_size` is `1048576`, which is ~1.0 GB, much bigger than what a single blob should be.

Re: Hanging when testing Venus Driver with "stuck in ring seqno wait with iter at"

2023-05-26 Thread DUO Labs
So... I found the mistake --- I forgot to actually implement the different contexts in `virgl_cmd_context_create`.

Venus crashes guest if vkCreateInstance is called on MoltenVK

2023-05-26 Thread DUO Labs
I'm working on integrating virglrenderer with MoltenVK on MacOS. However, I found that when vkCreateInstance is called, even though the instance is successfully created, mesa on the guest crashes, bring down QEMU with it.

Re: Venus crashes guest if vkCreateInstance is called on MoltenVK

2023-06-05 Thread DUO Labs
Yes, I realized that it wasn't qemu crashing, but virglrenderer just exiting if some condition isn't satisfied.