search for: pci_hdr

Displaying 11 results from an estimated 11 matches for "pci_hdr".

Did you mean: ecp_hdr
2015 Nov 18
2
[RFC] kvmtool: add support for modern virtio-pci
...kvm/virtio.h" #include <linux/types.h> @@ -11,14 +12,9 @@ struct kvm; -struct virtio_pci_ioevent_param { - struct virtio_device *vdev; - u32 vq; -}; - #define VIRTIO_PCI_F_SIGNAL_MSI (1 << 0) -struct virtio_pci { +struct virtio_pci_modern { struct pci_device_header pci_hdr; struct device_header dev_hdr; void *dev; @@ -28,6 +24,9 @@ struct virtio_pci { u32 mmio_addr; u8 status; u8 isr; + u32 device_features_sel; + u32 driver_features_sel; + u32 features; /* @@ -52,10 +51,10 @@ struct virtio_pci { struct virtio_pci_ioevent_param ioeventf...
2015 Nov 18
2
[RFC] kvmtool: add support for modern virtio-pci
...kvm/virtio.h" #include <linux/types.h> @@ -11,14 +12,9 @@ struct kvm; -struct virtio_pci_ioevent_param { - struct virtio_device *vdev; - u32 vq; -}; - #define VIRTIO_PCI_F_SIGNAL_MSI (1 << 0) -struct virtio_pci { +struct virtio_pci_modern { struct pci_device_header pci_hdr; struct device_header dev_hdr; void *dev; @@ -28,6 +24,9 @@ struct virtio_pci { u32 mmio_addr; u8 status; u8 isr; + u32 device_features_sel; + u32 driver_features_sel; + u32 features; /* @@ -52,10 +51,10 @@ struct virtio_pci { struct virtio_pci_ioevent_param ioeventf...
2014 Sep 21
2
[PATCH RFC] virtio-pci: share config interrupt between virtio devices
...at case. > > To complicate things, lkvm does not use a distinct subsystem vendor ID, > in spite of the fact the virtio spec always required this explicitly. I think I may be a bit confused here, but AFAIK we do set subsystem vendor ID properly for our virtio-pci devices? vpci->pci_hdr = (struct pci_device_header) { .vendor_id = cpu_to_le16(PCI_VENDOR_ID_REDHAT_QUMRANET), .device_id = cpu_to_le16(device_id), [...] .subsys_vendor_id = cpu_to_le16(PCI_SUBSYSTEM_VENDOR_ID_REDHAT_QUMRANET), Thanks, Sa...
2014 Sep 21
2
[PATCH RFC] virtio-pci: share config interrupt between virtio devices
...at case. > > To complicate things, lkvm does not use a distinct subsystem vendor ID, > in spite of the fact the virtio spec always required this explicitly. I think I may be a bit confused here, but AFAIK we do set subsystem vendor ID properly for our virtio-pci devices? vpci->pci_hdr = (struct pci_device_header) { .vendor_id = cpu_to_le16(PCI_VENDOR_ID_REDHAT_QUMRANET), .device_id = cpu_to_le16(device_id), [...] .subsys_vendor_id = cpu_to_le16(PCI_SUBSYSTEM_VENDOR_ID_REDHAT_QUMRANET), Thanks, Sa...
2014 Sep 21
1
[PATCH RFC] virtio-pci: share config interrupt between virtio devices
...D, >>> > > in spite of the fact the virtio spec always required this explicitly. >> > >> > I think I may be a bit confused here, but AFAIK we do set subsystem vendor >> > ID properly for our virtio-pci devices? >> > >> > vpci->pci_hdr = (struct pci_device_header) { >> > .vendor_id = cpu_to_le16(PCI_VENDOR_ID_REDHAT_QUMRANET), >> > .device_id = cpu_to_le16(device_id), >> > [...] >> > .subsys_vendor_id = cpu_to_le1...
2014 Sep 21
1
[PATCH RFC] virtio-pci: share config interrupt between virtio devices
...D, >>> > > in spite of the fact the virtio spec always required this explicitly. >> > >> > I think I may be a bit confused here, but AFAIK we do set subsystem vendor >> > ID properly for our virtio-pci devices? >> > >> > vpci->pci_hdr = (struct pci_device_header) { >> > .vendor_id = cpu_to_le16(PCI_VENDOR_ID_REDHAT_QUMRANET), >> > .device_id = cpu_to_le16(device_id), >> > [...] >> > .subsys_vendor_id = cpu_to_le1...
2014 Sep 21
0
[PATCH RFC] virtio-pci: share config interrupt between virtio devices
...te things, lkvm does not use a distinct subsystem vendor ID, > > in spite of the fact the virtio spec always required this explicitly. > > I think I may be a bit confused here, but AFAIK we do set subsystem vendor > ID properly for our virtio-pci devices? > > vpci->pci_hdr = (struct pci_device_header) { > .vendor_id = cpu_to_le16(PCI_VENDOR_ID_REDHAT_QUMRANET), > .device_id = cpu_to_le16(device_id), > [...] > .subsys_vendor_id = cpu_to_le16(PCI_SUBSYSTEM_VENDOR_ID_REDHAT_QUM...
2014 Sep 18
3
[PATCH RFC] virtio-pci: share config interrupt between virtio devices
On Monday 01 September 2014 09:37:30, Michael S. Tsirkin wrote: > Why do we need INT#x? > How about setting IRQF_SHARED for the config interrupt > while using MSI-X? You'd have to read ISR to check that the > interrupt was intended for your device. The virtio 0.9.5 spec says that ISR is "unused" when in MSI-X mode. I don't think that you can depend on the device to
2014 Sep 18
3
[PATCH RFC] virtio-pci: share config interrupt between virtio devices
On Monday 01 September 2014 09:37:30, Michael S. Tsirkin wrote: > Why do we need INT#x? > How about setting IRQF_SHARED for the config interrupt > while using MSI-X? You'd have to read ISR to check that the > interrupt was intended for your device. The virtio 0.9.5 spec says that ISR is "unused" when in MSI-X mode. I don't think that you can depend on the device to
2017 Apr 07
34
[RFC 0/3] virtio-iommu: a paravirtualized IOMMU
This is the initial proposal for a paravirtualized IOMMU device using virtio transport. It contains a description of the device, a Linux driver, and a toy implementation in kvmtool. With this prototype, you can translate DMA to guest memory from emulated (virtio), or passed-through (VFIO) devices. In its simplest form, implemented here, the device handles map/unmap requests from the guest. Future
2017 Apr 07
34
[RFC 0/3] virtio-iommu: a paravirtualized IOMMU
This is the initial proposal for a paravirtualized IOMMU device using virtio transport. It contains a description of the device, a Linux driver, and a toy implementation in kvmtool. With this prototype, you can translate DMA to guest memory from emulated (virtio), or passed-through (VFIO) devices. In its simplest form, implemented here, the device handles map/unmap requests from the guest. Future