Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3432291imu; Sun, 11 Nov 2018 14:59:52 -0800 (PST) X-Google-Smtp-Source: AJdET5clwUXh2o88ouitJodTGaPIKVN18HnOq/G8QP5SzDUhg4wpmofIxwjBwwx5FhjKXAI9Ql62 X-Received: by 2002:a17:902:59c8:: with SMTP id d8mr2120180plj.116.1541977192397; Sun, 11 Nov 2018 14:59:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541977192; cv=none; d=google.com; s=arc-20160816; b=ZSGoPzVBIfSaSdjvDKK6TOrgOm/dP0RCPZ6/xQAiIHR1p0lR03L2KY+GOe1TUlIsH6 7BcI90KzKY+IA+Eo1wR6fg5vmdmtxC874nFg28VUlPMXSaqr7OL0yvm48Jofv66vFO8j By90aaoLQydV8vWWwDf08FnkvBM8IXqFRPhEuQZLB2j3hP+EKE/TAOof86s9g4K/X0Rz GUf4w2kywlg7/kyGILjlszWsnd1OUerTQaWJJCi+7W1MZLguzKOGdim7YA95WltMln/5 z1mNTiXpH8mXxDckJwVxTjsyiqw5BjFhQ3n2jAxFQTXfrfXtsd9G4mbGrxqRlXttmILv pitw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=C2xIkovbfazEdJX59WegSrc1OBYQRbZFzQXPZJGsr24=; b=0mK6AVt74NgA+pPTx3VN8M9gB5NguofvUAhilPaPtzPArg4VTuObJawqRvCes888PJ y/bm4OMUxfWkqYho3fgVBLu8A1iR48nHJfEA5RChcl6x80l4uqY6FGGs8d/rO2bOhrKt g/VQqbPjZvJ9xsKalpkt6kLnUONwaN1qcXlIbWurFzjJdzrhXqN/iAJz9GW96VeSxEba 8p/DqeAcKe6flSA3GBOc8y+wjogqMzbBy7/ZLKdcYgTNh5n+dtVGBUrql2Y4WdJBeDx9 RzyeHu6h7UXc7qTk5+IRkOeshWx5Ik+VT9GlOoQ9nl/cJg21tzvSlh5AoPq5S46dKfea MgvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eUFoFz1S; 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 e11si8940900pgf.450.2018.11.11.14.59.37; Sun, 11 Nov 2018 14:59:52 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=eUFoFz1S; 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 S2391098AbeKLItU (ORCPT + 99 others); Mon, 12 Nov 2018 03:49:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:52394 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390788AbeKLIWi (ORCPT ); Mon, 12 Nov 2018 03:22:38 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3DD1221780; Sun, 11 Nov 2018 22:32:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975561; bh=Y7cjABgHQ6iwsddHuD3fNSfOKSo2j75SBGG2JfEZS94=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eUFoFz1SfVfTgMJ66lpS+yGEJv+4UxIG0mEaaVgRb4Rg5iY5LhKYtakzMwejYhkek 2mCXyE1RgLVTvpdMiCIT0m0L+ZdOPFnEju3vkFMH7TUUfMMS0A2poyUC0RI3CHEl3x PQsjm18Lj8ziz0b+iEadEMkC53lqIwY5Xd/vkAjc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Juergen Gross , Boris Ostrovsky Subject: [PATCH 4.14 123/222] xen/pvh: dont try to unplug emulated devices Date: Sun, 11 Nov 2018 14:23:40 -0800 Message-Id: <20181111221658.698598209@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Juergen Gross 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: # 4.11 Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky Signed-off-by: Juergen Gross Signed-off-by: Greg Kroah-Hartman --- 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;