[PATCH v2 gnumach] Add timing info to MACH_LOCK_MON lock monitoring

2023-07-21 Thread Damien Zammit
Booting to beginning of bootstrap with different number of cpus and checking the lock statistics where TIME is in milliseconds: Set MACH_LOCK_MON to 1 in configfrag.ac, then Configure options --enable-ncpus=8 --enable-kdb --enable-apic --disable-linux-groups -smp 1 db{0}> show all slocks

[PATCH gnumach] db_interface: Don't call db_on if MACH_KDB is off

2023-07-21 Thread Damien Zammit
Allows building of gnumach with --disable-kdb and --enable-ncpus > 1 --- i386/i386/db_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c index 5a4ace9f..06cbd5e0 100644 --- a/i386/i386/db_interface.c +++

[PATCH v3 hurd] pci: Add RPCs for taking and freeing io ports by region

2023-07-21 Thread Damien Zammit
This would allow pci-arbiter to control which io ports are accessed and pave the way to having granular access to io ports based on pci cards exposing their IO BARs. libpciaccess has convenient api for this kind of access, it allows opening and registering io ports by BAR. Therefore, we can