Update binary to a version that fixes the issue when mem > 3328
MiB (wrapping around the MMIO hole), matching "bc48d49" from
https://github.com/slp/qboot-krunfw
Signed-off-by: Sergio Lopez <slp@redhat.com>
Allow booting APs with SEV-ES enabled, by setting the trampoline at a
well-known location, and moving sev_es_trampoline_start to the
beginning of realmode's .text.
Signed-off-by: Sergio Lopez <slp@redhat.com>
Update binary to a version with SEV-ES support, matching "5ec4468"
from https://github.com/slp/qboot-krunfw
Signed-off-by: Sergio Lopez <slp@redhat.com>
For running under SEV, we need to instruct virtio-mmio to use bounce
buffers through the DMA API, but there's currently no way of
signalling this using the device properties.
Force the use of the DMA API until there's a proper way to do this.
Signed-off-by: Sergio Lopez <slp@redhat.com>
Bundle qboot (used as FW by libkrun-SEV) and initrd into the
library. To simplify the build process, we import then as binary blobs
into the project. Their source code can be found at the following
repositories:
- https://github.com/slp/qboot-krunfw
- https://github.com/slp/initrd-krunfw
Signed-off-by: Sergio Lopez <slp@redhat.com>
Import patch https://lore.kernel.org/patchwork/patch/1369985/ for
fixing the build with newer binutils (was failing with 2.36-1.1.x86_64
on openSUSE Tumbleweed).
Addresses Issue #4.
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
Add a script for building the kernel inside a VM managed by
krunvm. This is specially useful for building the kernel on macOS.
Signed-off-by: Sergio Lopez <slp@redhat.com>
Even if sk_shutdown == SHUTDOWN_MASK, allow processing of OP_RST
packets. This prevents RST storms caused by dangling sockets.
Also, rename previous patch files to homogenize them.
Signed-off-by: Sergio Lopez <slp@redhat.com>
We don't really support restarting the conventional way, so ignore
"run_cmd" so we can fall back to an emergency sync and reboot.
Signed-off-by: Sergio Lopez <slp@redhat.com>
If the socket already has another wrapped socket, don't create a new
one.
This fixes a bug where would break s2vi when userspace calls to listen()
on an already listening socket to change its attributes.
Signed-off-by: Sergio Lopez <slp@redhat.com>
Rename symbols to include the krunfw prefix, and add the
"krunfw_get_version" function to keep track of API versions.
Signed-off-by: Sergio Lopez <slp@redhat.com>