Message ID | 20180803085230.30574-2-peter.maydell@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | tests/vm: various minor improvements | expand |
diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index 36431178161..ae9ab128c7b 100755 --- a/tests/vm/basevm.py +++ b/tests/vm/basevm.py @@ -65,7 +65,7 @@ class BaseVM(object): self._stdout = self._devnull self._args = [ \ "-nodefaults", "-m", "2G", - "-cpu", "host", + "-cpu", "max", "-netdev", "user,id=vnet,hostfwd=:127.0.0.1:0-:22", "-device", "virtio-net-pci,netdev=vnet", "-vnc", "127.0.0.1:0,to=20",
Currently attempting to run the vm-build-* tests on a system where the user does not have access to KVM will fail, because although they avoid using -enable-kvm, they use "-cpu host", which only works with KVM. Switch to "-cpu max" instead, which works with any accelerator. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> --- tests/vm/basevm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1