Re: [PATCH v3 00/16] virtio-pci: towards virtio 1.0 guest support

From: Gerd Hoffmann
Date: Mon Jan 19 2015 - 06:07:12 EST


Hi,

> BTW: is there a tool (or pciutils patch) which can decode the virtio
> capabilities?

Searched for a patch today, and all google found me was this mail asking
for one :-o

So I went ahead and coded one up. Attached.

While hacking it up I've noticed spec doesn't match reality. The
"Virtio Structure PCI Capabilities" section here ...

http://docs.oasis-open.org/virtio/virtio/v1.0/cs01/virtio-v1.0-cs01.html#x1-690004

... doesn't match what qemu is doing. Huh?


Also note:

[root@fedora ~]# ~kraxel/projects/pciutils/lspci -vvsa
00:0a.0 Communication controller: Red Hat, Inc Virtio console
[ ... ]
Capabilities: [64] VirtIO: Notify
BAR=2 offset=00003000 size=00400000
multiplier=00010000
[ ... ]

Why multiplier is 64k instead of 4k? Just a tyops?


cheers,
Gerd