aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2019-09-05 07:32:27 -0400
committerFelipe Franciosi <felipe@nutanix.com>2019-09-05 16:45:35 +0100
commitd83aed8a16f18872af1e4dcd576f7b99d19c0720 (patch)
tree8cd989fc5a1b50861db2998567360ab948e06a27 /lib
parent1f9200905be52d8e26f23eda165636726f95072b (diff)
downloadlibvfio-user-d83aed8a16f18872af1e4dcd576f7b99d19c0720.zip
libvfio-user-d83aed8a16f18872af1e4dcd576f7b99d19c0720.tar.gz
libvfio-user-d83aed8a16f18872af1e4dcd576f7b99d19c0720.tar.bz2
don't hardcode default PCI config space size
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libmuser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libmuser.c b/lib/libmuser.c
index 5a4fb95..f9b7ccc 100644
--- a/lib/libmuser.c
+++ b/lib/libmuser.c
@@ -1103,7 +1103,7 @@ lm_ctx_create(lm_dev_info_t * const dev_info)
{
static const lm_reg_info_t default_cfg_reg_info = {
.flags = LM_REG_FLAG_RW,
- .size = 0x100
+ .size = PCI_CFG_SPACE_SIZE
};
lm_ctx->pci_info.reg_info[LM_DEV_CFG_REG_IDX] = default_cfg_reg_info;
}