aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrej Utz2019-06-05 10:39:00 -0500
committerJan Kiszka2019-06-07 02:02:27 -0500
commitd07b0dcba4837e2f5cc9799d777a32b1ab5f7936 (patch)
tree1d5fd657d8d24467f7b327bf42a28cd013a83982
parentf7604e0b4beda5985aceebe50228c3e14abe4d0b (diff)
downloadti-jailhouse-d07b0dcba4837e2f5cc9799d777a32b1ab5f7936.tar.gz
ti-jailhouse-d07b0dcba4837e2f5cc9799d777a32b1ab5f7936.tar.xz
ti-jailhouse-d07b0dcba4837e2f5cc9799d777a32b1ab5f7936.zip
pyjailhouse: sysfs_parser: fix IVDM memory region definition
Second parameter to MemRegion must be its end (inclusive). Fixes: 5fe206927c05 ("tools: Implement ACPI IVRS table parser") Signed-off-by: Andrej Utz <andrej.utz@st.oth-regensburg.de> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
-rw-r--r--pyjailhouse/sysfs_parser.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pyjailhouse/sysfs_parser.py b/pyjailhouse/sysfs_parser.py
index fa32ba48..3db61980 100644
--- a/pyjailhouse/sysfs_parser.py
+++ b/pyjailhouse/sysfs_parser.py
@@ -481,7 +481,10 @@ def parse_ivrs(pcidevices, ioapics):
481 'regions. The memory at 0x%x will be mapped accessible ' 481 'regions. The memory at 0x%x will be mapped accessible '
482 'to all devices.' % mem_addr) 482 'to all devices.' % mem_addr)
483 483
484 regions.append(MemRegion(mem_addr, mem_len, 'ACPI IVRS', comment)) 484 regions.append(
485 MemRegion(mem_addr, mem_addr + mem_len - 1, 'ACPI IVRS',
486 comment))
487
485 elif type == 0x40: 488 elif type == 0x40:
486 raise RuntimeError( 489 raise RuntimeError(
487 'You board uses IVRS Rev. 2 feature Jailhouse doesn\'t ' 490 'You board uses IVRS Rev. 2 feature Jailhouse doesn\'t '