aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2020-12-15 10:24:20 +0000
committerGitHub <noreply@github.com>2020-12-15 10:24:20 +0000
commit39a158b50590ca899e38d9c77a8508efcd0314ea (patch)
treed16e9ac0303b7431d1f7bb190958d350cc5ea34b /lib
parentf240c889171ab22e7b8b0b460792b0df94c335c1 (diff)
downloadlibvfio-user-39a158b50590ca899e38d9c77a8508efcd0314ea.zip
libvfio-user-39a158b50590ca899e38d9c77a8508efcd0314ea.tar.gz
libvfio-user-39a158b50590ca899e38d9c77a8508efcd0314ea.tar.bz2
remove vfu_get_pci_non_std_config_space() (#195)
Remove this API as well as vfu_pci_non_std_config_space_t. It's at best confusing to try to represent this area as if it's not just a normal part of the overall config space, and we don't really want an additional API for the extended space past either. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libvfio-user.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/libvfio-user.c b/lib/libvfio-user.c
index 042a473..fab68d5 100644
--- a/lib/libvfio-user.c
+++ b/lib/libvfio-user.c
@@ -1596,7 +1596,7 @@ vfu_setup_device_migration(vfu_ctx_t *vfu_ctx, vfu_migration_t *migration)
}
/*
- * Returns a pointer to the standard part of the PCI configuration space.
+ * Returns a pointer to the PCI configuration space.
*/
inline vfu_pci_config_space_t *
vfu_pci_get_config_space(vfu_ctx_t *vfu_ctx)
@@ -1605,16 +1605,6 @@ vfu_pci_get_config_space(vfu_ctx_t *vfu_ctx)
return vfu_ctx->pci.config_space;
}
-/*
- * Returns a pointer to the non-standard part of the PCI configuration space.
- */
-inline uint8_t *
-vfu_get_pci_non_std_config_space(vfu_ctx_t *vfu_ctx)
-{
- assert(vfu_ctx != NULL);
- return (uint8_t *)&vfu_ctx->pci.config_space->non_std;
-}
-
inline vfu_reg_info_t *
vfu_get_region_info(vfu_ctx_t *vfu_ctx)
{