From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752159AbdIERGn (ORCPT ); Tue, 5 Sep 2017 13:06:43 -0400 Received: from mail.skyhub.de ([5.9.137.197]:52928 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751480AbdIERGm (ORCPT ); Tue, 5 Sep 2017 13:06:42 -0400 From: Borislav Petkov To: KVM Cc: LKML , Janakarajan Natarajan , Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [PATCH] KVM: SVM: Do not issue virtual VMLOAD/VMSAVE supported-message Date: Tue, 5 Sep 2017 19:06:28 +0200 Message-Id: <20170905170628.10211-1-bp@alien8.de> X-Mailer: git-send-email 2.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov There's no need to issue that everytime during boot - we have the /proc/cpuinfo flag for people and software to query. Signed-off-by: Borislav Petkov Cc: Janakarajan Natarajan Cc: Paolo Bonzini Cc: Radim Krčmář --- arch/x86/kvm/svm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 8dbd8dbc83eb..f25e5b930932 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -1101,11 +1101,8 @@ static __init int svm_hardware_setup(void) if (vls) { if (!npt_enabled || !boot_cpu_has(X86_FEATURE_V_VMSAVE_VMLOAD) || - !IS_ENABLED(CONFIG_X86_64)) { + !IS_ENABLED(CONFIG_X86_64)) vls = false; - } else { - pr_info("Virtual VMLOAD VMSAVE supported\n"); - } } return 0; -- 2.13.0