From 19b878d0f5fce0a6b61766ab392f75154aca5ea7 Mon Sep 17 00:00:00 2001 From: "Franklin \"Snaipe\" Mathieu" Date: Tue, 19 Sep 2023 11:43:29 +0200 Subject: [PATCH] mount,dev: add support for /dev/kvm This device is safe for unprivileged access, and is almost a must-have for running virtual machines with any reasonable performance. --- mount.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mount.c b/mount.c index 234ab86..b067f8e 100644 --- a/mount.c +++ b/mount.c @@ -258,6 +258,7 @@ void mount_entries(const char *root, const struct mount_entry *mounts, size_t nm { "random", S_IFCHR | 0666, makedev(1, 8) }, { "urandom", S_IFCHR | 0666, makedev(1, 9) }, { "net/tun", S_IFCHR | 0666, makedev(10, 200) }, + { "kvm", S_IFCHR | 0666, makedev(10, 232) }, }; for (size_t i = 0; i < lengthof(devices); ++i) {