OSDN Git Service

xen/pvh: don't try to unplug emulated devices
authorJuergen Gross <jgross@suse.com>
Thu, 25 Oct 2018 07:54:15 +0000 (09:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:40 +0000 (11:08 -0800)
commitc43c81bef7d4c9150514b80af4a233f0cb6e60b0
tree9f118b7eccda22726fa5dd8b645192da43496938
parent82f76b056d01fb3bd936278ddd253f58ef3155e5
xen/pvh: don't try to unplug emulated devices

commit e6111161c0a02d58919d776eec94b313bb57911f upstream.

A Xen PVH guest has no associated qemu device model, so trying to
unplug any emulated devices is making no sense at all.

Bail out early from xen_unplug_emulated_devices() when running as PVH
guest. This will avoid issuing the boot message:

[    0.000000] Xen Platform PCI: unrecognised magic value

Cc: <stable@vger.kernel.org> # 4.11
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/xen/platform-pci-unplug.c