Re: [EXT] Jailhouse: unhandled APIC access when booting a Linux guest

2022-12-05 Thread Andrej Utz
Hi all, On 05.12.22 15:41, Ralf Ramsauer wrote: [Adding Andrej] Hi Karim, On 05/12/2022 13:30, Karim Manaouil wrote: Hi Ralf, I am trying to boot a Linux guest (based on configs/x86/linux-x86-demo.c). I tried to debug and solve this issue for a while but no success so far. The cell is cre

Re: [PATCH v3 0/7] Configuration parser streamlining

2020-09-07 Thread Andrej Utz
Hi Jan, On 27/08/2020 11:33, Jan Kiszka wrote: On 25.08.20 16:50, Andrej Utz wrote: Theses patches mostly improve non-functional aspects of the Jailhouse configuration parser. Logic for unpacking binary data is consolidated into CStruct class, which all parser classes are inherited from. To

[PATCH v3 5/7] pyjailhouse: config_parser: parse pin_bitman in Irqchip as list

2020-08-25 Thread Andrej Utz
Just like the array of 4 in the C struct. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pyjailhouse/config_parser.py b/pyjailhouse/config_parser.py index 6ab769ff..a45aa7d7 100644 --- a

[PATCH v3 4/7] pyjailhouse: config_parser: use I/O stream instead slice of bytes

2020-08-25 Thread Andrej Utz
This enables more flexibility in input types as long as they provide binary I/O capabilities. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 59 +++- tools/jailhouse-cell-linux | 2 +- tools/jailhouse-config-check | 4 +-- 3 files changed, 34

[PATCH v3 0/7] Configuration parser streamlining

2020-08-25 Thread Andrej Utz
commit Changes v1->v2: - reference class variables via class object or class name - drop implicit PEP8 formatting - dropped unused patches Andrej Utz (7): pyjailhouse: config_parser: store binary format specification in struct.Struct pyjailhouse: config_parser: move parsing into c

[PATCH v3 1/7] pyjailhouse: config_parser: store binary format specification in struct.Struct

2020-08-25 Thread Andrej Utz
Improves its handling in the code and slightly increases the overall performance as well. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 50 +++- 1 file changed, 20 insertions(+), 30 deletions(-) diff --git a/pyjailhouse/config_parser.py b

[PATCH v3 3/7] pyjailhouse: config_parser: consolidate binary parsing into CStruct class

2020-08-25 Thread Andrej Utz
slot additions are ignored by CStruct as they must be constructed by the owning class itself. For complex parsing the class method `parse` needs to be overridden, see `CellConfig`. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 169 +++ 1 file

[PATCH v3 6/7] pyjailhouse: config_parser: consolidate header parsing

2020-08-25 Thread Andrej Utz
This also enables probing for a configuration type. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 99 +++- tools/jailhouse-cell-linux | 2 +- tools/jailhouse-config-check | 5 +- 3 files changed, 57 insertions(+), 49 deletions(-) diff --git a

[PATCH v3 2/7] pyjailhouse: config_parser: move parsing into class methods

2020-08-25 Thread Andrej Utz
... and use constructor for initialization only. This separation provides clarity on how to instantiate config components. This commit also serves as preparation for following one. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 93 +--- tools

[PATCH v3 7/7] tools: config-check: add CPU overlap and boundary check

2020-08-25 Thread Andrej Utz
Adds two checks for CPU specification: - overlap check detects two inmates using the same CPU(s) - boundary check detects CPU usage outside of what system config provides Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 14 -- tools/jailhouse-config-check | 28

Re: [PATCH-set] pyjailhouse: config_parser - jailhouse cell linux throws an error

2020-08-25 Thread Andrej Utz
rom next again. Please fix and resend. Ack. Will send a v3 soon'ish. Thanks, Andrej Utz Thanks, Jan j.kiszka...@gmail.com schrieb am Dienstag, 25. August 2020 um 12:20:10 UTC+2: On 25.08.20 10:37, contact@gmail.com wrote: > At the current head of the

[PATCH v2 2/7] pyjailhouse: config_parser: move parsing into class methods

2020-07-15 Thread Andrej Utz
... and use constructor for initialization only. This separation provides clarity on how to instantiate config components. This commit also serves as preparation for following one. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 93 +--- tools

