From patchwork Fri Oct 25 09:16:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 11211805 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2A9A21390 for ; Fri, 25 Oct 2019 09:18:20 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 031692070B for ; Fri, 25 Oct 2019 09:18:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Yk8S6YIQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 031692070B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iNviT-0007qa-9I; Fri, 25 Oct 2019 09:17:05 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iNviS-0007qL-OW for xen-devel@lists.xenproject.org; Fri, 25 Oct 2019 09:17:04 +0000 X-Inumbo-ID: 2b629ee8-f708-11e9-beca-bc764e2007e4 Received: from mail-wr1-x443.google.com (unknown [2a00:1450:4864:20::443]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 2b629ee8-f708-11e9-beca-bc764e2007e4; Fri, 25 Oct 2019 09:16:47 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id l10so1451304wrb.2 for ; Fri, 25 Oct 2019 02:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z24dDP8e4wKIUjS8UhLY486vqtfpCpTJ8Zx6A9S+9Dw=; b=Yk8S6YIQxND/0xjry0WeX1RYN+ZWSkUzNSspyjKpjEXwSEdgp9mQCm5LXP4abA2Uoe OHSJkr7QbCy7U8tp60D4d86ptOedua7DVFiB3eeqJIC+jjNJVEXp8TTgqXRg6QfNESMF Dx09KayN8Q465ZdqFidiRs9qMXsPFKJ1b4MfbY3MWslrNeGCeluM3EhSmFrfAK8HedbG MCWQbgekbqIbfC4OHjylZ0LXo9XP+lZQktFCpC5jzMDc//Wdw0zmbcAKZm/jYZm9lNsF +ZT9wo5D2nPqpaTvcAZCVuNVNjjL79+ZU7TjOMfNiTTFEAj7ch6AIIbGGNcYR9XKDiqh wftg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=z24dDP8e4wKIUjS8UhLY486vqtfpCpTJ8Zx6A9S+9Dw=; b=L5opP31rmDNuRKlihve5e8Q11Q4OQsTkxCECdCSD1ny6ZzN4veo3bRwJYJ1+xRjfWX i/0x6uH8xshPuESBVivj2tU4f/wNZz1TAmzd64QDHHt5IIIO/oyb/tOH2NUwm2gGYdUl /fqPqTQT70Rqt+zaaaIEZKpG3dqiKjtZbyB5Z59VBSbjNCgMVDDSyzYPLzhMwTDV8hjY CMEbnBZeA3V8ea0/HgCAKLugZjWhHbkUMPS9Hti4biiTlnPzT7p1g0JGD929uslhgAFt y3ba6d82OKNtxt2ZmPVmWOrHV9yix+9n+A0/lA+CEIRJK8OVSTi7z4WcvxR3+y+1zPxY f8Tw== X-Gm-Message-State: APjAAAWw8sq2V+n/iMP9WJPrnOHhyBymgl5qrQvB2jYC2DFpbmlSZMSX VfbJqDdafS2TKohSwuATRqi/SNMU/Dg= X-Google-Smtp-Source: APXvYqz/9QhCeteCwSy8LLjlrzPw+8rYGz+7qpLb4shLwRHxp30P5nlRUvObwNTpcKRhcQw6V7mLGw== X-Received: by 2002:adf:e446:: with SMTP id t6mr1939628wrm.7.1571995006715; Fri, 25 Oct 2019 02:16:46 -0700 (PDT) Received: from debian.mshome.net (54.163.200.146.dyn.plus.net. [146.200.163.54]) by smtp.gmail.com with ESMTPSA id b62sm1873283wmc.13.2019.10.25.02.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 02:16:46 -0700 (PDT) From: Wei Liu X-Google-Original-From: Wei Liu To: Xen Development List Date: Fri, 25 Oct 2019 10:16:15 +0100 Message-Id: <20191025091618.10153-5-liuwe@microsoft.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191025091618.10153-1-liuwe@microsoft.com> References: <20191025091618.10153-1-liuwe@microsoft.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH for-next 4/7] x86: add a comment regarding the location of hypervisor_probe X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Wei Liu , Wei Liu , Paul Durrant , Andrew Cooper , Michael Kelley , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Signed-off-by: Wei Liu Acked-by: Jan Beulich --- xen/arch/x86/setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index cf5a7b8e1e..4aa0af5a12 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -764,6 +764,10 @@ void __init noreturn __start_xen(unsigned long mbi_p) * allocing any xenheap structures wanted in lower memory. */ kexec_early_calculations(); + /* + * The probing has to be done _before_ initialising console, + * otherwise we couldn't set up Xen's PV console correctly. + */ running_on_hypervisor = hypervisor_probe(); parse_video_info();