From 7ae631e0c184e1720d08b9ccb1c057cfda14249a Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 19 May 2021 13:43:53 +0000 Subject: [PATCH] vmm: Hypervisor::check_required_extensions() is not x86_64 only This function is implemented for aarch64 so should be called on it. Signed-off-by: Rob Bradford --- vmm/src/vm.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/vmm/src/vm.rs b/vmm/src/vm.rs index 990a40f01..f7755ed69 100644 --- a/vmm/src/vm.rs +++ b/vmm/src/vm.rs @@ -674,7 +674,6 @@ impl Vm { ) -> Result { #[cfg(feature = "tdx")] let tdx_enabled = config.lock().unwrap().tdx.is_some(); - #[cfg(target_arch = "x86_64")] hypervisor.check_required_extensions().unwrap(); #[cfg(feature = "tdx")] let vm = hypervisor @@ -746,7 +745,6 @@ impl Vm { hypervisor: Arc, activate_evt: EventFd, ) -> Result { - #[cfg(target_arch = "x86_64")] hypervisor.check_required_extensions().unwrap(); let vm = hypervisor.create_vm().unwrap(); #[cfg(target_arch = "x86_64")] @@ -799,7 +797,6 @@ impl Vm { hypervisor: Arc, activate_evt: EventFd, ) -> Result { - #[cfg(target_arch = "x86_64")] hypervisor.check_required_extensions().unwrap(); let vm = hypervisor.create_vm().unwrap(); #[cfg(target_arch = "x86_64")]