SEV-SNP (KVM): support guest-created APs so the launch measurement does not depend on the vCPU count
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
Hướng nghiên cứu
Start with the vCPU creation path in CpuManager and the IGVM loader's handling of SnpVpContext and complete_isolated_import, since the proposal turns on whether APs can be created after launch finish. Confirm how KVM SNP vCPUs behave when added after KVM_SEV_SNP_LAUNCH_FINISH. Done means a documented design plus an opt-in ap_creation=guest path that keeps the default unchanged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
With --platform sev_snp=on and --igvm, every vCPU listed in --cpus boot=N exists before
KVM_SEV_SNP_LAUNCH_FINISH. The IGVM loader sets each vCPU's state from the SnpVpContext with the
matching vp_index, and KVM encrypts and measures the VMSA of every existing vCPU at launch finish.
So the launch digest includes one VMSA per vCPU, and an image has to be built and measured once per
vCPU count. A vCPU without a matching SnpVpContext keeps a default state that is still measured and
started, and the guest triple-faults (seen booting boot=2 with an IGVM that has one VMSA).
For attestation-based deployments this means one expected measurement per vCPU count, and anything
derived from the measurement (sealing keys via SNP_GET_DERIVED_KEY) changes when a VM is resized.
Proposal
SEV-SNP supports guest-created AP state (the guest issues the AP Creation NAE event with a VMSA it
built and validated in its own private memory). Linux guests already use it. Supporting it in the VMM:
- Create only the BSP (vp_index 0) before
KVM_SEV_SNP_LAUNCH_FINISH, so only its VMSA is measured. - Create the remaining
boot - 1vCPUs after launch finish, so their state comes only from the
guest's AP Creation request and the host never supplies it. - Opt-in, e.g.
--platform sev_snp=on,ap_creation=guest(or automatic when the IGVM contains only a
vp_index 0 context), keeping today's behaviour as the default.
Security
Unchanged: the host still cannot set or read any vCPU's state. It chooses how many vCPUs to offer,
which only affects performance.
Questions
- Does the vCPU creation order in
CpuManager/ the IGVM loader allow creating APs after
complete_isolated_import, or does this need a separate path? - Does KVM support adding SNP vCPUs after
KVM_SEV_SNP_LAUNCH_FINISHand keep them unrunnable
until the guest's AP Creation request, or does that need KVM work as well? - Any concerns with MSHV, which is not covered by this request?
Happy to test on Genoa and Turin hosts (KVM, 0c0d8a6f + patches).
- Ngôn ngữ chính
- Rust
- Star
- 6.3k
- Fork
- 786
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 195
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloud-hypervisor/cloud-hypervisor
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
cloud-hypervisor/cloud-hypervisor#9562 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
cloud-hypervisor/cloud-hypervisor#9553 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
cloud-hypervisor/cloud-hypervisor#9551 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 46/100
cloud-hypervisor/cloud-hypervisor#9550 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
cloud-hypervisor/cloud-hypervisor#9528 · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cloud-hypervisor/cloud-hypervisor
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Choochmeque/tauri-plugin-webdriver#134 ·
Maintainer thường phản hồi trong vòng 17 ngày
-
bug(c-sdk): boxlite_box_exec does not check runtime liveness before dispatching streaming execĐang mởbug rust SDK & CLI & REST API
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
boxlite-ai/boxlite#3292 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
anefzaoui/misterdownloadmanager#2516 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
editor ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
state:triage tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 89/100
agent8-cash/ethpayserver#731 ·
Maintainer thường phản hồi trong vòng 1 ngày