vmm, arch: CpuId is x86_64 specific so import from the x86_64 module

It will be removed as a top-level export from the hypervisor crate.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2022-05-11 17:10:04 +01:00
committed by Sebastien Boeuf
parent 4ff0686d37
commit cd0df05808
4 changed files with 7 additions and 6 deletions

View File

@@ -340,7 +340,7 @@ pub fn start_vmm_thread(
struct VmMigrationConfig {
vm_config: Arc<Mutex<VmConfig>>,
#[cfg(all(feature = "kvm", target_arch = "x86_64"))]
common_cpuid: hypervisor::CpuId,
common_cpuid: hypervisor::x86_64::CpuId,
memory_manager_data: MemoryManagerSnapshotData,
}
@@ -1498,7 +1498,7 @@ impl Vmm {
fn vm_check_cpuid_compatibility(
&self,
src_vm_config: &Arc<Mutex<VmConfig>>,
src_vm_cpuid: &hypervisor::CpuId,
src_vm_cpuid: &hypervisor::x86_64::CpuId,
) -> result::Result<(), MigratableError> {
// We check the `CPUID` compatibility of between the source vm and destination, which is
// mostly about feature compatibility and "topology/sgx" leaves are not relevant.