[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 62/62] vfio: Make vfio_get_region_info_cap public
From: |
David Gibson |
Subject: |
[Qemu-devel] [PULL 62/62] vfio: Make vfio_get_region_info_cap public |
Date: |
Tue, 12 Mar 2019 19:55:02 +1100 |
From: Alexey Kardashevskiy <address@hidden>
This makes vfio_get_region_info_cap() to be used in quirks.
Signed-off-by: Alexey Kardashevskiy <address@hidden>
Acked-by: Alex Williamson <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/vfio/common.c | 2 +-
include/hw/vfio/vfio-common.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index df2b4721bf..4374cc6176 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -729,7 +729,7 @@ static void vfio_listener_release(VFIOContainer *container)
}
}
-static struct vfio_info_cap_header *
+struct vfio_info_cap_header *
vfio_get_region_info_cap(struct vfio_region_info *info, uint16_t id)
{
struct vfio_info_cap_header *hdr;
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h
index 7624c9f511..fbf0966af4 100644
--- a/include/hw/vfio/vfio-common.h
+++ b/include/hw/vfio/vfio-common.h
@@ -189,6 +189,8 @@ int vfio_get_region_info(VFIODevice *vbasedev, int index,
int vfio_get_dev_region_info(VFIODevice *vbasedev, uint32_t type,
uint32_t subtype, struct vfio_region_info **info);
bool vfio_has_region_cap(VFIODevice *vbasedev, int region, uint16_t cap_type);
+struct vfio_info_cap_header *
+vfio_get_region_info_cap(struct vfio_region_info *info, uint16_t id);
#endif
extern const MemoryListener vfio_prereg_listener;
--
2.20.1
- [Qemu-devel] [PULL 51/62] ppc/pnv: add a OCC model for POWER9, (continued)
- [Qemu-devel] [PULL 51/62] ppc/pnv: add a OCC model for POWER9, David Gibson, 2019/03/12
- [Qemu-devel] [PULL 53/62] ppc/pnv: POWER9 XSCOM quad support, David Gibson, 2019/03/12
- [Qemu-devel] [PULL 45/62] ppc/pnv: lpc: fix OPB address ranges, David Gibson, 2019/03/12
- [Qemu-devel] [PULL 16/62] PPC: E500: Update u-boot to v2019.01, David Gibson, 2019/03/12
- [Qemu-devel] [PULL 52/62] ppc/pnv: extend XSCOM core support for POWER9, David Gibson, 2019/03/12
- [Qemu-devel] [PULL 58/62] target/ppc: Optimize xviexpdp() using deposit_i64(), David Gibson, 2019/03/12
- [Qemu-devel] [PULL 57/62] target/ppc: add HV support for POWER9, David Gibson, 2019/03/12
- [Qemu-devel] [PULL 55/62] ppc/pnv: add more dummy XSCOM addresses, David Gibson, 2019/03/12
- [Qemu-devel] [PULL 59/62] target/ppc: Optimize x[sv]xsigdp using deposit_i64(), David Gibson, 2019/03/12
- [Qemu-devel] [PULL 56/62] ppc/pnv: add a "ibm, opal/power-mgt" device tree node on POWER9, David Gibson, 2019/03/12
- [Qemu-devel] [PULL 62/62] vfio: Make vfio_get_region_info_cap public,
David Gibson <=
- [Qemu-devel] [PULL 54/62] ppc/pnv: activate XSCOM tests for POWER9, David Gibson, 2019/03/12
- [Qemu-devel] [PULL 61/62] Suppress test warnings about missing Spectre/Meltdown mitigations with TCG, David Gibson, 2019/03/12
- [Qemu-devel] [PULL 50/62] ppc/pnv: add a OCC model class, David Gibson, 2019/03/12
- [Qemu-devel] [PULL 48/62] ppc/pnv: add a LPC Controller model for POWER9, David Gibson, 2019/03/12
- [Qemu-devel] [PULL 60/62] spapr: Use CamelCase properly, David Gibson, 2019/03/12
- Re: [Qemu-devel] [PULL 00/62] ppc-for-4.0 queue 20190312, Peter Maydell, 2019/03/12
- [Qemu-devel] [PULL 00/62] ppc-for-4.0 queue 20190312, David Gibson, 2019/03/12