Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3477967imu; Sun, 11 Nov 2018 16:01:43 -0800 (PST) X-Google-Smtp-Source: AJdET5eBsNmz6mFiIGh0IA79e0cpA4rLKTX+rFOiqECOot4dfj19nndfcN4BnANJs8wAMh2dwKGS X-Received: by 2002:a17:902:b7cc:: with SMTP id v12-v6mr16941165plz.278.1541980903346; Sun, 11 Nov 2018 16:01:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541980903; cv=none; d=google.com; s=arc-20160816; b=m7RwXh+rFNQsHRNNgRJOw38I6HLqcFnpAaCwc02Ezn1YI/12ch3bxYbBYkTBzXkAYJ rouPu0GtAlRNqa07EkvODn+wHNcHXwOUCYGm+LjriDhjHvIPmaxwMEcx1PLYjpupNvjR lkV77xa6StXd3x4SayEcXp1sEqG8f5876kPQVa6TIQCc4kJ1JXfJ9aAkBh4/MVt2f5Pe FETiXoZQUbC/4u4gTISL84MefOY+lWiFdUvpwjbec7DAF10e3BTwavINZsHGhHl+hIMo ZHtjwmfHbOcZPN2JGMOKC+Ms+LuLObZpHZtTh27+7zJI3HFKkeftxa1ejZSdjQrS5nx6 dQBQ== 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=0GcSqV0Y25lpyFU7saHXjG/mxcOzF27i/QrzdDrakSU=; b=eNnl+RNO3UKiHkgxVukJ5F94HO2g1ZP0Nyp2kNzYsNvOKLVwfyifYVdnwsdPI3AW5p +B2zxZ9GeAxqFFYiwF+/XPtU+aHo2qWOUXOWTlWkdpa4IwvMsxD8YsQTvGvatyfvSmSh qYrdMFWd/NbJEz+j3bjss90+qi7R5Olut6n+YNMrdcnurFHm8eWH6yhsrgegGyXubtt8 NqjmWxSbqIA2eZ4kTsoVTlQmVpsKY7weu8GmZOmccyNXOE2duDFXHbPkOj+SEPCEHI12 asknDMca+zEGlZxcId3sqjg3hHs2thPLl/p+ZAWJyN6Avg5x683jut/nQ9vLh6nMBIVB b3yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N8QHgxRN; 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 y68-v6si16907639pfi.61.2018.11.11.16.01.28; Sun, 11 Nov 2018 16:01:43 -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=N8QHgxRN; 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 S1732413AbeKLJvb (ORCPT + 99 others); Mon, 12 Nov 2018 04:51:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:35336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732269AbeKLIR6 (ORCPT ); Mon, 12 Nov 2018 03:17:58 -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 073CB2175B; Sun, 11 Nov 2018 22:28:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975283; bh=ANsPjy+UOu6yKktKCwFnlXEphY2bKXhzL/eK83KdL00=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N8QHgxRNjtUWxEdxr6YOZy1ge0vQu/wkZw5Y5+MgdaD/yTEYvUKFlDn3ciqF+61TM MVcXamSv43owN1nwuJNbAYzjGJbp+qqfk35Ios/KwAmSoW2pwugXbqGVE2+0rcfWXm PtGz+3eWaUZBxQn2adlt8QQWrTe9IiGtKt0Bts1w= 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.19 206/361] xen/pvh: dont try to unplug emulated devices Date: Sun, 11 Nov 2018 14:19:13 -0800 Message-Id: <20181111221649.100497342@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@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.19-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;