Re: Implement paging on the pci arbiter

2020-11-08 Thread Samuel Thibault
Hello, Joan Lledó, le dim. 08 nov. 2020 11:45:07 +0100, a ecrit: > - Would it be enough to add the range info to the memory_object_proxy > struct That looks sensible yes. > - Why is the proxy interface designed to work with arrays? Is vm_map > supposed to call vm_map_enter multiple times

Re: Implement paging on the pci arbiter

2020-11-08 Thread Joan Lledó
Hi, El 3/11/20 a les 23:13, Samuel Thibault ha escrit: > > That would probably work, yes. > > I got something pushed to my branch at [1]. But I found the implementation for pager proxies in gnu mach is incomplete. In particular I can't restrict a range to be mapped. I think I could fix it but

Re: Implement paging on the pci arbiter

2020-11-03 Thread Samuel Thibault
Hello, Joan Lledó, le mar. 03 nov. 2020 11:46:43 +0100, a ecrit: > So we can take the implementation of io_map from that patch, but adding > a check to ensure whatever returned by the user from netfs_get_filemap() > is a proxy object. Is there a way to check that? I don't find anything like that

Re: Implement paging on the pci arbiter

2020-11-03 Thread Joan Lledó
Hi, El 26/8/20 a les 17:01, Samuel Thibault ha escrit: > I'm unsure if libpager will be useful actually, since all you need is > to pass on a memory object clamped to the target physical memory. See > gnumach's support for proxy memory object, which possibly is just > enough. > > Samuel > I

Re: Implement paging on the pci arbiter

2020-08-27 Thread Samuel Thibault
Joan Lledó, le jeu. 27 août 2020 10:26:41 +0200, a ecrit: > El 27/8/20 a les 0:30, Samuel Thibault ha escrit: > > libpager/demuxer.c:pager_demuxer (struct pager_requests *requests, > > That's not the same pager_demuxer in the reference, it's a static > function and receives different parameters.

Re: Implement paging on the pci arbiter

2020-08-27 Thread Joan Lledó
El 27/8/20 a les 0:30, Samuel Thibault ha escrit: > libpager/demuxer.c:pager_demuxer (struct pager_requests *requests, That's not the same pager_demuxer in the reference, it's a static function and receives different parameters. It seems there were changes in the libpager's interface and the

Re: Implement paging on the pci arbiter

2020-08-26 Thread Samuel Thibault
Joan Lledó, le mer. 26 août 2020 10:24:49 +0200, a ecrit: > From this document I assumed I should create a pager for each region > file, call page_demuxer from the arbiter's demuxer and implement > callback functions. But it seems pager_demuxer() is not defined anymore ?

Re: Implement paging on the pci arbiter

2020-08-26 Thread Samuel Thibault
Hello, Joan Lledó, le mer. 26 août 2020 10:24:49 +0200, a ecrit: > I'm doing a research on how to allow arbiter clients to map bar regions > into their spaces. It seems to me the approach should be: > > 1.- Make the arbiter implement paging > 2.- Expect clients to mmap() the region files the

Implement paging on the pci arbiter

2020-08-26 Thread Joan Lledó
Hi, I'm doing a research on how to allow arbiter clients to map bar regions into their spaces. It seems to me the approach should be: 1.- Make the arbiter implement paging 2.- Expect clients to mmap() the region files the arbiter generates Sounds that correct for you? I'm a bit confused with