summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-21Merge branch 'jlledom-pci-memory-map' of ↵jlledom-pci-memory-mapJoan Lledó
ssh://git.savannah.gnu.org/srv/git/hurd/hurd into jlledom-pci-memory-map
2021-11-21pci-arbiter: get rid of struct pci_user_dataJoan Lledó
We got a new RPC in the kernel to get the pager
2021-11-21pci-arbiter: user new RPC vm_region_create_proxy()Joan Lledó
2021-11-21pci-arbiter: get rid of memory_object_proxy_valid()Joan Lledó
The pagers has an offset already, always start the proxy at 0
2021-11-21pci-arbiter: allow mapping nested proxiesJoan Lledó
2021-11-21pci-arbiter: pcifs.c: fix identationJoan Lledó
2021-11-21pci_arbiter: new module for device mappingJoan Lledó
Relies on libpciaccess mapping methods
2021-11-21hurd-types: add struct pci_user_dataJoan Lledó
To store the pagers libpciaccess used to map the regions, so proxies can be created from them.
2021-11-21pci-arbiter: fix typoJoan Lledó
2021-11-21pci-arbiter: Stop storing the proxy for future requestsJoan Lledó
The proxy is not valid as future requests can ask for different protection level.
2021-11-21Revert "pci arbiter: add a memory object proxy to directory entries"Joan Lledó
This reverts commit dc859c3d4ba4015a2dae7c3333e63769238dcb3e. No need to store the proxy, as it's not valid for future requests
2021-11-21pci-arbiter: Fix bug on netfs_get_filemap()Joan Lledó
Take the right pager to create the proxy from
2021-11-21pci-arbiter: Implement netfs_get_filemap()Joan Lledó
* pci-arbiter/netfs_impl.c: * Implement callback: netfs_get_filemap * Check whether the file being mapped is a region file * Return the proxy if exists * Create a new proxy and return it
2021-11-21pci arbiter: add a memory object proxy to directory entriesJoan Lledó
* pci-arbiter/pcifs.h: * struct pcifs_dirent: New field: memproxy * pci-arbiter/pcifs.c: * create_dir_entry: Initialize memproxy to MACH_PORT_NULL
2021-11-21libnetfs: Implement RPC: io_mapMarcus Brinkmann
* libnetfs/iostubs.c: implement io_map
2021-11-21libnetfs: new user callback: netfs_get_filemap()Joan Lledó
Provide the user with a new callback so they can implement file mapping over file system nodes. * libnetfs/netfs.h: Add prototype for netfs_get_filemap
2021-11-18acpi: remove useless code in acpi.cAndrea Monaco
These were writing to an array and then never using it. Maybe they were useful for debugging. Message-Id: <87sfvtmn6r.fsf@autistici.org>
2021-11-13pci-arbiter: get rid of struct pci_user_dataJoan Lledó
We got a new RPC in the kernel to get the pager
2021-11-13pci-arbiter: user new RPC vm_region_create_proxy()Joan Lledó
2021-11-11console: fix listing of directory in netfs_get_direntsAndrea Monaco
Listing /dev/vcs which is translated by /hurd/console gives the following: $ ls /dev/vcs ls: reading directory '/dev/vcs': Invalid argument 1 2 3 4 5 6 That error is probably harmless but annoying. It is caused by netfs_get_dirents the last time it is called during listing, because it calls mmap with size = 0. * console/console.c (netfs_get_dirents): Do not call mmap when size is 0.
2021-10-30libnetfs: document return value of netfs_startupAndrea Monaco
* libnetfs/netfs.h: Ditto.
2021-10-16libdirmgt: remove empty librarySamuel Thibault
* libdirmgt: Remove directory.
2021-10-13libtreefs: remove unfinished and unused codeSamuel Thibault
* libtreefs: Remove directory.
2021-08-24configure: Allow libtirpc to be missingSamuel Thibault
The dependency on libtirpc is already optional in the Makefiles, we do not need to fail configure when it is missing. * configure.ac: Do not fail when libtirpc is not available.
2021-08-24Revert "rumpdisk: Use raw uncached character device rwdXd"Samuel Thibault
This reverts commit 517edb7fe7c614a683e18671afc52de8cabe8fdf. It seems to be actually breaking access to the disk.
2021-08-24rumpdisk: Ensure physical allocation of memory for DMA readsDamien Zammit
* rumpdisk/block-rump.c (rumpdisk_device_read): Memset the buffer after allocating it.
2021-08-24rumpdisk: Use raw uncached character device rwdXdDamien Zammit
This disables the rump buffer cache and avoids any magic translation that rump would do. * rumpdisk/block-rump.c (translate_name): Use `/dev/r%sd' format instead of `/dev/%sd'.
2021-08-22pci-arbiter: get rid of memory_object_proxy_valid()Joan Lledó
The pagers has an offset already, always start the proxy at 0
2021-08-22nfs/nfsd: Use libtirpcSamuel Thibault
Sun RPC is being phased out from glibc. * configure.ac: Detect libtirpc.pc, subst libtirpc_CFLAGS and libtirpc_LIBS. * config.make.in: Subst libtirpc_CFLAGS and libtirpc_LIBS. * nfs/Makefile, nfsd/Makefile: Include libtirpc_CFLAGS and libtirpc_LIBS * nfs/mount.c: Include <rpc/xdr.h> * nfsd/main.c: Likewise. * nfsd/ops.c: Likewise. * nfsd/cache.c: Undef TRUE/FALSE after including rpc/ headers. * nfsd/loop.c: Likewise.
2021-08-22rumpdisk: Simplify allocating data for device_readSamuel Thibault
* rumpdisk/block-rump.c (rumpdisk_device_read): Use vm_allocate/vm_deallocate instead of mmap/munmap.
2021-08-22rumpdisk: Add missing deallocation in device_writeSamuel Thibault
* rumpdisk/block-rump.c (rumpdisk_device_write): Call vm_deallocate after writing the data.
2021-08-22mach-defpager: Fix error reportingSamuel Thibault
* mach-defpager/main.c (main): After mlockall, report error from errno, not the value returned by mlockall.
2021-08-16libstore: Detect device-based access overflowSamuel Thibault
recnum_t is 32bit while offsets are 64bit. We need to detect the otherwise-silent truncation of the address. This happens here at 2TiB for 512-byte sectors. * libstore/device.c (dev_read, dev_write): Return EOVERFLOW on addresses that are larger than what the device interface can handle.
2021-08-16mach-defpager: Drop kalloc/kfreeSamuel Thibault
glibc is removing its malloc hooks, but gnumach now has support for mlockall, which we can just use instead of kalloc/kfree. * mach-defpager/main.c (main): Call mlockall. * mach-defpager/kalloc.c: Remove. * mach-defpager/kalloc.h: Remove. * mach-defpager/default_pager.c: Use malloc/free instead of kalloc/kfree. * mach-defpager/setup.c: Likewise.
2021-08-16exec: Fix and use mask for memory layoutSamuel Thibault
Gnumach's 0650a4ee30e3 implements support for high bits being set in the mask parameter of vm_map. This allowed to remove the rmh kludge in the dynamic linker. Exec now can and should use the mask for excluding parts of the memory layout.
2021-08-12ext2fs: Disable an expensive checkSamuel Thibault
disk_cache_block_is_ref calls hurd_ihash_find which is very expensive, so better disable the checks from record_global_poke and record_indir_poke unless building a debugging version.
2021-08-11assert_*_backtrace: Tell the compiler that failures are unlikelySamuel Thibault
2021-08-11libdiskfs: Flush node to disk before removing it from the cacheSamuel Thibault
libdiskfs' dosync goes through the cache to flush nodes to the disk. We thus have to flush a node to the disk before removing it from the cache in diskfs_try_dropping_softrefs.
2021-08-11ext2fs: clear inline dataSamuel Thibault
When truncating a node with inline data, it's safer to really frob the inline data, to make sure ext2fs does not wrongly interprete it as block numbers.
2021-08-11pci-arbiter, rumpdisk: Rename options for bootstrap chainSamuel Thibault
We may end up with an arbitrary series of bootstrap translators, which can know about each other through devices, and thus do not need any particular order except dependencies. The actual bootstrap order can thus be arbitrary (provided it respects dependencies), so better not hardcode it.
2021-08-11libmachdev: Fix startup_dosyncSamuel Thibault
We do not actually want to shut everything down. For instance, we still have to be able to start the acpi translator to perform the actual shutdown. What we however have to do is syncing the disks.
2021-08-11pci-arbiter: do not install as translator for nowSamuel Thibault
machdev installs the trivfs translator, not the netfs translator, and thus pci-arbiter would only show up as the pci device, not the pci filesystem.
2021-08-11pci-arbiter: Use _SERVERS_BUS macroSamuel Thibault
2021-08-11bootstrap: Fix passing proc server from FS to rumpdiskSamuel Thibault
libdiskfs was passing its own proc port, thus confusing the fsys_init call in rumpdisk.
2021-08-11rumpdisk: Make sure probe abort is printedSamuel Thibault
2021-08-11ext2fs: Fix block allocation on symlink->translator conversionSamuel Thibault
In diskfs_set_translator we need to truncate the existing node before allocating the block for the translator.
2021-08-11ext2fs: clear data when setting a translator on a symlinkv0.9.git20210811Samuel Thibault
e2fsck does not like seeing both blocks for the symlink and for the translation entry. This fixes the disappearance of /dev/urandom.
2021-08-10startup: Fix double-free on bogus startup_essential_task callSamuel Thibault
Returning an error will deallocate the RPC references. Reported-by: Sergey Bugaev <bugaevc@gmail.com>
2021-08-10ext2fs: Fix getting filemap for forcing delayed copiesSamuel Thibault
The delayed copy actually needs write access.
2021-07-11Fix /proc/?/exe values for bootstrap processesDamien Zammit
This makes libmachdev follow the exec case, and make sure to be waiting for all bootstrap processes by waiting for the FS process. Message-Id: <20210711012042.77920-1-damien@zamaudio.com>