linux-svsm icon indicating copy to clipboard operation
linux-svsm copied to clipboard

Running on Fedora 36

Open osteffenrh opened this issue 3 years ago • 0 comments

I ran into some issues then trying to use SVSM on Fedora 36. I know the main focus is Ubuntu 22.04 right now, but I'll leave this info here just in case.

OVMF crashes

The OVMF crashes right after the start when built on Fedora 36 (gcc 12).

Both of these workarounds to the trick:

  1. Disable LTO. See this patch by Alexey Kardashevskiy.
  2. Add -fno-omit-frame-pointer to CC_FLAGS , see https://edk2.groups.io/g/devel/message/90443

Building the Linux kernels

When building the Linux kernels for host and guest I found that I needed to apply these two commits to fix some build issues:

commit 879e518ad704859f7288f6732902dd115e45294a
Author: Kees Cook <[email protected]>
Date:   Sun Feb 13 10:24:43 2022 -0800

    libsubcmd: Fix use-after-free for realloc(..., 0)
commit 39372df4875060a5931b4bd09362e7689c3cfb96
Author: Josh Poimboeuf <[email protected]>
Date:   Mon Apr 18 09:50:21 2022 -0700

    libsubcmd: Fix OPTION_GROUP sorting

osteffenrh avatar Nov 28 '22 15:11 osteffenrh