[PATCH v2 5/7] pyjailhouse: config_parser: parse pin_bitman in Irqchip as list

2020-07-15 Thread Andrej Utz
Just like the array of 4 in the C struct. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pyjailhouse/config_parser.py b/pyjailhouse/config_parser.py index 6ab769ff..a45aa7d7 100644 --- a

[PATCH v2 7/7] tools: config-check: add CPU overlap and boundary check

2020-07-15 Thread Andrej Utz
Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 14 -- tools/jailhouse-config-check | 34 +++--- 2 files changed, 43 insertions(+), 5 deletions(-) diff --git a/pyjailhouse/config_parser.py b/pyjailhouse/config_parser.py index 2b47d9b6

[PATCH v2 0/7] Configuration parser streamlining

2020-07-15 Thread Andrej Utz
ropped unused patches Andrej Utz (7): pyjailhouse: config_parser: store binary format specification in struct.Struct pyjailhouse: config_parser: move parsing into class methods pyjailhouse: config_parser: consolidate binary parsing into CStruct class pyjailhouse: config_parser: use I/O s

[PATCH v2 4/7] pyjailhouse: config_parser: use I/O stream instead slice of bytes

2020-07-15 Thread Andrej Utz
This enables more flexibility in input types as long as they provide binary I/O capabilities. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 59 +++- tools/jailhouse-config-check | 4 +-- 2 files changed, 33 insertions(+), 30 deletions(-) diff

[PATCH v2 6/7] pyjailhouse: config_parser: consolidate header parsing

2020-07-15 Thread Andrej Utz
This also enables probing for a configuration type. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 99 +++- tools/jailhouse-config-check | 5 +- 2 files changed, 56 insertions(+), 48 deletions(-) diff --git a/pyjailhouse/config_parser.py b

[PATCH v2 1/7] pyjailhouse: config_parser: store binary format specification in struct.Struct

2020-07-15 Thread Andrej Utz
Improves its handling in the code and slightly increases the overall performance as well. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 50 +++- 1 file changed, 20 insertions(+), 30 deletions(-) diff --git a/pyjailhouse/config_parser.py b

[PATCH v2 3/7] pyjailhouse: config_parser: consolidate binary parsing into CStruct class

2020-07-15 Thread Andrej Utz
slot additions are ignored by CStruct as they must be constructed by the owning class itself. For complex parsing the class method `parse` needs to be overridden, see `CellConfig`. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 169 +++ 1 file

Re: Need help to run Linux in non-root cell

2020-07-08 Thread Andrej Utz
Hi all, On 02/07/2020 18:26, Ralf Ramsauer wrote: On 02/07/2020 18:17, Jan Kiszka wrote: On 02.07.20 18:07, Moritz Walker wrote:  Smells like a regression in that branch for non-root Linux. Is that  562b04e51bb5e2f04bf175383080333237067c63? Can you share you kernel config? Yes, its 562b0

Re: [PATCH 09/11] pyjailhouse: config_parser: add missing components

2020-07-06 Thread Andrej Utz
On 05/07/2020 23:07, Jan Kiszka wrote: On 30.06.20 08:47, Andrej Utz wrote: They may not be used right now but will certainly ease the usage of the parser API in the future. Besides I already had written them long ago, so it would be a pity to withehld them. "withheld" Ack.

Re: [PATCH 03/11] pyjailhouse: config_parser: consolidate binary parsing into CStruct class

2020-07-06 Thread Andrej Utz
On 05/07/2020 22:57, Jan Kiszka wrote: On 30.06.20 08:42, Andrej Utz wrote: The class slots define component fields in a more grounded way. This greatly simplifies definition of parseable compoments. The first `__slots__` tuple in each class defines a constant list of fields and also the

Re: [PATCH 01/11] pyjailhouse: config_parser: store binary format specification in struct.Struct

2020-07-06 Thread Andrej Utz
On 05/07/2020 22:55, Jan Kiszka wrote: On 30.06.20 08:42, Andrej Utz wrote: Improves its handling in the code and slightly increases the overall performance as well. Signed-off-by: Andrej Utz ---   pyjailhouse/config_parser.py | 51 ++--   1 file changed, 20

Re: [PATCH 01/11] pyjailhouse: config_parser: store binary format specification in struct.Struct

