From: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] Package `xen' creates service that spams dmesg when no hypervisor is running
Date: Fri, 29 Apr 2022 04:13:29 +0200 [thread overview]
Message-ID: <20220429021329.uhCTOL3GyoYEFNotbBe4tIlmJEPnuS8sRqWsTiAf9yM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18676@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1353 bytes --]
Closed issue by xelxebar on void-packages repository
https://github.com/void-linux/void-packages/issues/18676
Description:
### Symptom
With the `xen` package installed, and booting *without* the hypervisor, dmesg gets spammed with the following message once every second:
[000000.000000] xen_evtchn: unknown parameter 'xen-gnttalloc' ignored
### Cause
The problem can be traced back to the `xenstored` service installed by the `xen` package:
$ grep xen-gnttalloc /etc/sv/xenstored/run
modprobe -q xen-evtchn xen-gnttalloc || exit 1
This modprobe fails (logging our error) causing the service to fail. Thus `runit` (futually) tries to restart the service *ad infinitum*, leading to the dmesg spam.
### Potential Solution
The `xenstored` service should gracefully degrade to a noop in the case when xen isn't running. One way we can do this is by checking `xl list`. The following patch to shows a workaround that functions on my machine:
--- /etc/sv/xenstored/run 2020-01-31 15:03:46.619346755 +0900
+++ /etc/sv/xenstored/run 2020-01-31 15:03:35.912144255 +0900
@@ -1,4 +1,5 @@
#!/bin/sh
+xl list >/dev/null 2>&1 || exit
[ ! -d /run/xen ] && mkdir -p /run/xen
modprobe -q xen-evtchn xen-gnttalloc || exit 1
mountpoint -q /proc/xen || mount -t xenfs xenfs /proc/xen
prev parent reply other threads:[~2022-04-29 2:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-31 6:09 [ISSUE] " voidlinux-github
2020-08-08 11:55 ` ashpooljh
2021-02-15 6:06 ` ericonr
2021-02-16 21:40 ` CMB
2021-02-16 21:52 ` ericonr
2022-04-15 2:13 ` github-actions
2022-04-29 2:13 ` github-actions [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220429021329.uhCTOL3GyoYEFNotbBe4tIlmJEPnuS8sRqWsTiAf9yM@z \
--to=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).