|
Pablo Greco |
e6a3ae |
From a46c2139b02581c6d2462bc131930847efea8335 Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
e6a3ae |
From: David Gibson <dgibson@redhat.com>
|
|
Pablo Greco |
e6a3ae |
Date: Thu, 30 May 2019 04:37:27 +0100
|
|
Pablo Greco |
e6a3ae |
Subject: [PATCH 6/8] vfio: Make vfio_get_region_info_cap public
|
|
Pablo Greco |
e6a3ae |
MIME-Version: 1.0
|
|
Pablo Greco |
e6a3ae |
Content-Type: text/plain; charset=UTF-8
|
|
Pablo Greco |
e6a3ae |
Content-Transfer-Encoding: 8bit
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
RH-Author: David Gibson <dgibson@redhat.com>
|
|
Pablo Greco |
e6a3ae |
Message-id: <20190530043728.32575-6-dgibson@redhat.com>
|
|
Pablo Greco |
e6a3ae |
Patchwork-id: 88420
|
|
Pablo Greco |
e6a3ae |
O-Subject: [RHEL-8.1 qemu-kvm PATCH 5/6] vfio: Make vfio_get_region_info_cap public
|
|
Pablo Greco |
e6a3ae |
Bugzilla: 1710662
|
|
Pablo Greco |
e6a3ae |
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
Pablo Greco |
e6a3ae |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
Pablo Greco |
e6a3ae |
RH-Acked-by: Auger Eric <eric.auger@redhat.com>
|
|
Pablo Greco |
e6a3ae |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
From: Alexey Kardashevskiy <aik@ozlabs.ru>
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
This makes vfio_get_region_info_cap() to be used in quirks.
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
|
|
Pablo Greco |
e6a3ae |
Acked-by: Alex Williamson <alex.williamson@redhat.com>
|
|
Pablo Greco |
e6a3ae |
Message-Id: <20190307050518.64968-3-aik@ozlabs.ru>
|
|
Pablo Greco |
e6a3ae |
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
|
|
Pablo Greco |
e6a3ae |
(cherry picked from commit 013002f0fbf62545c0f5ea4c5c2d554a85919647)
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1710662
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
Signed-off-by: David Gibson <dgibson@redhat.com>
|
|
Pablo Greco |
e6a3ae |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
Pablo Greco |
e6a3ae |
---
|
|
Pablo Greco |
e6a3ae |
hw/vfio/common.c | 2 +-
|
|
Pablo Greco |
e6a3ae |
include/hw/vfio/vfio-common.h | 2 ++
|
|
Pablo Greco |
e6a3ae |
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
|
|
Pablo Greco |
e6a3ae |
index 3ab92bd..3dbccfc 100644
|
|
Pablo Greco |
e6a3ae |
--- a/hw/vfio/common.c
|
|
Pablo Greco |
e6a3ae |
+++ b/hw/vfio/common.c
|
|
Pablo Greco |
e6a3ae |
@@ -706,7 +706,7 @@ static void vfio_listener_release(VFIOContainer *container)
|
|
Pablo Greco |
e6a3ae |
}
|
|
Pablo Greco |
e6a3ae |
}
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
-static struct vfio_info_cap_header *
|
|
Pablo Greco |
e6a3ae |
+struct vfio_info_cap_header *
|
|
Pablo Greco |
e6a3ae |
vfio_get_region_info_cap(struct vfio_region_info *info, uint16_t id)
|
|
Pablo Greco |
e6a3ae |
{
|
|
Pablo Greco |
e6a3ae |
struct vfio_info_cap_header *hdr;
|
|
Pablo Greco |
e6a3ae |
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h
|
|
Pablo Greco |
e6a3ae |
index 36ee657..7607be3 100644
|
|
Pablo Greco |
e6a3ae |
--- a/include/hw/vfio/vfio-common.h
|
|
Pablo Greco |
e6a3ae |
+++ b/include/hw/vfio/vfio-common.h
|
|
Pablo Greco |
e6a3ae |
@@ -197,6 +197,8 @@ int vfio_get_region_info(VFIODevice *vbasedev, int index,
|
|
Pablo Greco |
e6a3ae |
int vfio_get_dev_region_info(VFIODevice *vbasedev, uint32_t type,
|
|
Pablo Greco |
e6a3ae |
uint32_t subtype, struct vfio_region_info **info);
|
|
Pablo Greco |
e6a3ae |
bool vfio_has_region_cap(VFIODevice *vbasedev, int region, uint16_t cap_type);
|
|
Pablo Greco |
e6a3ae |
+struct vfio_info_cap_header *
|
|
Pablo Greco |
e6a3ae |
+vfio_get_region_info_cap(struct vfio_region_info *info, uint16_t id);
|
|
Pablo Greco |
e6a3ae |
#endif
|
|
Pablo Greco |
e6a3ae |
extern const MemoryListener vfio_prereg_listener;
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
--
|
|
Pablo Greco |
e6a3ae |
1.8.3.1
|
|
Pablo Greco |
e6a3ae |
|