2020-07-06 Thread Andrej Utz
Hello Jan, thanks for reviewing. I will address the replies shortly. On 30/06/2020 21:12, Jan Kiszka wrote: On 30.06.20 08:42, Andrej Utz wrote: Improves its handling in the code and slightly increases the overall performance as well. Signed-off-by: Andrej Utz ---   pyjailhouse

[PATCH 09/11] pyjailhouse: config_parser: add missing components

2020-06-29 Thread Andrej Utz
They may not be used right now but will certainly ease the usage of the parser API in the future. Besides I already had written them long ago, so it would be a pity to withehld them. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 178 --- 1 file

[PATCH 10/11] pyjailhouse: config_parser: add ability to serialize C structs

2020-06-29 Thread Andrej Utz
This enables to create Jailhouse configurations without relying on a C compiler. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 124 +-- 1 file changed, 118 insertions(+), 6 deletions(-) diff --git a/pyjailhouse/config_parser.py b/pyjailhouse

[PATCH 11/11] pyjailhouse: rename config_parser to config

2020-06-29 Thread Andrej Utz
.. since it is able to generate configs now. Also remove 'Config' suffix from Cell and System class names as the config module itself declares them as such. Signed-off-by: Andrej Utz --- pyjailhouse/{config_parser.py => config.py} | 22 ++--- tools/jailhouse

[PATCH 06/11] pyjailhouse: config_parser: strip tailing null-terminator from cell name

2020-06-29 Thread Andrej Utz
Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyjailhouse/config_parser.py b/pyjailhouse/config_parser.py index 7b4872e0..a45aa7d7 100644 --- a/pyjailhouse/config_parser.py +++ b/pyjailhouse/config_parser.py

[PATCH 03/11] pyjailhouse: config_parser: consolidate binary parsing into CStruct class

2020-06-29 Thread Andrej Utz
slot additions are ignored by CStruct as they must be constructed by the owning class itself. For complex parsing the class method `parse` needs to be overriden, see `CellConfig`. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 169 +++ 1 file changed

[PATCH 01/11] pyjailhouse: config_parser: store binary format specification in struct.Struct

2020-06-29 Thread Andrej Utz
Improves its handling in the code and slightly increases the overall performance as well. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 51 ++-- 1 file changed, 20 insertions(+), 31 deletions(-) diff --git a/pyjailhouse/config_parser.py b

[PATCH 04/11] pyjailhouse: config_parser: use I/O stream instead slice of bytes

2020-06-29 Thread Andrej Utz
This enables more flexibility in input types as long as they provide binary I/O capabilities. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 59 +++- tools/jailhouse-config-check | 4 +-- 2 files changed, 33 insertions(+), 30 deletions(-) diff

[PATCH 02/11] pyjailhouse: config_parser: move parsing into class methods

2020-06-29 Thread Andrej Utz
... and use constructor for initialization only. This separation provides clarity on how to instantiate config components. This commit also serves as preparation for following one. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 88 +--- tools

[PATCH 07/11] pyjailhouse: config_parser: consolidate header parsing

2020-06-29 Thread Andrej Utz
This also enables probing for a configuration type. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 99 +++- tools/jailhouse-config-check | 5 +- 2 files changed, 56 insertions(+), 48 deletions(-) diff --git a/pyjailhouse/config_parser.py b

[PATCH 08/11] tools: config-check: add CPU overlap and boundary check

2020-06-29 Thread Andrej Utz
Also includes some minor PEP8 formatting. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 14 +-- tools/jailhouse-config-check | 48 2 files changed, 50 insertions(+), 12 deletions(-) diff --git a/pyjailhouse/config_parser.py b

[PATCH 05/11] pyjailhouse: config_parser: parse pin_bitman in Irqchip as list

2020-06-29 Thread Andrej Utz
Just like the array of 4 in the C struct. Signed-off-by: Andrej Utz --- pyjailhouse/config_parser.py | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pyjailhouse/config_parser.py b/pyjailhouse/config_parser.py index 3f20bc61..7b4872e0 100644 --- a

[PATCH 3/3] configs: x86: f2a88xm-hd3: remove unreferenced PCI capabilities

2020-06-09 Thread Andrej Utz
Signed-off-by: Andrej Utz --- configs/x86/f2a88xm-hd3.c | 43 +++ 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/configs/x86/f2a88xm-hd3.c b/configs/x86/f2a88xm-hd3.c index e5dfd78f..b529e6a6 100644 --- a/configs/x86/f2a88xm-hd3.c +++ b

