[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC v9 04/18] vfio: make the 4 bytes aligned for capabilit
From: |
Chen Fan |
Subject: |
[Qemu-devel] [RFC v9 04/18] vfio: make the 4 bytes aligned for capability size |
Date: |
Tue, 9 Jun 2015 11:37:32 +0800 |
Signed-off-by: Chen Fan <address@hidden>
---
hw/vfio/pci.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index e056c49..52e8ad4 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -2481,7 +2481,8 @@ static void vfio_unmap_bars(VFIOPCIDevice *vdev)
*/
static uint8_t vfio_std_cap_max_size(PCIDevice *pdev, uint8_t pos)
{
- uint8_t tmp, next = 0xff;
+ uint8_t tmp;
+ uint16_t next = PCI_CONFIG_SPACE_SIZE;
for (tmp = pdev->config[PCI_CAPABILITY_LIST]; tmp;
tmp = pdev->config[tmp + 1]) {
--
1.9.3
- [Qemu-devel] [RFC v9 00/18] vfio-pci: pass the aer error to guest, Chen Fan, 2015/06/08
- [Qemu-devel] [RFC v9 01/18] vfio: extract vfio_get_hot_reset_info as a single function, Chen Fan, 2015/06/08
- [Qemu-devel] [RFC v9 03/18] pcie: modify the capability size assert, Chen Fan, 2015/06/08
- [Qemu-devel] [RFC v9 04/18] vfio: make the 4 bytes aligned for capability size,
Chen Fan <=
- [Qemu-devel] [RFC v9 02/18] vfio: squeeze out vfio_pci_do_hot_reset for support bus reset, Chen Fan, 2015/06/08
- [Qemu-devel] [RFC v9 06/18] aer: impove pcie_aer_init to support vfio device, Chen Fan, 2015/06/08
- [Qemu-devel] [RFC v9 05/18] vfio: add pcie extanded capability support, Chen Fan, 2015/06/08
- [Qemu-devel] [RFC v9 08/18] vfio: improve vfio_get_group to support adding group without devices, Chen Fan, 2015/06/08
- [Qemu-devel] [RFC v9 09/18] vfio: add ref for group to support own affected groups, Chen Fan, 2015/06/08
- [Qemu-devel] [RFC v9 07/18] vfio: add aer support for vfio device, Chen Fan, 2015/06/08
- [Qemu-devel] [RFC v9 10/18] get all affected groups for each device support aer, Chen Fan, 2015/06/08