Re: pci-arbiter: Prevent mapping IO region files

2023-07-09 Thread Samuel Thibault
Hello, Joan Lledó, le mer. 05 juil. 2023 21:38:11 +0200, a ecrit: > On the other hand, in the past we discussed how to make IO spaces available > for users through the arbiter [1]. It seems the way to go is adding a new RPC > that checks for permissions, calls i386_io_perm_create() and returns

pci-arbiter: Prevent mapping IO region files

2023-07-05 Thread Joan Lledó
Hello, Time ago I sent some patches to implement mapping region and ROM files using mmap(). However, a BAR region can represent either memory or I/O space, and only the former should be allowed to be mapped, since I/O BARs don't contain physical memory addresses, but I/O addresses. I attached a