96a5f8d
#!/bin/sh
96a5f8d
c3911a2
# Libvirt introspects the binary using -M none. In that case, don't try
c3911a2
# to init KVM, which will fail and be noisy if the host has kvm disabled
c3911a2
opts="-machine accel=kvm"
c3911a2
if echo "$@" | grep -q " -M none "; then
c3911a2
    opts=
c3911a2
fi
c3911a2
c3911a2
exec /usr/bin/qemu-system-x86_64 $opts "$@"