]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJuergen Gross <jgross@suse.com>
Fri, 26 Oct 2018 07:16:57 +0000 (09:16 +0200)
commit730f568e2a6677bbc3a154cebb0b7d36fbef7e28
treebdb7efdd36ef96a22f93f0daf848a77ed8443d5e
parent6cf0b6cef0b44d315d6da7aa8c83e311736450f0
xen/pvh: don't try to unplug emulated devices

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>
arch/x86/xen/platform-pci-unplug.c