mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add a config_size method to VirtioDevice and use it when building the PCI device configuration capability. The transport advertises the size reported by the device and omits the capability entirely when the size is zero, because the virtio driver rejects a zero length capability. The method defaults to None, so every device keeps its current capability size. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>