[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 0/6] hmp, qmp: Add some commands to introspect virtio devi
Re: [PATCH v6 0/6] hmp, qmp: Add some commands to introspect virtio devices
Mon, 26 Jul 2021 05:11:29 -0400
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0
On 7/22/21 5:16 AM, Jason Wang wrote:
在 2021/7/21 下午4:53, Jonah Palmer 写道:
Hi Jason. My apologies for the delayed response, several work-related
things came up recently, but they're slowing down now so I'm turning
my attention these patches to get taken care of.
A few questions and comments below (and in other following patches):
On 7/13/21 10:42 PM, Jason Wang wrote:
Sure thing. And I apologize if it's obvious (I'm relatively new to
virtio), but how can I expose the driver area?
在 2021/7/12 下午6:35, Jonah Palmer 写道:
Dump the information of the head element of the third
queue of virtio-scsi:
(qemu) virtio queue-element
descs: addr 0x7302d000 len 4096 (write), addr 0x3c951763
len 108 (write, next),
addr 0x3c951728 len 51 (next)
I think it would be nice if we can show driver area and device area
as well here.
So the spec defines three parts: the device area, the driver area, and
the descriptor area. And they are all located in the guest memory.
I understand that virtio devices are part of the Qemu process, but I
also thought that virtio drivers are in the
guest's kernel, which I don't believe I can see into from Qemu (or,
at least, it's not obvious to me).
It works like how you access the descriptor ring (descriptor area).
Oh, I see now! I didn't realize the device area is essentially the used
ring and the driver area is the avail ring (at least for the split
virtqueue model). I see this in the virtio spec now.
- [PATCH v6 6/6] hmp: add virtio commands, (continued)
- [PATCH v6 5/6] qmp: add QMP command x-debug-virtio-queue-element, Jonah Palmer, 2021/07/12
- [PATCH v6 3/6] qmp: decode feature bits in virtio-status, Jonah Palmer, 2021/07/12
- Re: [PATCH v6 0/6] hmp,qmp: Add some commands to introspect virtio devices, Michael S. Tsirkin, 2021/07/13
- Re: [PATCH v6 0/6] hmp, qmp: Add some commands to introspect virtio devices, Jason Wang, 2021/07/13