Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753025AbdHXPlV (ORCPT ); Thu, 24 Aug 2017 11:41:21 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:35466 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751895AbdHXPlT (ORCPT ); Thu, 24 Aug 2017 11:41:19 -0400 X-Google-Smtp-Source: ADKCNb4/QqKMNDTKYS3kSvKjBYaMvn9gvqFo+u3Q/rxtMnG6i2FnwD6LPR4+Xi9ky55/aoNpIjLhVwLgfIljZNMajf8= MIME-Version: 1.0 In-Reply-To: References: <1503581879-52125-1-git-send-email-pbonzini@redhat.com> <1503581879-52125-2-git-send-email-pbonzini@redhat.com> From: Jim Mattson Date: Thu, 24 Aug 2017 08:41:17 -0700 Message-ID: Subject: Re: [PATCH 1/4] KVM: VMX: cache secondary exec controls To: Paolo Bonzini Cc: LKML , kvm list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 730 Lines: 20 Userspace can establish the value of the virtualized IA32_VMX_PROCBASED_CTLS2 MSR via the KVM_SET_MSRS ioctl, which goes through vms_set_vmx_msr. But maybe that's not important, since features can only be disabled on that path. On Thu, Aug 24, 2017 at 8:25 AM, Paolo Bonzini wrote: > On 24/08/2017 16:47, Jim Mattson wrote: >>> Currently, secondary execution controls are divided in three groups: >>> >>> - static, depending mostly on the module arguments or the processor >>> (vmx_secondary_exec_control) >>> >>> - static, depending on CPUID (vmx_cpuid_update) >> There should also be: >> >> - static, depending on guest VMX capability MSRs (vmx_set_vmx_msr) > > Can you explain what you mean? > > Paolo