Comment 2 for bug 892050

Revision history for this message
Scott Moser (smoser) wrote :

serge said in irc that adding:
 -machine pc,accel=kvm:tcg

will allow the old behavior of accelerated if possible, unaccelerated if not.

Can we possibly add a message about that if the user runs kvm without hardware support? Ie:
  You have invoked kvm but acceleration is not available on this CPU.
  If you want to run with software acceleration (which is much slower)
 add the following arguments to you kvm line.

Generally i don't like the upstream decision, but probably not worth carrying delta for it. The case that will catch people is where they're testing some software that goes through libvirt or another abstraction layer. They were getting the software path through 'kvm' and were fine with it being slow. Devstack is an example of this. Often times I would just tell openstack to use libvirt-kvm because that would work fast if available and slowly if it was not. Now, people will have to build the logic of "if i have hardware acceleration, then invoke qemu-system-x86, otherwise, invoke kvm" further up in the stack.