Displaying 2 results from an estimated 2 matches for "virtio_pci_cap64".
Did you mean:
virtio_pci_cap
2019 Jul 25
5
[PATCH 0/4] virtio: Add definitions for shared memory regions
From: "Dr. David Alan Gilbert" <dgilbert at redhat.com>
Add the virtio shared memory region definitions that
have just got merged into the spec.
Dr. David Alan Gilbert (4):
virtio_pci: Define id field
virtio_pci: Define virtio_pci_cap64
virtio_pci: Defined shared memory capability
virito_mmio: Define shared memory region registers
include/uapi/linux/virtio_mmio.h | 11 +++++++++++
include/uapi/linux/virtio_pci.h | 11 ++++++++++-
2 files changed, 21 insertions(+), 1 deletion(-)
--
2.21.0
2020 Aug 19
0
[PATCH v3 04/18] virtio: Implement get_shm_region for PCI transport
...+
+ pci_read_config_byte(dev, pos + offsetof(struct virtio_pci_cap,
+ cfg_type), &type);
+ if (type != VIRTIO_PCI_CAP_SHARED_MEMORY_CFG)
+ continue;
+
+ pci_read_config_byte(dev, pos + offsetof(struct virtio_pci_cap,
+ cap_len), &cap_len);
+ if (cap_len != sizeof(struct virtio_pci_cap64)) {
+ dev_err(&dev->dev, "%s: shm cap with bad size offset:"
+ " %d size: %d\n", __func__, pos, cap_len);
+ continue;
+ }
+
+ pci_read_config_byte(dev, pos + offsetof(struct virtio_pci_cap,
+ id), &id);
+ if (id != required_id)
+ continue;
+
+ /* T...