[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pci-arbiter: Implement mapping for ROM files

From: Joan Lledó
Subject: pci-arbiter: Implement mapping for ROM files
Date: Mon, 15 Aug 2022 18:15:19 +0200

Helllo Hurd,

I wrote a patch to allow mapping ROM files from the arbiter file system.

In order to achieve this, the arbiter first allocates and copies the entire 
device ROM in its space the first time it's accessed, and returns a proxy to 
that memory region when a client requests a ROM filemap.

This has the obvious drawback of each arbiter instance having to copy all 
devices ROMs into its space. It would be better to get the ROM physical address 
somehow and map it into the arbiter space the same way we do for BAR regions, 
but (AFAIK) libpciaccess doesn't provide a way for a client to get the ROM 
physical address, only the ROM size is available.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]