mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: add host-data as a command line argument
The host data provided at launch. Data is passed to the hypervisor during the completion of the isolated import. Host Data provided by the hypervisor during guest launch. The firmware includes this value in all attestation reports for the guest. Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -468,6 +468,14 @@ fn create_app(default_vcpus: String, default_memory: String, default_rng: String
|
||||
.num_args(1)
|
||||
.group("vm-config"),
|
||||
);
|
||||
#[cfg(feature = "sev_snp")]
|
||||
let app = app.arg(
|
||||
Arg::new("host-data")
|
||||
.long("host-data")
|
||||
.help("Host specific data to SEV SNP guest")
|
||||
.num_args(1)
|
||||
.group("vm-config"),
|
||||
);
|
||||
app.arg(
|
||||
Arg::new("version")
|
||||
.short('V')
|
||||
@@ -879,6 +887,8 @@ mod unit_tests {
|
||||
initramfs: None,
|
||||
#[cfg(feature = "igvm")]
|
||||
igvm: None,
|
||||
#[cfg(feature = "sev_snp")]
|
||||
host_data: None,
|
||||
}),
|
||||
rate_limit_groups: None,
|
||||
disks: None,
|
||||
|
||||
Reference in New Issue
Block a user