-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Paul Meyer <[email protected]>
- Loading branch information
1 parent
8ee1b41
commit 55ae7ed
Showing
6 changed files
with
138 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 4f9225a214b76cf16b85c2c4af01b9140426135a Mon Sep 17 00:00:00 2001 | ||
From 5af1244f3ed285fcbbb98f68d7584ca9292e9688 Mon Sep 17 00:00:00 2001 | ||
From: Tom Dohrmann <[email protected]> | ||
Date: Fri, 5 Jul 2024 08:43:13 +0000 | ||
Subject: [PATCH 1/3] govmm: Directly pass the firwmare using -bios with SNP | ||
|
@@ -9,13 +9,13 @@ Subject: [PATCH 1/3] govmm: Directly pass the firwmare using -bios with SNP | |
1 file changed, 1 insertion(+), 3 deletions(-) | ||
|
||
diff --git a/src/runtime/pkg/govmm/qemu/qemu.go b/src/runtime/pkg/govmm/qemu/qemu.go | ||
index e752f8181..dadbe8b35 100644 | ||
index 6d71e28f9..4cc2239ec 100644 | ||
--- a/src/runtime/pkg/govmm/qemu/qemu.go | ||
+++ b/src/runtime/pkg/govmm/qemu/qemu.go | ||
@@ -388,9 +388,7 @@ func (object Object) QemuParams(config *Config) []string { | ||
objectParams = append(objectParams, fmt.Sprintf("cbitpos=%d", object.CBitPos)) | ||
objectParams = append(objectParams, fmt.Sprintf("reduced-phys-bits=%d", object.ReducedPhysBits)) | ||
objectParams = append(objectParams, "kernel-hashes=on") | ||
@@ -395,9 +395,7 @@ func (object Object) QemuParams(config *Config) []string { | ||
if object.SnpCertsPath != "" { | ||
objectParams = append(objectParams, fmt.Sprintf("certs-path=%s", object.SnpCertsPath)) | ||
} | ||
- | ||
- driveParams = append(driveParams, "if=pflash,format=raw,readonly=on") | ||
- driveParams = append(driveParams, fmt.Sprintf("file=%s", object.File)) | ||
|
@@ -24,5 +24,5 @@ index e752f8181..dadbe8b35 100644 | |
objectParams = append(objectParams, string(object.Type)) | ||
objectParams = append(objectParams, fmt.Sprintf("id=%s", object.ID)) | ||
-- | ||
2.45.2 | ||
2.45.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From ffbe9644ce1b2013a3678bf05e19ea21a2f60385 Mon Sep 17 00:00:00 2001 | ||
From 9be4faa0887716435e290beccef7f7bca0cb3960 Mon Sep 17 00:00:00 2001 | ||
From: Tom Dohrmann <[email protected]> | ||
Date: Mon, 8 Jul 2024 07:35:54 +0000 | ||
Subject: [PATCH 2/3] emulate CPU model that most closely matches the host | ||
|
@@ -12,10 +12,10 @@ attestation. | |
1 file changed, 12 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/src/runtime/virtcontainers/qemu_amd64.go b/src/runtime/virtcontainers/qemu_amd64.go | ||
index ade7356eb..ca8f9998c 100644 | ||
index 1d1be1711..6ebee26ce 100644 | ||
--- a/src/runtime/virtcontainers/qemu_amd64.go | ||
+++ b/src/runtime/virtcontainers/qemu_amd64.go | ||
@@ -188,7 +188,18 @@ func (q *qemuAmd64) cpuModel() string { | ||
@@ -191,7 +191,18 @@ func (q *qemuAmd64) cpuModel() string { | ||
protection, err := availableGuestProtection() | ||
if err == nil { | ||
if protection == snpProtection && q.snpGuest { | ||
|
@@ -36,5 +36,5 @@ index ade7356eb..ca8f9998c 100644 | |
} | ||
|
||
-- | ||
2.45.2 | ||
2.45.1 | ||
|
Oops, something went wrong.