Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 23 Jun 2018 13:59:36 -0000 Received: from aserp2120.oracle.com ([141.146.126.78]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fWj4I-00066l-He for speck@linutronix.de; Sat, 23 Jun 2018 15:59:11 +0200 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5NDs4uh020455 for ; Sat, 23 Jun 2018 13:59:04 GMT Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2jsfg0rh2f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 23 Jun 2018 13:59:04 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w5NDx3Uk015482 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 23 Jun 2018 13:59:03 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5NDx36i027431 for ; Sat, 23 Jun 2018 13:59:03 GMT Message-Id: <20180623135414.091581758@localhost.localdomain> Date: Sat, 23 Jun 2018 09:54:14 -0400 From: konrad.wilk@oracle.com Subject: [MODERATED] [PATCH v4 0/8] [PATCH v4] Further reworked KVM patches Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 To: speck@linutronix.de List-ID: Hi! This patchset has Paolo's patches + mine with the review comment addressed. That is: - Moved the warning when launching guests. - Make it warn if disallow_smt=0 - Make it error if disallow_smt=1 and also fail ioctl: ioctl(KVM_CREATE_VM) failed: 95 Operation not supported qemu-system-x86_64: failed to initialize KVM: Operation not supported - Expand the blacklist of VMexit handlers that need L1 flushing. It also tacks on an optimization if the non-default vmentry_l1d_flush=2 (always use L1D cache) parameter is used. I will send off on Monday a build to the performance team so will have a better feel for it - but in the meantime was wondering if other folks had done SPEC* type runs? I did some kernel compilations and the numbers were in the noise. Documentation/admin-guide/kernel-parameters.txt | 17 +++ arch/x86/include/asm/kvm_host.h | 8 ++ arch/x86/include/asm/msr-index.h | 6 + arch/x86/kvm/mmu.c | 1 + arch/x86/kvm/svm.c | 1 + arch/x86/kvm/vmx.c | 183 ++++++++++++++++++------ arch/x86/kvm/x86.c | 69 ++++++++- kernel/cpu.c | 1 + 8 files changed, 245 insertions(+), 41 deletions(-) Konrad Rzeszutek Wilk (6): x86/KVM: Warn user if KVM is loaded SMT and L1TF CPU bug being present. x86/KVM/VMX: Split the VMX MSR LOAD structures to have an host/guest numbers. x86/KVM/VMX: Add find_msr helper function x86/KVM/VMX: Seperate the VMX AUTOLOAD guest/host number accounting. x86/KVM/VMX: Add framework for having disjoint amount of MSRs to save/restore x86/KVM/VMX: Use MSR save list for IA32_FLUSH_CMD if required. Paolo Bonzini (2): kvm: x86: mitigation for L1 cache terminal fault vulnerabilities x86/KVM: Use L1 cache flush before VMENTER if available.