Commit 36f0201
committed
Make copies of the VMGS for each confidential pod
Even though VMGS files aren't written to, we can't share the same file across multiple
pods because HCS seems to be taking an exclusive lock on the file. To handle this, we make
copies of the VMGS file (similar to how we make copies of the EFI VHD) per pod. This
commit also changes the name of the default VMGS file to `cwcow.snp.vmgs` to better convey
that by default we run in SNP mode. If a different VMGS file is desired,
`"io.microsoft.virtualmachine.wcow.gueststatefile"` annotation can be used to override
that.
This commit also adds the code to handle the UVM console pipe annotation, if provided, for
windows pods.
Signed-off-by: Amit Barve <ambarve@microsoft.com>1 parent cf12ec2 commit 36f0201
File tree
3 files changed
+14
-3
lines changed- cmd/containerd-shim-runhcs-v1
- internal
- oci
- uvm
3 files changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
53 | 64 | | |
54 | 65 | | |
55 | 66 | | |
| |||
69 | 80 | | |
70 | 81 | | |
71 | 82 | | |
72 | | - | |
| 83 | + | |
73 | 84 | | |
74 | 85 | | |
75 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
| |||
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
379 | | - | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments