Skip to content

Commit e611116

Browse files
committed
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: <[email protected]> # 4.11 Signed-off-by: Juergen Gross <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Signed-off-by: Juergen Gross <[email protected]>
1 parent 769d6bf commit e611116

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/x86/xen/platform-pci-unplug.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ void xen_unplug_emulated_devices(void)
134134
{
135135
int r;
136136

137+
/* PVH guests don't have emulated devices. */
138+
if (xen_pvh_domain())
139+
return;
140+
137141
/* user explicitly requested no unplug */
138142
if (xen_emul_unplug & XEN_UNPLUG_NEVER)
139143
return;

0 commit comments

Comments
 (0)