Commit 9ba9232f authored by Juergen Gross's avatar Juergen Gross Committed by Greg Kroah-Hartman

xen/pvh: don't try to unplug emulated devices

commit e6111161 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: default avatarJuergen Gross <jgross@suse.com>
Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ba94ecfc
...@@ -146,6 +146,10 @@ void xen_unplug_emulated_devices(void) ...@@ -146,6 +146,10 @@ void xen_unplug_emulated_devices(void)
{ {
int r; int r;
/* PVH guests don't have emulated devices. */
if (xen_pvh_domain())
return;
/* user explicitly requested no unplug */ /* user explicitly requested no unplug */
if (xen_emul_unplug & XEN_UNPLUG_NEVER) if (xen_emul_unplug & XEN_UNPLUG_NEVER)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment