memory: do not look at current_machine->accel
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Nov 2019 10:50:03 +0000 (11:50 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Dec 2019 18:32:24 +0000 (19:32 +0100)
commit53b62bec0144615a54c77f4fc5561501a6a2c844
treef11e22265f86de82b58adcbc4383ccf3e120630b
parent5d3b575da64ed3f45952218ab5d3bd9985f35941
memory: do not look at current_machine->accel

"info mtree -f" prints the wrong accelerator name if used with for example
"-machine accel=kvm:tcg".  The right thing to do is to fetch the name
from the AccelClass, which will also work nicely once
current_machine->accel stops existing.

Tested-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
memory.c