Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3366856yba; Tue, 23 Apr 2019 02:31:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVB0AZoGIkzJFR0xamjIOq98Dym6NrAH5xifK0IG3m0OflmGX6cvzmFMlQc89HAbYZJuzb X-Received: by 2002:a17:902:a9c7:: with SMTP id b7mr24779555plr.145.1556011883456; Tue, 23 Apr 2019 02:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556011883; cv=none; d=google.com; s=arc-20160816; b=pSj21qQy6fKMBsTmzWfrAKvgGfjR1srN9bjuAVtWsLOeH0B5ZB8OsBzWM2C161PLKB ahJUejwSATIYZL4Nn0bV5Twh0ZMLMFiiqna21oPBu0VVz0gH9j7fxViivDC+tncKoUq+ h+usgUj95WLnKwxAc5ulGUA3DFKleZYQhmaIs1EowJl3zNZU/ryvLcP/0a7tcnQ6Bd7s UMIr4byCb4JNXBFGswBjVY12j06Q2l99OXmom5hfbiuPtt+kZeBC9+6bD+h5gYte0iPp 7lKulSMvK6+uWfCmHZP1MMeINsLXVQX4utZq4iis9xuXDHg6vkmc7TEXZcgFPMIS6Zlj pz2Q== 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 :message-id:date:subject:cc:to:from; bh=Qbl4qTMahwAJcJfY9ah46zq1JK+82qWR3xSCJlG7n4s=; b=ZourVppVbVP4NJb6FL16kA5zpdCFfQvBYVulF+H0XaD2jaZd78QBulRM6ht9Uq6Fxv LPC4E5bKEI1Sgh+TDxE454v7vy7ilcv/g0SMoZjyTTuQE0cWeIzhbKn+RWWqCEOs5kxs ybNzr2ARdC1cLpKFUv6o4GW1KAhacdoSyVW1AICK4DJaMBWUIbqEWn3L3E9z6jbEo/kY ZNITEDuKXzr/LUNzSfeB/bFVXuuI2GFfWs+26eGfQ7aIU6hPHnIvjBDoJFAG7g9O08sX NrCibTk55DVHPY5ONfg92JdqOCUdGsdVFureZ0L0uurhbdhWa1et3PaJtaCBDQ+VM1F3 b2TQ== 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 i7si15153929plt.332.2019.04.23.02.31.07; Tue, 23 Apr 2019 02:31:23 -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 S1727212AbfDWJ3S (ORCPT + 99 others); Tue, 23 Apr 2019 05:29:18 -0400 Received: from smtp03.citrix.com ([162.221.156.55]:30697 "EHLO SMTP03.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727183AbfDWJ3Q (ORCPT ); Tue, 23 Apr 2019 05:29:16 -0400 X-IronPort-AV: E=Sophos;i="5.60,385,1549929600"; d="scan'208";a="84170472" From: Roger Pau Monne To: CC: Roger Pau Monne , Boris Ostrovsky , Juergen Gross , Subject: [PATCH 1/2] xen/pvh: set xen_domain_type to HVM in xen_pvh_init Date: Tue, 23 Apr 2019 11:28:28 +0200 Message-ID: <20190423092829.67915-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.17.2 (Apple Git-113) 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 Or else xen_domain() returns false despite xen_pvh being set. Signed-off-by: Roger Pau Monné --- Cc: Boris Ostrovsky Cc: Juergen Gross Cc: xen-devel@lists.xenproject.org --- arch/x86/xen/enlighten_pvh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/xen/enlighten_pvh.c b/arch/x86/xen/enlighten_pvh.c index 35b7599d2d0b..bbffa409e0e8 100644 --- a/arch/x86/xen/enlighten_pvh.c +++ b/arch/x86/xen/enlighten_pvh.c @@ -27,6 +27,7 @@ void __init xen_pvh_init(void) u64 pfn; xen_pvh = 1; + xen_domain_type = XEN_HVM_DOMAIN; xen_start_flags = pvh_start_info.flags; msr = cpuid_ebx(xen_cpuid_base() + 2); -- 2.17.2 (Apple Git-113)