[PATCH 1/3] tools: jailhouse-config-create: Improve code readability in template preprocessing

2020-06-09 Thread Andrej Utz
Move lines with similar context together and add some comments. This commit serves also as a preparation for the following commit. No functional change. Signed-off-by: Andrej Utz --- tools/jailhouse-config-create | 80 --- 1 file changed, 36 insertions(+), 44

[PATCH 2/3] tools: jailhouse-config-create: move PCI capability collector from sysfs_parser

2020-06-09 Thread Andrej Utz
Fixes generation of unreferenced PCI capabilities inside cell configs on AMD systems. They occur due to removal of the IOMMU from the PCI devices list after its capabilities have been collected. Signed-off-by: Andrej Utz --- pyjailhouse/sysfs_parser.py| 19 +-- tools

Re: AMD: non-root linux inmates

2020-03-05 Thread Andrej Utz
Jailhouse. For now I've appended a patch with a simple workaround for the kernel. Hope that helps. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/x86/kernel/apic/apic.c?h=v5.4.24#n1716 Thanks, Andrej Utz -- You received this message because you are subscr

[PATCH 2/2] tools: gcov: Adjust Gcov counter count for GCC versions >= 7.0

2019-12-20 Thread Andrej Utz
As in linux/kernel/gcov/gcov.h. Otherwise the extract tool will access Gcov data using garbage as an index and segfault. Signed-off-by: Andrej Utz --- tools/jailhouse-gcov-extract.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/jailhouse-gcov-extract.c b/tools

[PATCH 1/2] tools: gcov: Fix missing symbol when compiling on newer GCC versions

2019-12-20 Thread Andrej Utz
Starting from GCC 7.1, __gcov_exit is a new symbol expected to be implemented when using GCOV. Signed-off-by: Andrej Utz --- hypervisor/gcov.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hypervisor/gcov.c b/hypervisor/gcov.c index 6055bdd5..ec3a0d9e 100644 --- a/hypervisor/gcov.c

Re: [PATCH v4 12/13] pyjailhouse: x86: implement pio_regions generator

2019-10-15 Thread Andrej Utz
Hi Ralf, On 15.10.19 18:22, Ralf Ramsauer wrote: From: Andrej Utz This replaces the former static port list with actual port regions as listed in /proc/ioports. A whitelist selectively allows access to known ports (if present). PCI devices above 0xcff are permitted as well. However, not all

[PATCH v3 14/14] pyjailhouse: x86: implement pio_regions generator

2019-09-30 Thread Andrej Utz
figuration. Signed-off-by: Andrej Utz --- pyjailhouse/sysfs_parser.py | 60 +++ tools/jailhouse-config-create | 15 ++--- tools/root-cell-config.c.tmpl | 11 +++ 3 files changed, 66 insertions(+), 20 deletions(-) diff --git a/pyjailhouse/sysfs_parser.py b/p

[PATCH v3 13/14] pyjailhouse: sysfs_parser: simplify integer formatting for regions in config template

2019-09-30 Thread Andrej Utz
Signed-off-by: Andrej Utz --- pyjailhouse/sysfs_parser.py | 11 +++ tools/root-cell-config.c.tmpl | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/pyjailhouse/sysfs_parser.py b/pyjailhouse/sysfs_parser.py index 0f91d928..0dcc7475 100644 --- a/pyjailhouse

[PATCH v3 10/14] pyjailhouse: sysfs_parser: remove parse_iomem_file

2019-09-30 Thread Andrej Utz
From: Ralf Ramsauer We don't need it, call IORegionTree parser directly. Signed-off-by: Ralf Ramsauer --- pyjailhouse/sysfs_parser.py | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pyjailhouse/sysfs_parser.py b/pyjailhouse/sysfs_parser.py index 50ca62fc..d2b36876 1

[PATCH v3 12/14] pyjailhouse: sysfs_parser: abstract parts of MemRegion into IORegion

2019-09-30 Thread Andrej Utz
This prepares for the refactor in following commits. Signed-off-by: Andrej Utz --- pyjailhouse/sysfs_parser.py | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pyjailhouse/sysfs_parser.py b/pyjailhouse/sysfs_parser.py index 3027f82e..0f91d928 100644

