Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

work on bare-metal SNP support in node-installer #728

Merged
merged 9 commits into from
Jul 16, 2024

Conversation

Freax13
Copy link
Contributor

@Freax13 Freax13 commented Jul 15, 2024

This PR implements the first required steps for bare-metal SNP support and some drive-by fixes for the node-installer.

@Freax13 Freax13 requested a review from msanft July 15, 2024 12:16
@Freax13 Freax13 requested a review from katexochen as a code owner July 15, 2024 12:16
@Freax13 Freax13 added the no changelog PRs not listed in the release notes label Jul 15, 2024
packages/by-name/kata/runtime-class-files/package.nix Outdated Show resolved Hide resolved
packages/by-name/sev-ovmf/package.nix Outdated Show resolved Hide resolved
node-installer/node-installer.go Outdated Show resolved Hide resolved
node-installer/node-installer.go Outdated Show resolved Hide resolved
node-installer/node-installer.go Show resolved Hide resolved
node-installer/node-installer.go Outdated Show resolved Hide resolved
node-installer/node-installer.go Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
Freax13 added 3 commits July 16, 2024 08:24
Nodes on other platforms (notably bare-metal ones) obviously won't have
azure-specific annotations.
Previously we accidentally replaced the whole config with that one
line. We only intended the replace the line.
@Freax13 Freax13 force-pushed the tom/qemu-snp-baremetal branch from db40486 to fb276a5 Compare July 16, 2024 06:24
@Freax13 Freax13 requested a review from katexochen July 16, 2024 06:25
@Freax13 Freax13 force-pushed the tom/qemu-snp-baremetal branch from fb276a5 to fecf002 Compare July 16, 2024 06:32
node-installer/node-installer.go Outdated Show resolved Hide resolved
node-installer/node-installer_test.go Outdated Show resolved Hide resolved
node-installer/node-installer_test.go Outdated Show resolved Hide resolved
Freax13 and others added 2 commits July 16, 2024 09:17
This fixes a couple of bugs:
1. Executing the node-installer twice no longer results in the sections
   being added more than once.
2. We no longer emit empty sections that may already exist in the file.
3. We emit the correct tables names (previously we were missing the
   `plugins.` prefix.

Co-authored-by: Paul Meyer <[email protected]>
@Freax13 Freax13 force-pushed the tom/qemu-snp-baremetal branch from fecf002 to bc3b830 Compare July 16, 2024 07:27
@Freax13 Freax13 requested a review from katexochen July 16, 2024 07:27
Freax13 added 4 commits July 16, 2024 10:28
QEMU looks for these files when booting the VM and fails if it can't
find them.
Our fork has some fixes for the stepping issues with Genoa.
The hashes were incorrect. My guess is that we forgot to update them
when updating kata and didn't notice because we're not actually using
those files right now.
@Freax13 Freax13 force-pushed the tom/qemu-snp-baremetal branch from bc3b830 to 29d88ff Compare July 16, 2024 08:28
Copy link
Member

@katexochen katexochen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, great work!

@Freax13 Freax13 merged commit afb6b19 into main Jul 16, 2024
9 checks passed
@Freax13 Freax13 deleted the tom/qemu-snp-baremetal branch July 16, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog PRs not listed in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants