Received: by 10.223.176.5 with SMTP id f5csp2705036wra; Mon, 29 Jan 2018 02:36:52 -0800 (PST) X-Google-Smtp-Source: AH8x227BsVzN5yrNPmKZaSMtQHbTcUjQcpiYjJlwuEmB1yuCBCq8k1dypXrDt1+9UT+pZG0wVGdd X-Received: by 2002:a17:902:8e83:: with SMTP id bg3-v6mr21954840plb.246.1517222211989; Mon, 29 Jan 2018 02:36:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517222211; cv=none; d=google.com; s=arc-20160816; b=XTUHuk2ZqedTx7AyFb361NZHEghBv0T4ndyPcFBQsEIZ0Ol896KYv90utZSdhNvBGO +sAUl+/3qNzq3lRLz53uuc+ieBbDLDoYD9IRLv+57NTMVf/eo48zolpSLRW6gsFkhMK7 z5monaJW34qsC50gcnHYFoidNcssh7aU/prbWYewRRD1u1kuAkPuQGMXCHsKTyLAhakp PDA9+65PJ4rdtNGC5KnfGY9MR3Fkrsjt/QThWTQerClr+UCfpYKNVaJU2w4RoPl8n1pj YCb2TMBoSeL3vm2L955fktK6FngdaNKIu+L+jj4D+R1vpf0Zf8CcqRxcdAwFs9GtRvI4 AtKQ== 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:organization:from:references:cc:to:subject :arc-authentication-results; bh=CIGcKifAMSOJQroweZBiOq7Qo9OumDO+HApAEOAeIac=; b=wIE7zTXj9ckGJUNhe2p4Tcoq/FOuESpLzL9PR2n89H+KXO/7PjdEjqIgl/8SNvUr6d dBLtmPOuQYfeB4Fp6sjsaFLjZUrJ03uwQKcP4Lp+iXjbA05hPqXSvqOj4Mkl3y6/0Xy3 BesMADFkr+YM2VnNzJ9G9bHWzy5dRYN0Cq6MrOweGRxtuT0Q4ma3XilleaTvE4rbnXpJ RDjQe5dCCnGoN2eR+E4EwOixIZ4WYjSckFveHZFv7tTAGIip2vAtqpE4sUFNoZW9YHXm XEEDlvyCBFpdqMtWfKPXmghWqz2V1n9+JCwJPdUnlhvPkOP1EKxsv6egb6WJ2alWmuh6 KHuw== 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 m5si7156966pgp.355.2018.01.29.02.36.37; Mon, 29 Jan 2018 02:36:51 -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 S1751784AbeA2KgD (ORCPT + 99 others); Mon, 29 Jan 2018 05:36:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33192 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751429AbeA2KgB (ORCPT ); Mon, 29 Jan 2018 05:36:01 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A5A9B28206; Mon, 29 Jan 2018 10:36:01 +0000 (UTC) Received: from [10.36.117.205] (ovpn-117-205.ams2.redhat.com [10.36.117.205]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8C0205C3FD; Mon, 29 Jan 2018 10:35:59 +0000 (UTC) Subject: Re: [PATCH v2 3/3] KVM: VMX: make MSR bitmaps per-VCPU To: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , David Woodhouse , KarimAllah Ahmed References: <1517043027-7655-1-git-send-email-pbonzini@redhat.com> <1517043027-7655-4-git-send-email-pbonzini@redhat.com> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: Date: Mon, 29 Jan 2018 11:35:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1517043027-7655-4-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 29 Jan 2018 10:36:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27.01.2018 09:50, Paolo Bonzini wrote: > Place the MSR bitmap in struct loaded_vmcs, and update it in place > every time the x2apic or APICv state can change. This is rare and > the loop can handle 64 MSRs per iteration, in a similar fashion as > nested_vmx_prepare_msr_bitmap. > > This prepares for choosing, on a per-VM basis, whether to intercept > the SPEC_CTRL and PRED_CMD MSRs. > > Suggested-by: Jim Mattson > Signed-off-by: Paolo Bonzini > --- I really like this change and didn't spot anything obvious. Acked-by: David Hildenbrand -- Thanks, David / dhildenb