[PATCH v3 11/14] pyjailhouse: sysfs_parser: move find_regions_by_name to IORegionTree

2019-09-30 Thread Andrej Utz
From: Ralf Ramsauer We will reuse that function, move it to IORegionTree. Signed-off-by: Ralf Ramsauer --- pyjailhouse/sysfs_parser.py | 42 + 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/pyjailhouse/sysfs_parser.py b/pyjailhouse/sysfs_par

[PATCH v3 09/14] pyjailhouse: sysfs_parser: entirely separate IO parsers

2019-09-30 Thread Andrej Utz
From: Ralf Ramsauer Everything is in place, we can separate IOMemRegionTree from IORegionTree. Let's give IORegionTree its own constructor. Signed-off-by: Ralf Ramsauer --- pyjailhouse/sysfs_parser.py | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pyjailho

Re: [PATCH v3 00/14] pyjailhouse: x86: Implement config generator for port I/O

2019-09-30 Thread Andrej Utz
Hi Jan, On 30.09.19 21:19, Jan Kiszka wrote: On 30.09.19 21:13, Andrej Utz wrote: This patch series eases configuration of port I/O devices for x86 plattforms by generating an initial PIO region list. To sustain previous behavior, most entries are disabled (commented out). Only whitelisted

[PATCH v3 07/14] pyjailhouse: sysfs_parser: move parse_iomem_file to the new parser

2019-09-30 Thread Andrej Utz
From: Ralf Ramsauer Move the next part to the new class: the whole file parser. For the moment, this leaves an ugly one-liner in parse_iomem_file, but let's keep it for the moment -- we'll clean that up later. Signed-off-by: Ralf Ramsauer --- pyjailhouse/sysfs_parser.py | 50 +

[PATCH v3 05/14] pyjailhouse: sysfs_parser: simplify statement

2019-09-30 Thread Andrej Utz
From: Ralf Ramsauer No functional change. Signed-off-by: Ralf Ramsauer --- pyjailhouse/sysfs_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyjailhouse/sysfs_parser.py b/pyjailhouse/sysfs_parser.py index 464b6a80..b0a9bf44 100644 --- a/pyjailhouse/sysfs_parser.py

[PATCH v3 04/14] pyjailhouse: sysfs_parser: minor stylistic fixups

2019-09-30 Thread Andrej Utz
From: Ralf Ramsauer The sysfs_parser is written in python and not in C. We can save some parentheses. No functional change. Signed-off-by: Ralf Ramsauer --- pyjailhouse/sysfs_parser.py | 29 + 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/pyjailho

[PATCH v3 00/14] pyjailhouse: x86: Implement config generator for port I/O

2019-09-30 Thread Andrej Utz
code paths for memory region generation are cleaned up and streamlined. Andrej Utz (4): tools: jailhouse-config-create: Rename regions to mem_regions in preparation for port_regions pyjailhouse: sysfs_parser: abstract parts of MemRegion into IORegion pyjailhouse: sysfs_parser: simplify

[PATCH v3 08/14] pyjailhouse: sysfs_parser: make regions_split_by_kernel static

2019-09-30 Thread Andrej Utz
From: Ralf Ramsauer No need to access our own tree, make this method static. This allows us to fully seperate IORegionTree from IOMemRegionTree soon. Signed-off-by: Ralf Ramsauer --- pyjailhouse/sysfs_parser.py | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/p

[PATCH v3 03/14] pyjailhouse: sysfs_parser: remove dead code

2019-09-30 Thread Andrej Utz
From: Ralf Ramsauer There are no callers of __str__. Remove it. Seems to be a development artifact of earlier versions. Signed-off-by: Ralf Ramsauer --- pyjailhouse/sysfs_parser.py | 11 --- 1 file changed, 11 deletions(-) diff --git a/pyjailhouse/sysfs_parser.py b/pyjailhouse/sysfs_p

[PATCH v3 02/14] tools: jailhoues-cell-linux: cosmetic fixup

2019-09-30 Thread Andrej Utz
From: Ralf Ramsauer Just for the sake of consistency: s/memregion/mem_region/. This is the only spot where we still had memregion instead of mem_region. Signed-off-by: Ralf Ramsauer --- tools/jailhouse-cell-linux | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools

[PATCH v3 06/14] pyjailhouse: sysfs_parser: introduce new class IORegionTree

