Displaying 6 results from an estimated 6 matches for "flags_pos".
2009 May 11
0
[PATCH 1/2] qemu-kvm: add MSI-X support
..._unuse(dev, i);
+ else
+ msix_vector_use(dev, i);
+ }
+}
+
+/* Handle MSI-X capability config write */
+void msix_write_config(PCIDevice *dev, uint32_t addr,
+ uint32_t val, int len)
+{
+ /* MSI enable bit is in byte 1 in FLAGS register */
+ unsigned flags_pos = dev->cap.msix + PCI_CAP_FLAGS + 1;
+ uint8_t orig, mask = PCI_MSIX_FLAGS_ENABLE >> 8;
+ int i, enabled;
+
+ /* Slow but simple */
+ for (i = addr; i < addr + len; val >>= 8, ++i) {
+ if (i != flags_pos)
+ continue;
+ orig = dev->config[i];...
2009 May 11
0
[PATCH 1/2] qemu-kvm: add MSI-X support
..._unuse(dev, i);
+ else
+ msix_vector_use(dev, i);
+ }
+}
+
+/* Handle MSI-X capability config write */
+void msix_write_config(PCIDevice *dev, uint32_t addr,
+ uint32_t val, int len)
+{
+ /* MSI enable bit is in byte 1 in FLAGS register */
+ unsigned flags_pos = dev->cap.msix + PCI_CAP_FLAGS + 1;
+ uint8_t orig, mask = PCI_MSIX_FLAGS_ENABLE >> 8;
+ int i, enabled;
+
+ /* Slow but simple */
+ for (i = addr; i < addr + len; val >>= 8, ++i) {
+ if (i != flags_pos)
+ continue;
+ orig = dev->config[i];...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
...unuse(dev, i);
+ else
+ msix_vector_use(dev, i);
+ }
+}
+
+/* Handle MSI-X capability config write. */
+void msix_write_config(PCIDevice *dev, uint32_t addr,
+ uint32_t val, int len)
+{
+ /* MSI enable bit is in byte 1 in FLAGS register */
+ unsigned flags_pos = dev->cap.msix + PCI_CAP_FLAGS + 1;
+ uint8_t orig, mask = PCI_MSIX_FLAGS_ENABLE >> 8;
+ int i, changed = 0, enabled;
+
+ /* Slow but simple */
+ for (i = addr; i < addr + len; val >>= 8, ++i) {
+ if (i != flags_pos)
+ continue;
+ orig = dev-&...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
...unuse(dev, i);
+ else
+ msix_vector_use(dev, i);
+ }
+}
+
+/* Handle MSI-X capability config write. */
+void msix_write_config(PCIDevice *dev, uint32_t addr,
+ uint32_t val, int len)
+{
+ /* MSI enable bit is in byte 1 in FLAGS register */
+ unsigned flags_pos = dev->cap.msix + PCI_CAP_FLAGS + 1;
+ uint8_t orig, mask = PCI_MSIX_FLAGS_ENABLE >> 8;
+ int i, changed = 0, enabled;
+
+ /* Slow but simple */
+ for (i = addr; i < addr + len; val >>= 8, ++i) {
+ if (i != flags_pos)
+ continue;
+ orig = dev-&...
2009 May 11
0
[PATCH 2/2] qemu-kvm: use common code for assigned msix
...evice;
typedef struct AssignedDevInfo AssignedDevInfo;
diff --git a/hw/msix.c b/hw/msix.c
index dcb7dbd..4f833c5 100644
--- a/hw/msix.c
+++ b/hw/msix.c
@@ -127,7 +127,7 @@ void msix_write_config(PCIDevice *dev, uint32_t addr,
/* MSI enable bit is in byte 1 in FLAGS register */
unsigned flags_pos = dev->cap.msix + PCI_CAP_FLAGS + 1;
uint8_t orig, mask = PCI_MSIX_FLAGS_ENABLE >> 8;
- int i, enabled;
+ int i, changed = 0, enabled;
/* Slow but simple */
for (i = addr; i < addr + len; val >>= 8, ++i) {
@@ -136,8 +136,17 @@ void msix_write_config(PCIDevic...
2009 May 11
0
[PATCH 2/2] qemu-kvm: use common code for assigned msix
...evice;
typedef struct AssignedDevInfo AssignedDevInfo;
diff --git a/hw/msix.c b/hw/msix.c
index dcb7dbd..4f833c5 100644
--- a/hw/msix.c
+++ b/hw/msix.c
@@ -127,7 +127,7 @@ void msix_write_config(PCIDevice *dev, uint32_t addr,
/* MSI enable bit is in byte 1 in FLAGS register */
unsigned flags_pos = dev->cap.msix + PCI_CAP_FLAGS + 1;
uint8_t orig, mask = PCI_MSIX_FLAGS_ENABLE >> 8;
- int i, enabled;
+ int i, changed = 0, enabled;
/* Slow but simple */
for (i = addr; i < addr + len; val >>= 8, ++i) {
@@ -136,8 +136,17 @@ void msix_write_config(PCIDevic...