patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Alyssa Ross <hi@alyssa.is>
To: Demi Marie Obenour <demiobenour@gmail.com>,
	Spectrum OS Development <devel@spectrum-os.org>
Subject: Re: Spectrum OS management daemon?
Date: Fri, 22 Aug 2025 15:52:50 +0200	[thread overview]
Message-ID: <87wm6vbgzx.fsf@alyssa.is> (raw)
In-Reply-To: <8b76fb46-a04c-438e-9ff5-e3153ae6f53e@gmail.com>

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

Demi Marie Obenour <demiobenour@gmail.com> writes:

>> With proposals like this, it's important to communicate why it might be
>> an improvement over the current situation.  All of these things are
>> things we easily could do without needing a monolithic daemon.
>
> To me, there are a couple advantages of using one or more
> daemons for this work:
>
> 1. It makes privilege separation easier.  For instance, VMs that
>    crash can notify Cloud Hypervisor via a pvpanic interface, but
>    Cloud Hypervisor does not have the privileges to directly
>    inform the user of this in any reasonable way [^1].  Instead,
>    it should make an IPC call to a (socket-activated) service that
>    notifies the user and logs some information to a file, which
>    the user can choose to manually attack to a bug report if they
>    wish.

But that socket-activated service doesn't need to be a daemon!  It can
run when it's activated, and then exit, and be started again next time a
VM crashes, rather than taking up resources the whole time in between.

> 2. It avoids putting too much responsibility in the GUI.  Right
>    now, the obvious way to start an application is for the user
>    to click on a .desktop file, which runs the needed s6 commands
>    to start the application's VM and the services that VM relies
>    on.  Similarly, the obvious way to keep track of runtime state
>    (like "which application has which device attached to it") is
>    to have the GUI store all of that.  To me, this seems to make
>    the desktop environment itself a "god daemon", which I'd also
>    prefer to avoid.

Oh yes, for sure we're not having the desktop environment do it. :)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

      reply	other threads:[~2025-08-22 13:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-21  7:15 Spectrum OS management daemon? Demi Marie Obenour
2025-08-21 10:32 ` Alyssa Ross
2025-08-22  4:41   ` Demi Marie Obenour
2025-08-22 13:52     ` Alyssa Ross [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=87wm6vbgzx.fsf@alyssa.is \
    --to=hi@alyssa.is \
    --cc=demiobenour@gmail.com \
    --cc=devel@spectrum-os.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.
Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

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