nutanix / libvfio-user

framework for emulating devices in userspace
BSD 3-Clause "New" or "Revised" License
162 stars 51 forks source link

vfu_pci_init: initialize PCI config space flags #724

Closed tmakatos closed 1 year ago

tmakatos commented 1 year ago

vfu_pci_init() sets the size of the PCI config space but not the flags; vfu_realize_ctx() won't initialize the flags since the size if already set. vfu_pci_init() must initialize flags as well.

Signed-off-by: Thanos Makatos thanos.makatos@nutanix.com