From patchwork Fri Oct 25 09:16:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 11211811 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 334371920 for ; Fri, 25 Oct 2019 09:18:23 +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 0CA3821D7B for ; Fri, 25 Oct 2019 09:18:23 +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="d3ElIZtL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0CA3821D7B 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 1iNviY-0007t3-JJ; Fri, 25 Oct 2019 09:17:10 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iNviX-0007sZ-OF for xen-devel@lists.xenproject.org; Fri, 25 Oct 2019 09:17:09 +0000 X-Inumbo-ID: 2bfa81cc-f708-11e9-beca-bc764e2007e4 Received: from mail-wm1-x342.google.com (unknown [2a00:1450:4864:20::342]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 2bfa81cc-f708-11e9-beca-bc764e2007e4; Fri, 25 Oct 2019 09:16:48 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id g24so1248653wmh.5 for ; Fri, 25 Oct 2019 02:16:48 -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=RWvHYr4lwnnsyDQq6HwtOl4sm8TXtzS0Bm+BK++h16k=; b=d3ElIZtLaWqZS3IppT56DYW6psmlOuvC66A8uKjyQRvd1ExSFqORFPOx/bpuy2ft/O KIm1WOFdbtGGl+lV0HqA/9VHrw71csfdkW+9yKITufK2mVvezWA6uGGwmyEPsCrKRH1m bUYn8i/cWsgkJU6AQeNtSdyDVBYrhtsrucNz/84GEcMXbXgh/TvKbnQw1OWX80fUeXLS VwnWJ9I3sWI7p6nkgwYbCcIj+B/hiqiGa+H/XrqJwt5mJeVN8fslML0VRaFkagRjtKeN ya1R0mIb+Is5rr8KmPuvkophsxrG8hG6FmUjiBIgSEoQAKaZsTzqZESpm6KfxRTbVuwA LmIg== 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=RWvHYr4lwnnsyDQq6HwtOl4sm8TXtzS0Bm+BK++h16k=; b=T7DHa52/KUg3aGOkqtL22GfQhEFQSsmMIQfFTN8dCqms8PCz63Y9CuqLLmk0hCK9F3 GtJnumpTEmevaysL7tWz7il16vfpAGQo32K2vpMT2HYuAwB69FBFIIhtJRR8fRmWW5s0 Sx2bZLecvQ2+3FEWAvLskabCXXrGgJH60HigJW2hRulPZ27SJR0d/cPdl48YT8ANW5vB wi4Vcm2gKztO1lmXxOh2p5Gaty1/iLWrEaYHdJojfT4x/wF4bWW6fufggClntP71/arW qj68wflcDvYH2TnHcayz2Vi02VjNjVGjjUsTJa8WbXtvChUjWvpwZdh45fDAn+sBRFTC wcbw== X-Gm-Message-State: APjAAAVx7LHHBcC5Nm1h3bwcvigPH0hENPtgZdFqNzkeZ8qQpxQhEYMN oqQiwcyNT7sGzy/NBSUIvQQXH0YDruM= X-Google-Smtp-Source: APXvYqx6JQzQaz5vNVGoDOwICJjW8dz5FDmoXpvAKLe0GXRoyJj1QZdb9o+LXu12KBnPD04UfFbsHA== X-Received: by 2002:a1c:41c1:: with SMTP id o184mr2466470wma.57.1571995007682; Fri, 25 Oct 2019 02:16:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 02:16:47 -0700 (PDT) From: Wei Liu X-Google-Original-From: Wei Liu To: Xen Development List Date: Fri, 25 Oct 2019 10:16:16 +0100 Message-Id: <20191025091618.10153-6-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 5/7] x86: use running_on_hypervisor to gate hypervisor_setup 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" The hypervisor_setup method is not unique to Xen guest. Signed-off-by: Wei Liu --- xen/arch/x86/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 4aa0af5a12..044c45be36 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -1577,7 +1577,7 @@ void __init noreturn __start_xen(unsigned long mbi_p) max_cpus = nr_cpu_ids; } - if ( xen_guest ) + if ( running_on_hypervisor ) hypervisor_setup(); /* Low mappings were only needed for some BIOS table parsing. */