qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] virtIO question


From: address@hidden
Subject: [Qemu-devel] virtIO question
Date: Mon, 14 Nov 2016 20:36:39 +0800

I have a question about qemu.is it a bug in qemu version 1.2?
in qemu version 1.2 ,it set avail event by the code :
 if (vq->vdev->guest_features & (1 << VIRTIO_RING_F_EVENT_IDX)) {
        vring_avail_event(vq, vring_avail_idx(vq));
        }
 and in version 2.7 the code is
 if (virtio_vdev_has_feature(vdev, VIRTIO_RING_F_EVENT_IDX)) {
        vring_set_avail_event(vq, vq->last_avail_idx);
    }

a big difference of this is the value.vring_avail_idx(vq)is the latest value of 
VRingAvail.idx,and vq->last_avail_idx is not, I think it really different with 
the two different values,and I think the later is right,is it??
thanks a lot!!



address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]