From: Jan Kiszka <[email protected]>

The VGA region may be listed under "VGA Bus 0000:00" for built-in GPUs.
That currently triggers the filtering rule "no empty buses" - which is
actually not true in this case. Make sure we add that region
nevertheless.

Signed-off-by: Jan Kiszka <[email protected]>
---
 pyjailhouse/sysfs_parser.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyjailhouse/sysfs_parser.py b/pyjailhouse/sysfs_parser.py
index d1de8c79..58910e8d 100644
--- a/pyjailhouse/sysfs_parser.py
+++ b/pyjailhouse/sysfs_parser.py
@@ -178,7 +178,8 @@ def parse_iomem(pcidevices):
     for r in regions:
         # Filter PCI buses in order to avoid mapping empty ones that might
         # require interception when becoming non-empty.
-        if r.typestr.startswith('PCI Bus'):
+        # Exception: VGA region
+        if r.typestr.startswith('PCI Bus') and r.start != 0xa0000:
             continue
 
         append_r = True
-- 
2.26.2

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/5c844f9f-3c61-9c84-3575-c65fc140ff95%40siemens.com.

Reply via email to