Re: [PATCHv2] 9p/xen: Use array for data rings

From: Dominique Martinet

Date: Sun Sep 13 2026 - 19:46:16 EST


Rosen Penev wrote on Sun, Sep 13, 2026 at 12:27:40PM -0700:
> Store the fixed set of Xen 9p data rings in the frontend private
> allocation instead of allocating a separate rings array.
>
> This keeps the data ring storage tied to the frontend lifetime and
> simplifies the allocation and cleanup paths.
>
> Assisted-by: Codex:GPT-5.5
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> v2: switch to normal array.

Thanks, looks good to me, picked up.

> - for (j = 0; j < (1 << ring->intf->ring_order);
> - j++) {
> + for (j = 0; j < (1 << ring->intf->ring_order);
> + j++) {

^ now fits in a single line within 80 chars so I've rewrapped it

--
Dominique