aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* rumpdisk: Call thread_wire in all our threadsHEADmasterSamuel Thibault2025-02-051-2/+20
| | | | | So the kernel gives us vm_privilege so we can work even when memory is getting low.
* mach-defpager: comment on improving on lost dataSamuel Thibault2025-02-041-0/+5
| | | | Instead of killing the whole object.
* mach-defpager: also warn only once about read errorsSamuel Thibault2025-02-041-1/+7
|
* mach-defpager: Make it print warnings on out-of-swapSamuel Thibault2025-02-041-3/+35
| | | | To give explanation to processes suddenly crashing with SIGBUS.
* libdiskfs: Check for EROFS on io_prenotify and io_write tooSamuel Thibault2025-02-042-1/+7
| | | | | | | | This avoids Assertion `!diskfs_readonly' failed. messages at shutdown.
* Fix buildSamuel Thibault2025-02-041-0/+1
|
* libpipe: crash verbosely if mmap was to failSamuel Thibault2025-02-041-1/+7
|
* rumpdisk: Also link libirqhelp inSamuel Thibault2025-02-031-1/+1
| | | | Next rumpkernel upload will use it.
* procfs: Fix coding styleSamuel Thibault2025-01-271-22/+22
|
* Add partial /proc/cpuinfo implementationDiego Nieto Cid2025-01-271-0/+219
| | | | | | | * procfs/rootdir.c: (rootdir_gc_cpuinfo) new function (rootdir_entries) add entry for cpuinfo file (cpuinfo_x86, cpuinfo_aarch64) implementations for x86 and aarch64 respectively.
* libdiskfs: Avoid crashing on system shutdownSamuel Thibault2025-01-171-3/+5
| | | | | when processes which were upgraded didn't get restarted, and stop after making the filesystem readonly.
* typoSamuel Thibault2025-01-122-2/+2
|
* rumpusbdisk: Link completely to scsipi libraryDamien Zammit2025-01-121-1/+1
| | | | | | The usb stack also uses SCSI emulation for usb mass storage. Message-ID: <20250111082129.1566079-1-damien@zamaudio.com>
* libdiskfs: catch mmap failureSamuel Thibault2025-01-116-13/+42
| | | | Just backtrace for now
* rtc: Fix crash on readingSamuel Thibault2025-01-101-1/+1
|
* Header files: Install rtc.h header fileZhaoming Luo2025-01-021-1/+1
| | | | Message-ID: <20250102004552.26250-1-zhmingluo@163.com>
* sutils/MAKEDEV.sh: create /dev/rtc entryZhaoming Luo2024-12-311-0/+2
|
* startup: Do not emit ARGP_ERR_UNKNOWNSamuel Thibault2024-12-301-1/+0
| | | | | This is making startup completely ignore parameters when root= is passed first on the kernel command line.
* pci-arbiter: Fix long standing bug with PCI accessDamien Zammit2024-12-291-1/+7
| | | | | | | | | | Proxied memory was not rounded up to page size, causing error with vm_map'ing the underlying memory. WARNING: Assumes pci memory resources are at least page aligned. If not, this will expose part of next resource to userspace. Message-ID: <20241228073545.712061-1-damien@zamaudio.com>
* fifo: Do not detach pipe when there are still readersSamuel Thibault2024-12-291-3/+1
| | | | | | | Typically for a control socket we need to be able to connect several times to it. This notably fixes the control socket of sv.
* rumpdisk: Deallocate buffers in write during failure pathsDamien Zammit via Bug reports for the GNU Hurd2024-12-281-0/+2
| | | | Message-ID: <20241228063834.709656-1-damien@zamaudio.com>
* acpi: Better error handling on S_acpi_get_pci_irqDamien Zammit via Bug reports for the GNU Hurd2024-12-281-1/+1
| | | | | | Return positive error code when return value indicates error. Message-ID: <20241228073512.711999-1-damien@zamaudio.com>
* libirqhelp: Avoid loop between acpi and libirqhelpSamuel Thibault2024-12-271-0/+7
| | | | | Now that acpi uses libirqhelp, the latter shouldn't be trying to lookup the former through the FS.
* acpi: Look out for acpi_get_irq_number errorsSamuel Thibault2024-12-231-2/+7
| | | | Otherwise we would take the error as irq number.
* Fix port leaksSamuel Thibault2024-12-235-1/+10
| | | | get_privileged_ports adds a port ref, so we have to deallocate it.
* Add a description comment for the MIG type translation filesZhaoming Luo2024-12-1419-18/+37
| | | | | Signed-off-by: Zhaoming Luo <zhmingluo@163.com> Message-ID: <20241213005831.748151-1-zhmingluo@163.com>
* Add rtc translator and RTC CMOS driverZhaoming Luo2024-12-117-1/+555
| | | | | | | | | | | | | | | | | | | A /hurd/rtc translator will be created as, users can create a /dev/rtc device using the following command: ``` sudo settrans -c /dev/rtc /hurd/rtc ``` * Makefile: add rtc-cmos server into the compile chain * hurd/pioctl.defs: new file. Interfaces for rtc ioctl operations * hurd/rtc.h: new file. Interfaces for rtc device * rtc/Makefile: new file. Makefile for rtc server * rtc/main.c: new file. Initialisation for rtc translator * rtc/mig-mutate.h: new file. Type translation for rtc server * rtc/rtc-cmos_pioctl-ops.c: new file. The rtc-cmos server-side implementation Signed-off-by: Zhaoming Luo <zhmingluo@163.com> Message-ID: <20241211005415.507656-2-zhmingluo@163.com>
* smp: Simplify passing argvSamuel Thibault2024-12-091-3/+3
|
* sutils: Add smp tool to run process on slave processorsDamien Zammit via Bug reports for the GNU Hurd2024-12-092-1/+81
| | | | | | | | | | | | | | | Until we make gnumach fully parallel, we need a way to execute on slave processor set on smp-enabled gnumach. For example: $ /sbin/smp /bin/bash $ will launch a shell that executes commands only within slave pset, consisting of all processors except processor 0. We can thus test parallelism on Hurd in a controlled way. Message-ID: <20241126103747.353948-1-damien@zamaudio.com>
* Add some runsystem progress debugSamuel Thibault2024-12-083-3/+11
|
* lwip: Properly handle errors during initializationZhaoming Luo2024-12-081-6/+4
| | | | | | Reviewed-by: Sergey Bugaev <bugaevc@gmail.com> Message-ID: <20241208045237.1607-1-zhmingluo@163.com>
* Code refactorZhaoming Luo2024-12-074-4/+4
| | | | Message-ID: <20241207045245.1457-1-zhmingluo@163.com>
* libstore: Fix zero store writesSergey Bugaev2024-12-051-0/+1
| | | | | | | | | | We discard any written data, but we still need to set *amount. Not doing that is undefined behavior, and causes the write to appear to fail. This is the cause of a libzstd test failure on GNU/Hurd in particular. Reported-by: Diego Nieto Cid <dnietoc@gmail.com> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> Message-ID: <20241204113402.540235-1-bugaevc@gmail.com>
* shutdown: Try mach device acpi before /servers/acpiDamien Zammit via Bug reports for the GNU Hurd2024-11-101-1/+21
| | | | | | | | Since libmachdev cannot currently serve netfs as well as trivfs on a path, we need to allow connecting to the bootstrapped acpi server to shut down the machine. Message-ID: <20241110084135.3859485-3-damien@zamaudio.com>
* acpi, libmachdev: Add _forever variant of trivfs server loopDamien Zammit via Bug reports for the GNU Hurd2024-11-103-2/+16
| | | | | | | | The acpi server needs to survive after the shutdown notification, so it can serve S_acpi_sleep() RPC to actually shut down the machine. Therefore we need to keep the server alive and not respond to the trivfs goaway request. Message-ID: <20241110084135.3859485-2-damien@zamaudio.com>
* Comment fixesZhaoming Luo2024-11-084-8/+8
| | | | | | | | | | | | | I don't think ioctls.h is a good place looking for the subsystem id calculation, instead hurd/ioctls.defs, it contains the following codes: ``` /* Calculate the MiG subsystem (i.e. first message ID) for the RPCs produced by ioctl requests in the given group. */ #define IOC_GROUP_SUBSYSTEM(group) (100000 + ((group) - 'f') * 4000) ``` Message-ID: <20241108031619.312288-1-zhmingluo@163.com>
* More device_get_status count fixesSamuel Thibault2024-11-043-5/+5
|
* lwip: Fix integer type mismatch on x86_64Samuel Thibault2024-11-041-1/+1
|
* console-client: Isolate fb driver even more from vgaSamuel Thibault2024-10-283-47/+45
|
* console-client: Enable switching to gfx console when availableDamien Zammit2024-10-282-12/+39
| | | | | | | This compiles in and enables the new framebuffer codepath in the vga driver, if detected. Message-ID: <20241028080849.3196116-3-damien@zamaudio.com>
* console-client: Add graphical console video passthroughDamien Zammit2024-10-282-0/+774
| | | | | | | | | | | When bootloader sets a linear framebuffer mode and passes the required info to Hurd via multiboot info table, we can use this framebuffer as is. Otherwise, fall back to EGA text mode as before. This is just the new framebuffer code as a separate commit. Message-ID: <20241028080849.3196116-2-damien@zamaudio.com>
* xkb: Fix delete key in consoleDamien Zammit2024-10-281-1/+1
| | | | | | Adding the missing NULL sentinel pointer allows delete key to function without crashing pc_kbd driver. Message-ID: <20241028080849.3196116-1-damien@zamaudio.com>
* Using NETIF_FOREACH to replace netif for-loopsZhaoming Luo2024-10-271-3/+3
| | | | | | | | | Come across NETIF_FOREACH in /usr/include/lwip/lwip/netif.h, but I'm not sure if it affects some self-contained stuff. netif.h belongs to liblwip-dev. Message-ID: <tencent_3A8C7926D4CB059A970F2B5046C547149409@qq.com>
* irqhelp: Add name of library to log_error messagesDamien Zammit2024-10-261-1/+1
| | | | Message-ID: <20241023003509.2994709-1-damien@zamaudio.com>
* adding a missing commentZhaoming Luo2024-10-241-0/+1
| | | | Adding a line of missing comment
* irqhelp: Dont bail when cannot connect to acpiDamien Zammit2024-10-241-5/+12
| | | | | | | | | As the acpi translator requires libirqhelp, we cannot fail when libirqhelp cannot connect to acpi translator, break the egg/chicken. acpi translator will only call the irqhelp api with fixed gsi during startup, so won't require itself to be started yet. Message-ID: <20241023003446.2994643-1-damien@zamaudio.com>
* acpi: Link to libirqhelpDamien Zammit2024-10-221-1/+1
| | | | | | This change is required when the libacpica library is updated to link with hurd library irqhelp. Message-ID: <20241021032136.2915779-2-damien@zamaudio.com>
* Define i386_get_xstate_size in libmachdev.Flavio Cruz2024-09-101-0/+6
| | | | | | libmachdev implements the mach_i386 routines, so we have to implement this one. Message-ID: <3pe32mbui3x3gueiyk5ybzrj54gkbwddlk6kqjconwg7jnxlc6@kgsaffiftak2>
* Revert "Include device/input.h in console-client"Samuel Thibault2024-09-101-1/+55
| | | | This reverts commit a698c6dafb63de4e69450b63ba7f4b71892c27e4.
* Include device/input.h in console-clientFlavio Cruz2024-09-091-55/+1
| | | | | | We avoid using repeated definitions and also update kd_event with the new 64bit compatible fields (rpc_time_value). Message-ID: <Y7zdiy1QtUz4RSY3@jupiter.tail36e24.ts.net>