From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932098AbdECTiJ (ORCPT ); Wed, 3 May 2017 15:38:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49408 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754286AbdECTiE (ORCPT ); Wed, 3 May 2017 15:38:04 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9B1D680C0B Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=rkrcmar@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 9B1D680C0B From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Paolo Bonzini , Alexander Graf , "Michael S. Tsirkin" , "Gabriel L. Somlo" Subject: [PATCH 0/4] KVM: x86: kvm_mwait_in_guest() cleanup and fixes Date: Wed, 3 May 2017 21:37:29 +0200 Message-Id: <20170503193733.13409-1-rkrcmar@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 03 May 2017 19:38:03 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kvm_mwait_in_guest() was overcomplicated and also missed one AMD bug that should prevent MWAIT pass through. This series ignores errata that don't have any Linux bug defined; I know of two minor (not affecting the host) Core 2 errata: AG36. Split Locked Stores May not Trigger the Monitoring Hardware AG106. A REP STOS/MOVS to a MONITOR/MWAIT Address Range May Prevent Triggering of the Monitoring Hardware None of them are really worthy of a new condition if Linux never hit them ... we still have the OS X bug that Gabriel is hitting, but I'm ok with the original approach that sacrificed it for "greater good". Radim Krčmář (4): KVM: svm: prevent MWAIT in guest with erratum 400 KVM: x86: prevent MWAIT in guest with buggy MONITOR KVM: x86: drop bogus MWAIT check KVM: x86: simplify kvm_mwait_in_guest() arch/x86/kvm/x86.h | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) -- 2.12.2