Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3563392yba; Tue, 23 Apr 2019 06:06:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGAm78RcotlvLZeIGEt4CLQEOvPOiQnKCU2iWFHvs/Y+y/MzDaGdo7wwKu2szax610ho0d X-Received: by 2002:a17:902:a583:: with SMTP id az3mr26325164plb.205.1556024769848; Tue, 23 Apr 2019 06:06:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556024769; cv=none; d=google.com; s=arc-20160816; b=FpgmU60byfC+AH/j3ZIZdLru+0Z1r90hDgD5lEUeKD43pG4naNx2EVIY6kWQSk1Tee i8ShYayOuo0EdYZRm2r+xizKcLvRI7Ic+90nqt89c4DzidgU88E8M6oWw3BAsRlgoRub uQVuABusyZzOcDJzY2CHJdAaLnpNwDoUWlfnL6amadUibxx235VZDsZvTUu57hEzW6rL Z6ZvcGegUzRhpX1DOVzbxJMkPvejEw/11tPYXadr0NMKbJkCpheIY3KeDy+XkRNv565m NH/zL7VvPr/ctD8acN5NescSA35VuZcOUizLXzZeZuy7wuLV4z0LirSzOzcNb6sj2FZN Es9Q== 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=O88scX3iJg8UJhEzU/doUbAoGfYa0mwVxEv01U/4y18EWj2YXRSGhi/AWmsykNP2/K MJlXoX4RkzGL+pPfjBlhJbtgLvUIpd7vBRlbbKHuJmiF0skhUGPjy2uTppJH9l590Dee vJqfGW2ckKbOLxcwLQmZlX6WIrTWBM24dbx863YdNwprYeB/N4qq1cHgOx8e9vADsX0d Wz1xcsCloZXEqeX16OsfAc+YqzXaZlcEeG7Vf8YeNgncgNDnhwUtHgQugxTOWu1jqMbM 7BPioJWF9dB0LgzUc0MiycxW3vvzK5luQg51atkzANvQm8vMrQC6NLCDDg46ut0W7aFe WIww== 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 r77si5289587pgr.140.2019.04.23.06.05.51; Tue, 23 Apr 2019 06:06:09 -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 S1727704AbfDWNEb (ORCPT + 99 others); Tue, 23 Apr 2019 09:04:31 -0400 Received: from smtp03.citrix.com ([162.221.156.55]:7573 "EHLO SMTP03.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726033AbfDWNEb (ORCPT ); Tue, 23 Apr 2019 09:04:31 -0400 X-IronPort-AV: E=Sophos;i="5.60,385,1549929600"; d="scan'208";a="84185201" From: Roger Pau Monne To: CC: Roger Pau Monne , Boris Ostrovsky , Juergen Gross , Subject: [PATCH v2 1/2] xen/pvh: set xen_domain_type to HVM in xen_pvh_init Date: Tue, 23 Apr 2019 15:04:15 +0200 Message-ID: <20190423130416.68935-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)