From patchwork Mon Sep 23 10:09:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 11156567 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 528B9112B for ; Mon, 23 Sep 2019 10:11:55 +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 2E1C820820 for ; Mon, 23 Sep 2019 10:11:55 +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="QKRgf39r" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2E1C820820 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 1iCLIS-0007cE-1I; Mon, 23 Sep 2019 10:10:20 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iCLIQ-0007bP-Ae for xen-devel@lists.xenproject.org; Mon, 23 Sep 2019 10:10:18 +0000 X-Inumbo-ID: 43626438-ddea-11e9-a337-bc764e2007e4 Received: from mail-wr1-x443.google.com (unknown [2a00:1450:4864:20::443]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 43626438-ddea-11e9-a337-bc764e2007e4; Mon, 23 Sep 2019 10:09:43 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id l11so13226060wrx.5 for ; Mon, 23 Sep 2019 03:09:43 -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=Yhsc+HWc7UY9B6qKVRW2bcLWA9bzINIqtexNLDZik88=; b=QKRgf39r53CdG9wwxV68nU2s5oulVwOKADpxfCmy1r1qR9gHBpgv5K5xN5opulNiV6 /htwusVkgpUef7gYdY9ObiFwOKlEwaYHFDdRZOv6Mz0pTSBHhBQEHO8DnOLcLPlm+dmg yQ5zkGENiKEV58SsV9zZ99yCwAfK6egxyRFn/HnzUqY90Z0hXPMB6H7uEooZO0ADoJbA nNZ0jeIFDUGoGw4cEFALnNP+mmHnENxE8UnEm+rc5HnX+biA9PDU8zDfIS7U+ZSEnMB2 7yNDETG08daHxYgH9IDeA8mN7UalWpJk4oS9AHG/m2qBc9FkOBcf6PJIMmcHhzmz6G9b qcZg== 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=Yhsc+HWc7UY9B6qKVRW2bcLWA9bzINIqtexNLDZik88=; b=I139a5GBEiaaYcrC9kI3Lam3pHAJopeD25lY7cKBKCrpKjTvGyWm3N8jNDEFuw/XmJ zOhd1tnEcD6t8UQJvgdFYEs/IZoBZhYyeVvxwpgwq5ZUpa4zt/FGAkYNtJNp76dk+CV7 sGtUynpGyq6Pt+WnnzsQ8fdAhm98Bs4aq2FkPFq5gwNMDq79egqTOWBRzogrn/akVcGA 5gr5lT8V6z5W3FcfuxMDSKZaOp7yvn5zRw7V+VskWJQcFLr+RW28NCzQY+JGf3DcMFpl NFG+TmWixS93ZwI7Lim9RPbpYAyILhVLpyRq5s2hxy2eH1nhPBTBGClmVlA/slnCnQ57 G0XQ== X-Gm-Message-State: APjAAAWVzhKxxhEqCSY4fjXb3zmviUrisvvKgdGq9tIiPKF9Z0Opc284 41yERIiGaUikqCVpoZP4IA+TGiBw X-Google-Smtp-Source: APXvYqz4dzc1WRlkX8HPkBrx46odkk5LysJbmR/OKnNJk/kGwJkrNc0dd9t2LH5yd9MNx8UwxU0x2A== X-Received: by 2002:adf:ed05:: with SMTP id a5mr20955854wro.35.1569233383004; Mon, 23 Sep 2019 03:09:43 -0700 (PDT) Received: from debian.mshome.net (207.148.159.143.dyn.plus.net. [143.159.148.207]) by smtp.gmail.com with ESMTPSA id s10sm18241662wmf.48.2019.09.23.03.09.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2019 03:09:42 -0700 (PDT) From: Wei Liu X-Google-Original-From: Wei Liu To: Xen Development List Date: Mon, 23 Sep 2019 11:09:31 +0100 Message-Id: <20190923100931.29670-9-liuwe@microsoft.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190923100931.29670-1-liuwe@microsoft.com> References: <20190923100931.29670-1-liuwe@microsoft.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH for-next RFC 8/8] x86: be more verbose when running nested 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 , 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 --- xen/arch/x86/setup.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index dec60d0301..bbcc5a503d 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -789,6 +789,17 @@ void __init noreturn __start_xen(unsigned long mbi_p) printk("Xen image load base address: %#lx\n", xen_phys_start); +#ifdef CONFIG_GUEST +#ifdef CONFIG_XEN_GUEST + if ( xen_guest ) + printk("Running on Xen hypervisor\n"); +#endif +#ifdef CONFIG_HYPERV_GUEST + if ( hyperv_guest ) + printk("Running on Hyper-V\n"); +#endif +#endif + #ifdef CONFIG_VIDEO printk("Video information:\n");