2019-09-30 Thread Andrej Utz
From: Ralf Ramsauer Do this step by step. First of all, let's create a new routine that is able to parse a line from /proc/iomem or /proc/ioports. Both files share the same layout, so we can use a common parser. Passing the destination type of the entry to the parser allows to share code. Signe

[PATCH v3 01/14] tools: jailhouse-config-create: Rename regions to mem_regions in preparation for port_regions

2019-09-30 Thread Andrej Utz
Signed-off-by: Andrej Utz Signed-off-by: Ralf Ramsauer --- tools/jailhouse-config-create | 10 +- tools/root-cell-config.c.tmpl | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/jailhouse-config-create b/tools/jailhouse-config-create index 55601a6d

Re: [PATCH] pyjailhouse: Remove superfluous definition and fix linter warnings

2019-09-30 Thread Andrej Utz
Hi Jan, On 30.09.19 18:37, Jan Kiszka wrote: On 30.09.19 16:52, Andrej Utz wrote: 'vector_size' was set, but not used. No functional change. Fixes: f6fef92ffaba ("pyjailhouse: sysfs_parser: Add more precise length of some extended caps") Signed-off-by: Andrej Ut

[PATCH] pyjailhouse: Remove superfluous definition and fix linter warnings

2019-09-30 Thread Andrej Utz
'vector_size' was set, but not used. No functional change. Fixes: f6fef92ffaba ("pyjailhouse: sysfs_parser: Add more precise length of some extended caps") Signed-off-by: Andrej Utz --- pyjailhouse/sysfs_parser.py | 9 + 1 file changed, 5 insertions(+), 4 deleti

Re: [PATCH v2 2/2] pyjailhouse: x86: implement pio_bitmap generator

2019-07-12 Thread Andrej Utz
Hi all, On 12.07.19 17:59, Ralf Ramsauer wrote: Hi, On 6/21/19 12:06 AM, Andrej Utz wrote: This replaces the old static port list with actual port regions from '/proc/ioports'. The static regions from said list are kept and override the data in case of region overlap to retain c

Re: [PATCH] pyjailhouse: sysfs_parser: Ignore empty PCI bus regions

2019-07-02 Thread Andrej Utz
On 02.07.19 16:12, Jan Kiszka wrote: On 02.07.19 15:58, Andrej Utz wrote: On some systems the config generator permissively maps huge chunks of PCI Bus MMIO space. This area needs to be intercepted by the hypervisor, as parts of ivshmem-net devices may be behind that area. Just the make

[PATCH] pyjailhouse: sysfs_parser: Ignore empty PCI bus regions

2019-07-02 Thread Andrej Utz
On some systems the config generator permissively maps huge chunks of PCI Bus MMIO space. This area needs to be intercepted by the hypervisor, as parts of ivshmem-net devices may be behind that area. Hence, ignore such regions. Signed-off-by: Andrej Utz --- pyjailhouse/sysfs_parser.py | 4

Re: [PATCH v2 2/2] pyjailhouse: x86: implement pio_bitmap generator

2019-06-30 Thread Andrej Utz
Hello Henning, On 28/06/2019 10:29, Henning Schild wrote: > Hey Andrej, > > this feature was already proposed and discussed before, but never > resulted in patches getting merged. > > https://groups.google.com/d/topic/jailhouse-dev/BSfMKio91BQ/discussion > > I did not look into it yet. But you

[PATCH v2 1/2] pyjailhouse: sysfs_parser: generalize IOMemRegion as IOMap

2019-06-20 Thread Andrej Utz
This allows us to use the 'iomem' file format parsing more flexible i.e. for ioports. Signed-off-by: Andrej Utz --- pyjailhouse/sysfs_parser.py | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/pyjailhouse/sysfs_parser.py b/p

[PATCH v2 2/2] pyjailhouse: x86: implement pio_bitmap generator

2019-06-20 Thread Andrej Utz
figuration. Signed-off-by: Andrej Utz --- pyjailhouse/sysfs_parser.py | 150 ++ tools/jailhouse-config-create | 26 ++ tools/root-cell-config.c.tmpl | 31 --- 3 files changed, 176 insertions(+), 31 deletions(-) diff --git a/pyjailhouse/sysfs_parser.py b/p

Re: [PATCH 2/2] pyjailhouse: x86: implement pio_bitmap generator

