python/qemu: accel: Add tcg_available() method
commitd3ca7bb599b777271316c17a5221c5ee28815833
authorWainer dos Santos Moschetta <wainersm@redhat.com>
Mon, 16 Dec 2019 19:14:37 +0000 (16 16:14 -0300)
committerCleber Rosa <crosa@redhat.com>
Mon, 16 Dec 2019 23:39:04 +0000 (16 18:39 -0500)
tree465842cad9c5233a14943bfcc2cbbe4dad1b7fff
parent53a049d7d78e5ccf6d4c0d7b0edb18f8b999df94
python/qemu: accel: Add tcg_available() method

This adds a method to check if the tcg accelerator is enabled
in the QEMU binary.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20191216191438.93418-5-wainersm@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
python/qemu/accel.py