]> git.proxmox.com Git - mirror_qemu.git/commit
accel: Move Xen registration code to xen-common.c
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 26 Sep 2014 20:45:25 +0000 (17:45 -0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 4 Oct 2014 06:59:15 +0000 (08:59 +0200)
commitb152b05a35acc0ff3da5648fd5cb97136853838c
tree848ab76e85003e03c5053b49f2a2086c2505337c
parent782c3f2939a8faefa4c5a324dfb472a534048510
accel: Move Xen registration code to xen-common.c

Note that this has an user-visible side-effect: instead of reporting
"Xen is not supported for this target", QEMU binaries not supporting Xen
will report "xen accelerator does not exist".

As xen_available() always return 1 when CONFIG_XEN is enabled, we don't
need to set AccelClass.available anymore. xen_enabled() is not being
removed yet, but only because vl.c is still using it.

This also allows us to make xen_init() static.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel.c
include/hw/xen/xen.h
xen-common-stub.c
xen-common.c