Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Package `xen' creates service that spams dmesg when no hypervisor is running
@ 2020-01-31  6:09 voidlinux-github
  2020-08-08 11:55 ` ashpooljh
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: voidlinux-github @ 2020-01-31  6:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1350 bytes --]

New 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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-04-29  2:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-31  6:09 [ISSUE] Package `xen' creates service that spams dmesg when no hypervisor is running 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 ` [ISSUE] [CLOSED] " github-actions

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).