> -Original Message-
> From: Eugenio Perez Martin
> Sent: 2024年12月12日 15:33
> To: Wafer
> Cc: m...@redhat.com; jasow...@redhat.com; qemu-devel@nongnu.org;
> Angus Chen
> Subject: Re: [PATCH v2] hw/virtio: Fix check available index on virtio loading
>
>
On Thu, Dec 12, 2024 at 3:30 AM Wafer wrote:
>
>
>
> > -Original Message-
> > From: Eugenio Perez Martin
> > Sent: 2024年12月11日 20:45
> > To: Wafer
> > Cc: m...@redhat.com; jasow...@redhat.com; qemu-devel@nongnu.org;
> > Angus Chen
>
> -Original Message-
> From: Eugenio Perez Martin
> Sent: 2024年12月11日 20:45
> To: Wafer
> Cc: m...@redhat.com; jasow...@redhat.com; qemu-devel@nongnu.org;
> Angus Chen
> Subject: Re: [PATCH v2] hw/virtio: Fix check available index on virtio loading
>
>
On Wed, Dec 11, 2024 at 1:34 PM Wafer wrote:
>
> From: Wafer Xie
>
> The virtio-1.2 specification writes:
>
> 2.7.6 The Virtqueue Available Ring:
> "idx field indicates where the driver would put the next descriptor entry
> in the ring (modulo the queue size). This starts at 0, and increases"
>
>
From: Wafer Xie
The virtio-1.2 specification writes:
2.7.6 The Virtqueue Available Ring:
"idx field indicates where the driver would put the next descriptor entry
in the ring (modulo the queue size). This starts at 0, and increases"
The idx will increase from 0 to 0x and repeat,
So idx may