Received: by 10.223.185.116 with SMTP id b49csp1710454wrg; Thu, 22 Feb 2018 01:40:46 -0800 (PST) X-Google-Smtp-Source: AH8x225PpVb2P7A2amX3NXiyaXp3AP1R/iqsUOzBZAvsuJBidfp8mCA2UYTJm5rvpYWsClxd2O9U X-Received: by 2002:a17:902:8341:: with SMTP id z1-v6mr6126384pln.386.1519292446417; Thu, 22 Feb 2018 01:40:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519292446; cv=none; d=google.com; s=arc-20160816; b=MLjHaacojA4smH2DjRIhsOBZDk4M1Evzf+6gLCHgTZmgSXhaJvfj/oCpKfxfZ2vazR VO4IFm36QTuzlidSDWbiOWCSjYI21uCPkFfxbFKrOr2vCLtkYzYMk2dK207h04UpemTj uogJaMXtwl6KpOtDSJfO76XlGZ25g5iRPI0DwsWvesEWWI0ivXDadpyWjlwAqdsfnJ6a vMoLrWTKak9Gq/5eM+sUhdekRaBCUlYHqx4NA5H0Z8+kitObSgT+Hxw5oyZjkLq4BNXY Q47n0VMoVROLZdX1L3MD4bt2VigKRd08auLMm+b3F/MRx3pPdHJ7fVn6De9bP1xQOFjd gVXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=OJFJYu+154gGmbl7d8X3i3bk3qwS9ewjcWD5Vt8duSU=; b=cvZ932VRtkRkvtqcAImQTuiYsvD7m+rvBoDuP+XxJXI5yL7ycNDtwcDgh5bYQzF/u+ 8XmEhaIwwjIBwnh/neb7ZOTaQ+S1xs6dOj2PIE/vzncuaOMatdQMnyuHO2X0K7mpeEm/ y4kyCZGpGE0rvGiYu+ZpE8pSqGE5DKYl0JGBZIhgbgo5ePirshZ40etHa5IGOhC8bnHm SsVmkA/DBTE0WDYOMfC+d214upOeXUyEURjyTC2inRxLrEhA0S3MJR11twAgwbcjePSZ x5ZH/R+wEP7uOtYwbA+6JDM0S1tNOrcuOgWEPp4zT1zZ7lROia1+1Kzh79+uQp34l3jF mQ4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m25si11017079pge.363.2018.02.22.01.40.32; Thu, 22 Feb 2018 01:40:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753252AbeBVJjW (ORCPT + 99 others); Thu, 22 Feb 2018 04:39:22 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:53468 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753029AbeBVJjT (ORCPT ); Thu, 22 Feb 2018 04:39:19 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EAEFE4040855; Thu, 22 Feb 2018 09:39:18 +0000 (UTC) Received: from [10.36.116.227] (ovpn-116-227.ams2.redhat.com [10.36.116.227]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 86C5F213AEE2; Thu, 22 Feb 2018 09:39:16 +0000 (UTC) Subject: Re: [PATCH 2/3] KVM: nVMX: fix wrong condition for SPEC_CTRL and PRED_CMD MSRs To: Jim Mattson Cc: LKML , kvm list , the arch/x86 maintainers , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , KarimAllah Ahmed , David Woodhouse , Thomas Gleixner , Ingo Molnar , stable@vger.kernel.org References: <1519249297-73718-1-git-send-email-pbonzini@redhat.com> <1519249297-73718-3-git-send-email-pbonzini@redhat.com> From: Paolo Bonzini Message-ID: <7ef4216d-6ebf-0ffe-c477-b820a2c942c3@redhat.com> Date: Thu, 22 Feb 2018 10:39:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 22 Feb 2018 09:39:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 22 Feb 2018 09:39:19 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'pbonzini@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/02/2018 01:07, Jim Mattson wrote: > On Wed, Feb 21, 2018 at 1:41 PM, Paolo Bonzini wrote: >> We need to change the default all-1s bitmap if the MSRs are _not_ >> intercepted. However, the code was disabling the intercept when it was >> _enabled_ in the VMCS01. This is not causing bigger trouble, >> because vmx_vcpu_run checks the VMCS02's MSR bitmap and would do the >> right thing even if fed garbage... but it's obviously a bug and it can >> cause extra MSR reads and writes when running nested guests. >> >> Fixes: d28b387fb74da95d69d2615732f50cceb38e9a4d >> Fixes: 15d45071523d89b3fb7372e2135fbd72f6af9506 >> Cc: x86@kernel.org >> Cc: Radim Krčmář >> Cc: KarimAllah Ahmed >> Cc: David Woodhouse >> Cc: Jim Mattson >> Cc: Thomas Gleixner >> Cc: Ingo Molnar >> Cc: stable@vger.kernel.org >> Signed-off-by: Paolo Bonzini > > Wasn't this already fixed by 206587a9fb76 ("X86/nVMX: Properly set > spec_ctrl and pred_cmd before merging MSRs")? Ouch, yes, and my patch would have no conflicts at all so it would reintroduce the bug! Will resend v2 without it. Paolo