lkml.org 
[lkml]   [2018]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 123/222] xen/pvh: dont try to unplug emulated devices
    Date
    4.14-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Juergen Gross <jgross@suse.com>

    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 | 4 ++++
    1 file changed, 4 insertions(+)

    --- a/arch/x86/xen/platform-pci-unplug.c
    +++ b/arch/x86/xen/platform-pci-unplug.c
    @@ -146,6 +146,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;

    \
     
     \ /
      Last update: 2018-11-12 00:00    [W:4.030 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site