Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1726874

[PATCH] KVM: SVM: Do not issue virtual VMLOAD/VMSAVE supported-message

From Borislav Petkov <bp@alien8.de>
Newsgroups linux.kernel
Subject [PATCH] KVM: SVM: Do not issue virtual VMLOAD/VMSAVE supported-message
Date 2017-09-05 19:10 +0200
Message-ID <umpwl-5Ck-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


From: Borislav Petkov <bp@suse.de>

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 <bp@suse.de>
Cc: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
---
 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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] KVM: SVM: Do not issue virtual VMLOAD/VMSAVE supported-message Borislav Petkov <bp@alien8.de> - 2017-09-05 19:10 +0200
  Re: [PATCH] KVM: SVM: Do not issue virtual VMLOAD/VMSAVE  supported-message David Hildenbrand <david@redhat.com> - 2017-09-06 15:00 +0200
    Re: [PATCH] KVM: SVM: Do not issue virtual VMLOAD/VMSAVE  supported-message Borislav Petkov <bp@alien8.de> - 2017-09-06 15:20 +0200
      Re: [PATCH] KVM: SVM: Do not issue virtual VMLOAD/VMSAVE  supported-message David Hildenbrand <david@redhat.com> - 2017-09-06 16:10 +0200
        Re: [PATCH] KVM: SVM: Do not issue virtual VMLOAD/VMSAVE  supported-message Borislav Petkov <bp@alien8.de> - 2017-09-06 17:30 +0200

csiph-web