]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Query hvf capability on macOS
authorRoman Bolshakov <r.bolshakov@yadro.com>
Fri, 19 Oct 2018 12:07:53 +0000 (15:07 +0300)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 25 Jan 2022 15:53:39 +0000 (16:53 +0100)
commita339c27b1598af3f0b76116760190dd71217a706
tree6cd2fafefcd9b68e9ebad1aa8bf58d99cbc61a6d
parent171b5ee844a2f2df4f7a3ba2770c53d23fc5b0e0
qemu: Query hvf capability on macOS

There's no QMP command for querying if hvf is supported, therefore we
use sysctl interface that tells if Hypervisor.framework works/available
on the host.

Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Tested-by: Brad Laue <brad@brad-x.com>
Tested-by: Christophe Fergeau <cfergeau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_capabilities.c