Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1562280ima; Thu, 25 Oct 2018 00:55:03 -0700 (PDT) X-Google-Smtp-Source: AJdET5deOi2TjF2C4deqWkRwMMOdtH36kEj3Qm3A8Il6A59/ZPQtCC3A0kng8bTikiZs9cwo7moj X-Received: by 2002:a63:2ad4:: with SMTP id q203-v6mr484934pgq.356.1540454103116; Thu, 25 Oct 2018 00:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540454103; cv=none; d=google.com; s=arc-20160816; b=ZAG1vx1ch1Cd3/PTVYMgeedjjp/vyQiRbRbdoQFP/xnbBHHBNQwZS1Ma5RrX2NiArT 9nvqewzPyVtSb7Ns4oWoxbqkidFpGbR9egcSUatG7dAM4Q8pHhZrz6Z/yra+e360Iwjn WKM556lVHhjCmrIJGhv+TxTgMWfs8oybYOr6IffY7QaqOQfj/dmYzm8MvKBywidzLbPU FpWfuIXHQ+AknC4i5t6n1EWwzMSp+DHvxnzXhxJQy+2qs0YDdrm2qo2p1jESgEg9qIny jlbFnhBdkBh6b6a65A23DAtuT2REZfGPIl8ri7BRWrfX+vzLnMkYOt47epO0Fulg2JhZ qTbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=qg2iU2FINPv7B718CCkzUB4n3SdftD1hgMzBxrk561I=; b=znhAjfD0MlUyiBggYbN3cJG4Ln1cIMbUbTEe5JAJGo6nnmp2BIR/OlMrU1hrjCzadb KlysMrR58E+0qsU2hxDjF4PMghklKKoFKlis1aKr6RqoSbgqOifA2hg1zrX7kFQvlbfg qN9h4irgt1W0w5/tYhtGffiqC6H772Znxg3dBVweBx8lxGPQf1qq0sSgQzv5vaQA348p crn0Z510HqTi8zyUBnFeEuP1R+LbjL+pms4N2IZu7LfaY3GvYcoUkBipiQKnYAwzG5JB +JOhvaW5JbwQprg8BG8rj1YFbserqD7ckbfKr5EFWIPpBuEJyL58Wc7UahvtWdZ9a6IY +WNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u81-v6si7341528pfi.175.2018.10.25.00.54.46; Thu, 25 Oct 2018 00:55:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726865AbeJYQZy (ORCPT + 99 others); Thu, 25 Oct 2018 12:25:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:33000 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726497AbeJYQZx (ORCPT ); Thu, 25 Oct 2018 12:25:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 862CCAC17; Thu, 25 Oct 2018 07:54:17 +0000 (UTC) From: Juergen Gross To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Cc: boris.ostrovsky@oracle.com, sstabellini@kernel.org, Juergen Gross , stable@vger.kernel.org Subject: [PATCH] xen/pvh: don't try to unplug emulated devices Date: Thu, 25 Oct 2018 09:54:15 +0200 Message-Id: <20181025075415.18798-1-jgross@suse.com> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: # 4.11 Signed-off-by: Juergen Gross --- arch/x86/xen/platform-pci-unplug.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/xen/platform-pci-unplug.c b/arch/x86/xen/platform-pci-unplug.c index 66ab96a4e2b3..96d7f7d39cb9 100644 --- a/arch/x86/xen/platform-pci-unplug.c +++ b/arch/x86/xen/platform-pci-unplug.c @@ -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; -- 2.16.4