Skip to content

Commit

Permalink
xen/pvh: don't try to unplug emulated devices
Browse files Browse the repository at this point in the history
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: <[email protected]> # 4.11
Signed-off-by: Juergen Gross <[email protected]>
Reviewed-by: Boris Ostrovsky <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
  • Loading branch information
jgross1 committed Oct 26, 2018
1 parent 769d6bf commit e611116
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/x86/xen/platform-pci-unplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ void xen_unplug_emulated_devices(void)
{
int r;

/* PVH guests don't have emulated devices. */
if (xen_pvh_domain())
return;

/* user explicitly requested no unplug */
if (xen_emul_unplug & XEN_UNPLUG_NEVER)
return;
Expand Down

0 comments on commit e611116

Please sign in to comment.