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: 10090361 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 0561460329 for ; Mon, 4 Dec 2017 14:05:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1E9628421 for ; Mon, 4 Dec 2017 14:05:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D54222842B; Mon, 4 Dec 2017 14:05:09 +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=-4.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,URIBL_DBL_ABUSE_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AF032899A for ; Mon, 4 Dec 2017 14:05:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753541AbdLDOEy (ORCPT ); Mon, 4 Dec 2017 09:04:54 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:46378 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754476AbdLDOEK (ORCPT ); Mon, 4 Dec 2017 09:04:10 -0500 Received: by mail-wr0-f194.google.com with SMTP id x49so17407303wrb.13 for ; Mon, 04 Dec 2017 06:04:09 -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=dQBI8Jy7cXbtVqIep80mXdZ0pCkP0C14bPS8HosYAboujCKcS57OZjjI8IzACPiE7j 29iuujq5+7bnixrljsjb6sCve4Cmqk5inVsNyG6pqzutDOLjGC7ZxPVL595iFei3Lv1R ReHSB6vTSBT1TWNf/W2AOrdZxuJh9zvjmZCm+Bw/39K2to0YrhKx8lxOzA10UcejTA44 eXZakNEPY2pORrNAQOb9WoVH7cwMf67QRvASL7dxqykuaPKRNpZJMAsY2Yzbp9E/qpyN ELAYbDS2ppaMi9oh0da1x5kVydZ8BeRfs0+t3VAKNLvdBSNqvTK2Qm6XDI7B7I2uKwej AMqw== X-Gm-Message-State: AJaThX6BL41Bt0Wx2CXOIKBprZS4VYKHHE2oOHqNtoRJcSrydNVFL4Y8 D63stp8kL2ZjnBvV4Ps3L65pzw== 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?= Cc: linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, Marc Zyngier , Ard Biesheuvel , Christoffer Dall 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> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.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; }