[nova]How to confirm whether a arm64 node supports hardware acceleration for virtual machines

Marcin Juszkiewicz marcin.juszkiewicz at linaro.org
Tue Sep 6 11:41:53 UTC 2022


W dniu 6.09.2022 o 13:24, Sean Mooney pisze:
> On Tue, 2022-09-06 at 18:32 +0800, 韩光宇 wrote:

>> I see `egrep -c '(vmx|svm)' /proc/cpuinfo` in nova install
>> documentation[1]. It can be used to confirm whether a node supports
>> hardware acceleration for virtual machines on x86 architecture. But it
>> is not applicable in the ARM architecture.
>>
>> Do we have an officially recommended method to confirm in ARM architecture?

> on arm like x86 there are several extions that allow virutalistion the most basic is called VHE(Virtualization Host Extension)
> https://lwn.net/Articles/674533/
> https://developer.arm.com/documentation/102142/0100/Virtualization-host-extensions

>
> they really only started to be a thing in armv8.1-a onwords
> https://en.wikipedia.org/wiki/AArch64
> 
> im not really sure fither is a prefered way to detect those.
> i would hope lscpu or /proc/cpuinfo  would be an option
> 
> looking on m1 macbook air under debian virt-host-valdiate show that kvm is aviable and acceible
> but lscpu does not show any cpu flags that looked virtualistion related.
> your milage might vary on a more standard arm plathform.

Each AArch64 system should support virtualization.

Nested virtualization requires v8.3/v8.4 cpu.

> virt-host-validate is gerneally provided as part of the libvirt installation
> so that would be my starting point.





More information about the openstack-discuss mailing list