From 36beb63be45ad1412562a98d9373a4c0bd91ab3d Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Mon, 4 Jul 2022 12:16:08 +0100 Subject: support for shadow ioeventfd (#698) When an ioeventfd is written to, KVM discards the value since it has no memory to write it to, and simply kicks the eventfd. This a problem for devices such a NVMe controllers that need the value (e.g. doorbells on BAR0). This patch allows the vfio-user server to pass a file descriptor that can be mmap'ed and KVM can write the ioeventfd value to this _shadow_ memory instead of discarding it. This shadow memory is not exposed to the guest. Signed-off-by: Thanos Makatos Reviewed-by: John Levon Change-Id: Iad849c94076ffa5988e034c8bf7ec312d01f095f --- test/py/test_pci_caps.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'test/py/test_pci_caps.py') diff --git a/test/py/test_pci_caps.py b/test/py/test_pci_caps.py index b83c06c..01f23a2 100644 --- a/test/py/test_pci_caps.py +++ b/test/py/test_pci_caps.py @@ -349,10 +349,6 @@ def test_pci_cap_write_px(mock_quiesce, mock_reset): expect=errno.EINVAL) -def to_bytes_le(n, length=1): - return n.to_bytes(length, 'little') - - def test_pci_cap_write_msix(): setup_pci_dev(realize=True) sock = connect_client(ctx) -- cgit v1.1