mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-21 19:02:30 +00:00
vmm: cpu: Expose the common/shared CPUID data for all vCPUs
This allows the CPUID data to be passed into the VM level ioctl used for initalizing TDX. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
b02aff5761
commit
c8cad394b5
@ -1091,6 +1091,11 @@ impl CpuManager {
|
||||
self.config.max_vcpus
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
pub fn common_cpuid(&self) -> CpuId {
|
||||
self.cpuid.clone()
|
||||
}
|
||||
|
||||
fn present_vcpus(&self) -> u8 {
|
||||
self.vcpu_states
|
||||
.iter()
|
||||
|
Loading…
x
Reference in New Issue
Block a user