xen: use a common function for pv and hvm guest backend register calls
commit0e39bb022b5fa8c11964968885f3263c02ce42b0
authorJuergen Gross <jgross@suse.com>
Tue, 2 Aug 2016 06:32:32 +0000 (2 08:32 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 3 Aug 2016 12:52:11 +0000 (3 14:52 +0200)
tree535f76c81af91d39a619afee1e3044c7dcdbcad8
parent80440ea033b02d9c7330d507daf41d4bf8a8c058
xen: use a common function for pv and hvm guest backend register calls

Instead of calling xen_be_register() for each supported backend type
for hvm and pv guests in their machine init functions use a common
function in order not to have to add new backends twice.

This at once fixes the error that hvm domains couldn't use the qusb
backend.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Message-id: 1470119552-16170-1-git-send-email-jgross@suse.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/xen/xen_backend.c
hw/xenpv/xen_machine_pv.c
include/hw/xen/xen_backend.h
xen-hvm.c