Re: [PATCH] rumpkernel: pci-userspace: Ask for permission to use PCI CONF2 registers

2022-08-21 Thread Damien Zammit
Samuel, I found out that PCI_CONF2 access method was deprecated in PCI v2.0, meaning we only care about reserving access to these ioports (c000-cfff) on hardware that was created circa 1992-1993, eg 80486 and first pentiums. [1] Also, when PCI_CONF2 range is accessed for pci configuration, you mus

Re: [PATCH] rumpkernel: pci-userspace: Ask for permission to use PCI CONF2 registers

2022-08-21 Thread Samuel Thibault
Damien Zammit, le dim. 21 août 2022 07:00:49 +, a ecrit: > diff --git a/debian/patches/machirqdev.diff b/debian/patches/machirqdev.diff > index 2f74ca619..41894d288 100644 > --- a/debian/patches/machirqdev.diff > +++ b/debian/patches/machirqdev.diff BTW, surely this patch and some others could

Re: [PATCH] rumpkernel: rules: Add -DNUSB_DMA=1 to build with DMA in usb

2022-08-21 Thread Samuel Thibault
Damien Zammit, le dim. 21 août 2022 07:02:26 +, a ecrit: > This allows DMA in rump kernel usb drivers, > stops an assert() crashing the rump kernel. Applied, thanks! > > --- > debian/rules | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/debian/rules b/debian/rules

Re: [PATCH] rumpkernel: piixide: Compile missing source files for rump lib

2022-08-21 Thread Samuel Thibault
Damien Zammit, le dim. 21 août 2022 07:00:10 +, a ecrit: > Add missing ata_subr.c and ata_recovery.c to PIIXIDE driver Applied, thanks! > --- > debian/patches/piixide-rump.diff | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/debian/patches/piixide-rump.diff > b/deb

Re: [PATCH] rumpkernel: pci-userspace: Ask for permission to use PCI CONF2 registers

2022-08-21 Thread Samuel Thibault
Damien Zammit, le dim. 21 août 2022 07:00:49 +, a ecrit: > Rationale: QEMU allocates actual io ports in the 0xc000 - 0xcfff > range, therefore we still need to allow rump to access these ports, > in case they are allocated to real pci hardware. I'm a bit worried to let rump access cfg2 registe

Re: [PATCH] gnumach: vm_allocate_contiguous: Allow small power 2 alignments

2022-08-21 Thread Samuel Thibault
Applied, thanks! Damien Zammit, le dim. 21 août 2022 06:58:54 +, a ecrit: > This allows contiguous allocations aligned to values > smaller than one page, but still a power of 2, > by forcing the alignment to be to the nearest page. > > This works because PAGE_SIZE is a power of two. > > ---

[PATCH] rumpkernel: rules: Add -DNUSB_DMA=1 to build with DMA in usb

2022-08-21 Thread Damien Zammit
This allows DMA in rump kernel usb drivers, stops an assert() crashing the rump kernel. --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 3f2b637ad..2c8fc0648 100755 --- a/debian/rules +++ b/debian/rules @@ -40,7 +40,7 @@ overri

[PATCH] rumpkernel: pci-userspace: Ask for permission to use PCI CONF2 registers

2022-08-21 Thread Damien Zammit
Rationale: QEMU allocates actual io ports in the 0xc000 - 0xcfff range, therefore we still need to allow rump to access these ports, in case they are allocated to real pci hardware. --- debian/patches/machirqdev.diff | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff

[PATCH] rumpkernel: piixide: Compile missing source files for rump lib

2022-08-21 Thread Damien Zammit
Add missing ata_subr.c and ata_recovery.c to PIIXIDE driver --- debian/patches/piixide-rump.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/patches/piixide-rump.diff b/debian/patches/piixide-rump.diff index 716fe19f1..fd605b70a 100644 --- a/debian/patches/piixide-r