search for: show_vendor_caps_virtio

Displaying 6 results from an estimated 6 matches for "show_vendor_caps_virtio".

2015 Jan 21
2
[pciutils patch] add virtio vendor capability support
...he PCI Utilities -- Show Vendor-specific Capabilities + * + * Copyright (c) 2014 Gerd Hoffmann <kraxel at redhat.com> + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#include <stdio.h> +#include <string.h> + +#include "lspci.h" + +void +show_vendor_caps_virtio(struct device *d, int where, int cap) +{ + int length = BITS(cap, 0, 8); + int type = BITS(cap, 8, 8); + char *tname; + + if (length < 16) + return; + if (!config_fetch(d, where, length)) + return; + + switch (type) { + case 1: + tname = "CommonCfg"; + break; + case...
2015 Jan 21
2
[pciutils patch] add virtio vendor capability support
...he PCI Utilities -- Show Vendor-specific Capabilities + * + * Copyright (c) 2014 Gerd Hoffmann <kraxel at redhat.com> + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#include <stdio.h> +#include <string.h> + +#include "lspci.h" + +void +show_vendor_caps_virtio(struct device *d, int where, int cap) +{ + int length = BITS(cap, 0, 8); + int type = BITS(cap, 8, 8); + char *tname; + + if (length < 16) + return; + if (!config_fetch(d, where, length)) + return; + + switch (type) { + case 1: + tname = "CommonCfg"; + break; + case...
2015 Jan 19
3
[PATCH v3 00/16] virtio-pci: towards virtio 1.0 guest support
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 ...
2015 Jan 19
3
[PATCH v3 00/16] virtio-pci: towards virtio 1.0 guest support
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 ...
2015 Jan 21
2
[pciutils patch v2] add virtio vendor capability support
...Utilities -- Show Vendor-specific Capabilities + * + * Copyright (c) 2014 Gerd Hoffmann <kraxel at redhat.com> + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#include <stdio.h> +#include <string.h> + +#include "lspci.h" + +static void +show_vendor_caps_virtio(struct device *d, int where, int cap) +{ + int length = BITS(cap, 0, 8); + int type = BITS(cap, 8, 8); + char *tname; + + if (length < 16) + return; + if (!config_fetch(d, where, length)) + return; + + switch (type) + { + case 1: + tname = "CommonCfg"; + bre...
2015 Jan 21
2
[pciutils patch v2] add virtio vendor capability support
...Utilities -- Show Vendor-specific Capabilities + * + * Copyright (c) 2014 Gerd Hoffmann <kraxel at redhat.com> + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#include <stdio.h> +#include <string.h> + +#include "lspci.h" + +static void +show_vendor_caps_virtio(struct device *d, int where, int cap) +{ + int length = BITS(cap, 0, 8); + int type = BITS(cap, 8, 8); + char *tname; + + if (length < 16) + return; + if (!config_fetch(d, where, length)) + return; + + switch (type) + { + case 1: + tname = "CommonCfg"; + bre...