2019-06-18 Thread Andrej Utz
On 18.06.19 18:04, Jan Kiszka wrote: On 18.06.19 17:55, Andrej Utz wrote: Hi Jan, On 07.06.19 09:23, Jan Kiszka wrote: On 05.06.19 18:17, Andrej Utz wrote: This replaces the old static port list with actual port regions from '/proc/ioports'. The static regions from said list ar

Re: [PATCH 2/2] pyjailhouse: x86: implement pio_bitmap generator

2019-06-18 Thread Andrej Utz
Hi Jan, On 07.06.19 09:23, Jan Kiszka wrote: On 05.06.19 18:17, Andrej Utz wrote: This replaces the old static port list with actual port regions from '/proc/ioports'. The static regions from said list are kept and override the data in case of region overlap to retain compab

[PATCH 1/2] pyjailhouse: sysfs_parser: generalize IOMemRegion as IOMap

2019-06-05 Thread Andrej Utz
This refactor allows us amore flexible use of the 'iomem' file format parsing i.e. for ioports in the following commit. No functional change. Signed-off-by: Andrej Utz --- pyjailhouse/sysfs_parser.py | 30 ++ 1 file changed, 14 insertions(+), 16 deletion

[PATCH 2/2] pyjailhouse: x86: implement pio_bitmap generator

2019-06-05 Thread Andrej Utz
figuration. Signed-off-by: Andrej Utz --- pyjailhouse/sysfs_parser.py | 135 ++ tools/jailhouse-config-create | 14 +--- tools/root-cell-config.c.tmpl | 15 ++-- 3 files changed, 142 insertions(+), 22 deletions(-) diff --git a/pyjailhouse/sysfs_parser.py b/p

[PATCH] pyjailhouse: sysfs_parser: fix IVDM memory region definition

2019-06-05 Thread Andrej Utz
Second parameter to MemRegion must be its end (inclusive). Fixes: 5fe206927c05 ("tools: Implement ACPI IVRS table parser") Signed-off-by: Andrej Utz --- pyjailhouse/sysfs_parser.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyjailhouse/sysfs_parser.py b/p

Running apic-demo trapfree without x2APIC

2019-05-09 Thread Andrej Utz
ary will use x2APIC access methods which will be translated by JH into native xAPIC access. If we switch to native xAPIC access in apic-demo, would it still need hypervisor interception? Also how far is AVIC from being usable? Thanks, Andrej Utz -- You received this message because you

Re: Running on AMD Ryzen

2019-04-04 Thread Andrej Utz
On 27/03/2019 17:50, Henning Schild wrote: > Am Wed, 27 Mar 2019 17:15:37 +0100 > schrieb Ralf Ramsauer : > >> On 3/26/19 6:03 PM, Jan Kiszka wrote: >>> On 26.03.19 17:41, Ralf Ramsauer wrote: >>>> Hi Jan, >>>> >>>> On 3/25/19 4:03

Re: Config generator ignoring usefull iomem regions

2019-04-04 Thread Andrej Utz
On 04/04/2019 19:19, Jan Kiszka wrote: > On 04.04.19 19:02, Andrej Utz wrote: >> Hello everyone, >> >> after recompiling the kernel (minor changes), I noticed a big >> reduction of mmio regions after regenerating the root cell config with >> critical hardware l

Config generator ignoring usefull iomem regions

2019-04-04 Thread Andrej Utz
7;d like to know the rationale behind this. Thanks, Andrej Utz -- 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 jailhouse-dev+unsubscr...@googleg

[PATCH] pyjailhouse: sysfs_parser: Fix wrong IVRS device ID for IOAPIC

2019-03-26 Thread Andrej Utz
ement ACPI IVRS table parses") Signed-off-by: Andrej Utz Signed-off-by: Ralf Ramsauer --- pyjailhouse/sysfs_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyjailhouse/sysfs_parser.py b/pyjailhouse/sysfs_parser.py index 552c9462..46c95fc2 100644 --- a/p

Running on AMD Ryzen

2019-03-25 Thread Andrej Utz
PU2 back online. Linux version: 4.19.15-rt11-1-rt-lts-jailhouse+ SMP PREEMPT RT (from github/siemens/linux) HyperThreading: disabled in BIOS Thanks, Andrej Utz -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group