Qemu: Use all CPU cores

Test: time art/test.py --target -r --ndebug --64 --optimizing
Change-Id: Icbd7493bc5edaec9cc66dba785e92827494b0715
diff --git a/test/testrunner/testrunner.py b/test/testrunner/testrunner.py
index 14fd0ca..ab1098e 100755
--- a/test/testrunner/testrunner.py
+++ b/test/testrunner/testrunner.py
@@ -316,7 +316,8 @@
     device_name = get_device_name()
     if n_thread == 0:
       # Use only part of the cores since fully loading the device tends to lead to timeouts.
-      n_thread = max(1, int(get_target_cpu_count() * 0.75))
+      fraction = 1.0 if env.ART_TEST_ON_VM else 0.75
+      n_thread = max(1, int(get_target_cpu_count() * fraction))
       if device_name == 'fugu':
         n_thread = 1
   else: