Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp470326pxb; Wed, 18 Aug 2021 06:39:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9bq76W6cmizKkZkC59edkqq/nsmI/JYIE7x4m76OeFGt2og0grFAIP5C8UfyiW/J7eTFy X-Received: by 2002:a17:907:f86:: with SMTP id kb6mr10068679ejc.138.1629293993373; Wed, 18 Aug 2021 06:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629293993; cv=none; d=google.com; s=arc-20160816; b=XBt9hAOhVTHdCw4ea+ALuHd/wXQr2Ll41KALk245L9BsBfMa7GKhqMBl7poapNeXat +fqPid53EdCq5x+pt3GxJFvHqEJizfAlSQyDpmTHYAXwS3glaV/wylum3BfxbNKqDhRe FWJRrXI2F262C4ar2cei4MXn9izwAE6nIkNJBOikFCZzjS+T8IH0IxLFV/999QIc/OB/ o9MAJ8eL8xWyp+XudqEI3e+FdYgOEOH5FWNHLmnoDmZ7Ys1cbb8PPBo11QoTo//QZyOH TG8cGWVu62ZO6y6Fgj0vCUkLLeyuk0irRLZCFYkJm5DaGDYr8MlqSW82BYniy7RibX9g y4Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=YGMpPS7Lm3/q7wOUCM88wKRsY6B2SKkiNWsWUqO0BSA=; b=RzdyJPfEM5OJg9/0zY1xsFiXV9oqGfOu2Rrzthj4InwOWSkDoRlA9SXuaesacyHhsG wkq1UBKHs3g8NIqETl9TiNk26S+vOGXRhAgi48anN2tdoX4zQGIlUnhQO5Blhj6ugDti sd2YFjdHcGBhOWYs1x14wBWtyQmf0HhJrtqfY8hz1aR+IzHhJn557r0ZM0VvAq1Do5Xz hVpggFd3rIK9XTZAQ7oWbufp6+hu1l0fsKZKfge4S8dMDw20D6C3F9noeYxfYBvF932y KnJ/JeRZ+yco77sLkWnx2AkVdF+FEduAVCshD6qQQOZZYiYMkvTmWhILgblpEYhGwEk/ P1hA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz11si5243003ejc.366.2021.08.18.06.39.29; Wed, 18 Aug 2021 06:39:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236899AbhHRNhz (ORCPT + 99 others); Wed, 18 Aug 2021 09:37:55 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:39710 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233722AbhHRNhz (ORCPT ); Wed, 18 Aug 2021 09:37:55 -0400 Received: from MUA by vps-vb.mhejs.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1mGLkN-0004Vy-54; Wed, 18 Aug 2021 15:36:47 +0200 Subject: Re: [PATCH] x86: kvm: Demote level of already loaded message from error to info To: Paul Menzel Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Ingo Molnar , Thomas Gleixner , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" References: <20210818114956.7171-1-pmenzel@molgen.mpg.de> From: "Maciej S. Szmigiero" Message-ID: Date: Wed, 18 Aug 2021 15:36:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210818114956.7171-1-pmenzel@molgen.mpg.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18.08.2021 13:49, Paul Menzel wrote: > In scripts, running > > modprobe kvm_amd 2>/dev/null > modprobe kvm_intel 2>/dev/null > > to ensure the modules are loaded causes Linux to log errors. > > $ dmesg --level=err > [ 0.641747] [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x3a (or later) > [ 40.196868] kvm: already loaded the other module > [ 40.219857] kvm: already loaded the other module > [ 55.501362] kvm [1177]: vcpu0, guest rIP: 0xffffffff96e5b644 disabled perfctr wrmsr: 0xc2 data 0xffff > [ 56.397974] kvm [1418]: vcpu0, guest rIP: 0xffffffff81046158 disabled perfctr wrmsr: 0xc1 data 0xabcd > [1007981.827781] kvm: already loaded the other module > [1008000.394089] kvm: already loaded the other module > [1008030.706999] kvm: already loaded the other module > [1020396.054470] kvm: already loaded the other module > [1020405.614774] kvm: already loaded the other module > [1020410.140069] kvm: already loaded the other module > [1020704.049231] kvm: already loaded the other module > > As one of the two KVM modules is already loaded, KVM is functioning, and > their is no error condition. Therefore, demote the log message level to > informational. > Shouldn't this return ENODEV when loading one of these modules instead as there is no hardware that supports both VMX and SVM? Thanks, Maciej