On Fri, 2016-06-03 at 15:53 +0300, Riku Voipio wrote:
ARM/Aarch64 /proc/cpuinfo has no virtualization related flags.
Refactor the Qemu/KVM test a bit:
1) run the "for hardware virtualization" test only on plaforms with known
cpuinfo flags (x86, s390)
2) test for /dev/kvm also on platforms where no cpu flags are set
Finally Add a more generic error hint message for non-x86 plaforms
when /dev/kvm is missing.
So, this has already been merged and it's definitely an
improvement over the existing situation (thanks to both you
and Michal, by the way!), but I was wondering whether
removing the hardware check altogether is a good idea.
There is a difference between KVM not being built properly /
shipped / loaded and the host not supporting hardware
virtualization at all. We capture that difference on x86
and s390, but not on aarch64 and ppc64.
Is figuring out whether hardware virtualization support is
present just not feasible on aarch64, eg. because each
reports the information in a different way, or because the
information is not exposed to userspace at all?
--
Andrea Bolognani
Software Engineer - Virtualization Team