Linux Confidential Computing Development
 help / color / mirror / Atom feed
* Discussion on policies around minimum rust version for coconut-svsm
@ 2026-11-25 17:55 James Bottomley
  2026-11-25 18:32 ` Mahmoud Nagy Adam
  2026-11-26 12:27 ` Jörg Rödel
  0 siblings, 2 replies; 4+ messages in thread
From: James Bottomley @ 2026-11-25 17:55 UTC (permalink / raw)
  To: coconut-svsm, linux-coco

In the Wednesday coconut-svsm meeting I advocated for keeping this the
lowest version possible, in line with the way the kernel handles gcc
versioning, but since rust is a lot less mature than gcc, there are
more compelling reasons not to do this. However, the situation we
really want to avoid is moving too aggressively to a newer rust version
which then complicates actually doing a stable release of coconut
through a distribution.

Just in case it's instructive, the Linux Kernel actually maintains a
global and per-architecture minimum of gcc (checked in scripts/min-
tool-version.sh). The current minimum version of gcc is gcc-8, which is
way behind the latest gnu release of gcc-16. The last time it was
actually changed was in early 2025. The driver for the change was x86
needing gcc-8.1 for stack protector support:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a3e8fe814ad15c16735cdf394454a8bd96eb4d56

However Arnd Bergmann later raised it globally because there had been
no objections from any other architecture:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=118c40b7b50340bf7ff7e0adee8e3bab6e552c82

You can read the discussion in the links, but the compact summary is
"does anyone care ... no ... OK let's do it"

I think the coconut-svsm policy should be conservative; i.e. we try to
stay on the lowest possible rust version, starting with where we are
now (1.85 but shortly to be bumped to 1.90). However, if any forcing
function comes along that version should be increased. I think the two
forcing functions are

   1. Language feature we really need to help with or simplify the code
   2. cargo dependency hygiene (we need a version of our dependencies
      which is current with fixes and they may require a newer rust
      version to keep that currency)

but others may have things to add.

The other thing that came up is that eventually coconut-svsm will have
to be shipped by distributions and that means its minimum version must
overlap the build versions that distributions have chosen, so this
policy has to also be informed by the policies the distributions (both
enterprise like RHEL and community like Debian and Fedora) are going to
adopt ... which at least Red Hat promised to think about.

Are there any other considerations people can think of?

Regards,

James

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

end of thread, other threads:[~2026-11-26 12:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 17:55 Discussion on policies around minimum rust version for coconut-svsm James Bottomley
2026-11-25 18:32 ` Mahmoud Nagy Adam
2026-11-26 12:31   ` Jörg Rödel
2026-11-26 12:27 ` Jörg Rödel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox