mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-20 11:35:21 +00:00
e10d9b13d4
The support for SGX is exposed to the guest through CPUID 0x12. KVM passes static subleaves 0 and 1 from the host to the guest, without needing any modification from the VMM itself. But SGX also relies on dynamic subleaves 2 through N, used for describing each EPC section. This is not handled by KVM, which means the VMM is in charge of setting each subleaf starting from index 2 up to index N, depending on the number of EPC sections. These subleaves 2 through N are not listed as part of the supported CPUID entries from KVM. But it's important to set them as long as index 0 and 1 are present and indicate that SGX is supported. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
28 lines
728 B
TOML
28 lines
728 B
TOML
[package]
|
|
name = "arch"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
|
|
[features]
|
|
default = []
|
|
acpi = ["acpi_tables"]
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
byteorder = "1.3.4"
|
|
hypervisor = { path = "../hypervisor" }
|
|
kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch" }
|
|
kvm-ioctls = { git = "https://github.com/cloud-hypervisor/kvm-ioctls", branch = "ch" }
|
|
libc = "0.2.72"
|
|
log = "0.4.8"
|
|
vm-memory = { version = "0.2.1", features = ["backend-mmap"] }
|
|
acpi_tables = { path = "../acpi_tables", optional = true }
|
|
arch_gen = { path = "../arch_gen" }
|
|
|
|
[dependencies.linux-loader]
|
|
git = "https://github.com/rust-vmm/linux-loader"
|
|
features = ["elf", "bzimage"]
|
|
|
|
[dev-dependencies]
|
|
rand = "0.7.3"
|