Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp86651yba; Mon, 20 May 2019 05:28:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFsi2O/XLQAyR9da2MOiVAX07FVMMMO4F51oOd+iE1vBJoHodaS4hBKtjsLNzLzQtyxj81 X-Received: by 2002:a65:638a:: with SMTP id h10mr6675726pgv.64.1558355325935; Mon, 20 May 2019 05:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558355325; cv=none; d=google.com; s=arc-20160816; b=o8m//rh9o5F7FBg7c4e1xABKQZxICCN8dVeC01rYpSs/O/AKtIWI2RH5+/TlHaL4Up CVPnbsGw02WnvnEyx0686dy0cEW9jL3T87JhOjktYf/YtpfaTem88c9uJE05NWbKooyT vYhHfvDkONg/bwkQYAV+RocA2+T6vqQ10viggHEI6lUFIsGvCIWxnsm/hL0t+5mbetvv EdqbftRsG+FOVp+H9p/soAoZ/VvGRdoKZGNwZyc+y7K3nfNekgIrrUJgrWkzIomvvr3p 8kW48khw3Zg2CJB3kYFtduvozC7o8NsXe1GGmFZywNtNDWQFy/IEEQ2ZJ6PQZ+HcIgt6 CC2g== 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=BkB0Il2khV3Lg/JbT/ZzqmpF+F0w1RHWPPG+jZU37hI=; b=wn6APSAhrVSUOG48Gpv2pS6FlDIwze3S7dmTyqu4Z7bI+AG1n8IemJ7YVUys+VdPlR tIvlAPfHGkmdLefQel1LcZWs9bxTsczpoMCDmgsT6DS08VwPW4+oAnuDiWHzr8wuwFHk T0IKx1jYo9g3ULUgqyZsgHEJdPPn17gOOUIuH7DWiAAn28q/8R/3GoBgtAj2q9JMFGhg S58ovO54Ui/4JZNhqM3x9p+KGxijmsNiBPNi0ENwrjPPj8Ilv8vJVKPFdLcx2wxPNEyK AyYsQMsmqHrnDR4vuaEwBiOH7oxH0Qn2B9cWfXNoI9lmyPGhdcMCRGsNjTYGg2AUqcO8 5qdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2abbYait; 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 74si17001590pga.291.2019.05.20.05.28.31; Mon, 20 May 2019 05:28:45 -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; dkim=pass header.i=@kernel.org header.s=default header.b=2abbYait; 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 S2389146AbfETMZn (ORCPT + 99 others); Mon, 20 May 2019 08:25:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:40870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389138AbfETMZl (ORCPT ); Mon, 20 May 2019 08:25:41 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 A5C8721721; Mon, 20 May 2019 12:25:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558355141; bh=yk4aF3+3CUmWowkLP/XwgQN2IGk4lmHrWxdYxoIbi+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2abbYaitgosUsZyVi+GMY5OrCNJQwKmRuNcyGTCnTsbqQr7w7/VsK/7YIkEv7FKHl C/+f6gWhM3Spc6C1cea5qjQBMU9fYlYZQ48sA9F/w6hUU/9K4f3AsEPxjVFf9pySBt 8VCqjiWt1z4vjgD0fT74iXtmIb1+Zu7KLf+iDrHY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Boris Ostrovsky Subject: [PATCH 4.19 096/105] xen/pvh: set xen_domain_type to HVM in xen_pvh_init Date: Mon, 20 May 2019 14:14:42 +0200 Message-Id: <20190520115253.861262520@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190520115247.060821231@linuxfoundation.org> References: <20190520115247.060821231@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Roger Pau Monne commit c9f804d64bb93c8dbf957df1d7e9de11380e522d upstream. Or else xen_domain() returns false despite xen_pvh being set. Signed-off-by: Roger Pau Monné Reviewed-by: Boris Ostrovsky Signed-off-by: Boris Ostrovsky Cc: stable@vger.kernel.org # 4.19+ Signed-off-by: Greg Kroah-Hartman --- arch/x86/xen/enlighten_pvh.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/x86/xen/enlighten_pvh.c +++ b/arch/x86/xen/enlighten_pvh.c @@ -97,6 +97,7 @@ void __init xen_prepare_pvh(void) } xen_pvh = 1; + xen_domain_type = XEN_HVM_DOMAIN; xen_start_flags = pvh_start_info.flags; msr = cpuid_ebx(xen_cpuid_base() + 2);