On Thu, Nov 26, 2026 at 08:24:10PM +0900, Seojin An wrote:
> Thanks. Before I post v2, I want to confirm how broadly the core should
> enforce this.
> 
> One option is a common check that rejects total_sg greater than Queue Size
> for both split and packed queues. That would catch cases where a driver misses
> the check, but it may also reject requests that existing drivers issue today.
> 
> The other option is the narrower split representation guard from my v1. My
> original check used total_sg > 65536, but it needs to reject exactly 65536 as
> well. At that count the split cleanup cursor wraps to zero, so a failure while
> mapping the indirect table leaves the data SG mappings behind. Packed
> indirect tables do not use that cursor.
> 
> If you have a different core-side approach in mind, please let me know.
> 
> The current virtio-gpu v2 draft enforces Queue Size in the driver
> independently. For the core, would you prefer the common split-and-packed
> Queue-Size check, the narrow split guard, or no core change for now? Once
> that is clear, I will post the corresponding core v2.

Let's go with no core change for now.

-- 
MST


Reply via email to