From 8b4089ad1164ef0d98d6d777de63de2aa25a1d8a Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Tue, 22 Jun 2021 15:21:56 +0100 Subject: disable EROM (#572) Signed-off-by: Thanos Makatos Reviewed-by: John Levon --- lib/pci.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/pci.c b/lib/pci.c index 4875b25..bd3b4d2 100644 --- a/lib/pci.c +++ b/lib/pci.c @@ -200,6 +200,8 @@ handle_erom_write(vfu_ctx_t *ctx, vfu_pci_config_space_t *pci, pci->hdr.erom = 0; } else if (v == (uint32_t)~PCI_ROM_ADDRESS_ENABLE) { vfu_log(ctx, LOG_INFO, "EROM disable ignored"); + } else if (v == ~0U) { + vfu_log(ctx, LOG_INFO, "EROM not implemented"); } else { vfu_log(ctx, LOG_ERR, "bad write to EROM 0x%x bytes", v); return ERROR_INT(EINVAL); -- cgit v1.1