aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pci.c b/lib/pci.c
index 5a0cd1a..b34226b 100644
--- a/lib/pci.c
+++ b/lib/pci.c
@@ -498,6 +498,7 @@ vfu_pci_init(vfu_ctx_t *vfu_ctx, vfu_pci_type_t pci_type,
vfu_ctx->pci.type = pci_type;
vfu_ctx->pci.config_space = cfg_space;
vfu_ctx->reg_info[VFU_PCI_DEV_CFG_REGION_IDX].size = size;
+ vfu_ctx->reg_info[VFU_PCI_DEV_CFG_REGION_IDX].flags = VFU_REGION_FLAG_RW;
return 0;
}