diff options
author | John Levon <john.levon@nutanix.com> | 2021-04-23 10:18:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 10:18:33 +0100 |
commit | 0cdf7d25b54b26ab4078df956b0b5cdc4dc31b57 (patch) | |
tree | 7892a4ea4b82006ab04d497b46432affda6d9208 /lib | |
parent | 3acb97477f261bf11c866b5764deabe693607bc3 (diff) | |
download | libvfio-user-0cdf7d25b54b26ab4078df956b0b5cdc4dc31b57.zip libvfio-user-0cdf7d25b54b26ab4078df956b0b5cdc4dc31b57.tar.gz libvfio-user-0cdf7d25b54b26ab4078df956b0b5cdc4dc31b57.tar.bz2 |
reduce VFU_MAX_CAPS (#449)
Our current value of VFU_MAX_CAPS leads to a vfu_ctx_t that is way too large.
Reduce the value such that the vfu_ctx_t is under 8KB.
Fixes #446.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pci_caps.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pci_caps.h b/lib/pci_caps.h index cd72f56..4bef85d 100644 --- a/lib/pci_caps.h +++ b/lib/pci_caps.h @@ -36,10 +36,10 @@ #include "libvfio-user.h" /* - * This is an arbitrary value, but more than enough for max caps in extended - * config space. + * This is an arbitrary value we presume is enough: as we statically allocate + * based on this in struct vfu_ctx, we don't want it to get too big. */ -#define VFU_MAX_CAPS (1024) +#define VFU_MAX_CAPS (128) struct pci_cap; |