From patchwork Mon Dec 4 14:03:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 10090403 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5310A60329 for ; Mon, 4 Dec 2017 14:09:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C54A291E3 for ; Mon, 4 Dec 2017 14:09:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3AE18291F2; Mon, 4 Dec 2017 14:09:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, URIBL_DBL_ABUSE_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C69B2287C0 for ; Mon, 4 Dec 2017 14:09:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=vA4KJwoqbf16rp9sWTkzE+2DhYzcnuhiRb5nItfstSg=; b=e63535F5aR9T7zAVT4B2dC9xif bdp1inILQ0WJ5YflpJxJE6Wyc7Kyi7+cyPRtzROEaM73OAbW2seSPqNDylOVx+otllTZY/KbpIrV/ fJ83n2CkBhjwVAE6U5NMLMsELJblx7PM5V5dtCY9FiKAyG+5EcQfVtmln15NzsWjq4+frVMXhlogs bEfBjIBSk11ZG6CRob0CiT7ypxpsl3XOJJgvIzi7n3xJUXGRg2opLXdUfX8l5CyyEStecuAFAaXLH t7jJo1zOhF+r2gSGz7X0DxAyTx5AXt18h/Rs30DWe0scs5RP3ZJSmDUDlhHNwc6o3Ke3n3kNv3UJ3 hPYl7tow==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eLrQi-00080X-U0; Mon, 04 Dec 2017 14:09:09 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eLrMB-0002Pk-6D for linux-arm-kernel@lists.infradead.org; Mon, 04 Dec 2017 14:04:37 +0000 Received: by mail-wr0-x243.google.com with SMTP id y21so17360895wrc.1 for ; Mon, 04 Dec 2017 06:04:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=christofferdall-dk.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=3piSvi0GX5+281FDaMeFJJxgYfdC0NdbjmkNYJbx/xA=; b=qfm1fN2/tQL3fEEl4/cFNPNQ5CM/uNUbkjzcphOsO4NXqerQTVGx7Wt3b6C8074nqP w94y4TfQrGRDiuHczB3I5DsRT20JQoYp9rOAaQdZWVr2mdWJuQzY1fifj/la21RWMBUc RDrom87ia1f7qdyvzF6mAhmsZiG1IVpxexN2KgWNN7j5WXphwEXiI3bUrm1TFTNvRK73 98+14y7f0xYESTFfYriB/GRSdLWAY2dI2ZTL0xwAlrTee7ZP15ibf0W/XbGY1HwWBArj 8OfKqWbH+Y0cp3N+51CZGlMEnQxK4K73K9sWU/ZdoSWaiSJ1Y4kHj7Smrqu89GobMyIY JnFw== 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; bh=3piSvi0GX5+281FDaMeFJJxgYfdC0NdbjmkNYJbx/xA=; b=m+Uez0M+qnat1ytB/1teFlyculJbcM20zGp7TKjDqUe0BgbLum9eFsaEWgOE4Pi2h6 2BnnYsS98vCyRZbCysU+U3EVH2lLHkYMOdXpuaO6nuMrkpr0Jk2hPLvecZv08lFbA+tq cCVd1M17enkfFfzqEYDTk4R7CqQ6IRfbVoj+HX5P2g/qHkiO2aq808mXVcTx1n/HPxF7 210UIWqS/72NNAhNNlXLxoZ4+bFerPAv45qTTHe2AkrHcQ9ZBg3iOZE03j/41Bq2iciZ u94ipk6870vfOxZmDqoz5SkjyP1is5uFa1hVUu3TQhRBQGz5UVeE1J8FQDTP8X8YUjda wE+A== X-Gm-Message-State: AJaThX5pgORnGhM3X8UE9IHMEzJH80bLSUICyXU+CduJF4PX3oRY7S47 FyjcHPdnZ5vRbHgiRFiXkrhJvSoheu4= X-Google-Smtp-Source: AGs4zMZxMRwBpP5fQlW/EGUltvNSHVG3unk6l1JsnDAAQPD1ZxLoSIYW8J2SzACyLYS/Qli6zpNLdA== X-Received: by 10.223.184.42 with SMTP id h39mr13281373wrf.38.1512396249323; Mon, 04 Dec 2017 06:04:09 -0800 (PST) Received: from localhost.localdomain (x50d2404e.cust.hiper.dk. [80.210.64.78]) by smtp.gmail.com with ESMTPSA id g7sm22794279wra.38.2017.12.04.06.04.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Dec 2017 06:04:08 -0800 (PST) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu, Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [PULL 16/19] kvm: arm: don't treat unavailable HYP mode as an error Date: Mon, 4 Dec 2017 15:03:45 +0100 Message-Id: <20171204140348.21965-14-cdall@kernel.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171204135637.21620-1-cdall@kernel.org> References: <20171204135637.21620-1-cdall@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171204_060428_148836_DA9889E4 X-CRM114-Status: GOOD ( 11.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Christoffer Dall , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ard Biesheuvel MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ard Biesheuvel Since it is perfectly legal to run the kernel at EL1, it is not actually an error if HYP mode is not available when attempting to initialize KVM, given that KVM support cannot be built as a module. So demote the kvm_err() to kvm_info(), which prevents the error from appearing on an otherwise 'quiet' console. Acked-by: Marc Zyngier Acked-by: Christoffer Dall Signed-off-by: Ard Biesheuvel Signed-off-by: Christoffer Dall --- virt/kvm/arm/arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c index 322c570d211e..ca65d06b38a8 100644 --- a/virt/kvm/arm/arm.c +++ b/virt/kvm/arm/arm.c @@ -1507,7 +1507,7 @@ int kvm_arch_init(void *opaque) bool in_hyp_mode; if (!is_hyp_mode_available()) { - kvm_err("HYP mode not available\n"); + kvm_info("HYP mode not available\n"); return -ENODEV; }