/openbmc/linux/arch/x86/kvm/svm/ |
H A D | pmu.c | diff ba7bb663f5547ef474c98df99a97bb4a13c5715f Wed Feb 23 16:57:41 CST 2022 David Dunn <daviddunn@google.com> KVM: x86: Provide per VM capability for disabling PMU virtualization
Add a new capability, KVM_CAP_PMU_CAPABILITY, that takes a bitmask of settings/features to allow userspace to configure PMU virtualization on a per-VM basis. For now, support a single flag, KVM_PMU_CAP_DISABLE, to allow disabling PMU virtualization for a VM even when KVM is configured with enable_pmu=true a module level.
To keep KVM simple, disallow changing VM's PMU configuration after vCPUs have been created.
Signed-off-by: David Dunn <daviddunn@google.com> Message-Id: <20220223225743.2703915-2-daviddunn@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
/openbmc/linux/arch/x86/kvm/vmx/ |
H A D | pmu_intel.c | diff ba7bb663f5547ef474c98df99a97bb4a13c5715f Wed Feb 23 16:57:41 CST 2022 David Dunn <daviddunn@google.com> KVM: x86: Provide per VM capability for disabling PMU virtualization
Add a new capability, KVM_CAP_PMU_CAPABILITY, that takes a bitmask of settings/features to allow userspace to configure PMU virtualization on a per-VM basis. For now, support a single flag, KVM_PMU_CAP_DISABLE, to allow disabling PMU virtualization for a VM even when KVM is configured with enable_pmu=true a module level.
To keep KVM simple, disallow changing VM's PMU configuration after vCPUs have been created.
Signed-off-by: David Dunn <daviddunn@google.com> Message-Id: <20220223225743.2703915-2-daviddunn@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
/openbmc/linux/Documentation/virt/kvm/ |
H A D | api.rst | diff ba7bb663f5547ef474c98df99a97bb4a13c5715f Wed Feb 23 16:57:41 CST 2022 David Dunn <daviddunn@google.com> KVM: x86: Provide per VM capability for disabling PMU virtualization
Add a new capability, KVM_CAP_PMU_CAPABILITY, that takes a bitmask of settings/features to allow userspace to configure PMU virtualization on a per-VM basis. For now, support a single flag, KVM_PMU_CAP_DISABLE, to allow disabling PMU virtualization for a VM even when KVM is configured with enable_pmu=true a module level.
To keep KVM simple, disallow changing VM's PMU configuration after vCPUs have been created.
Signed-off-by: David Dunn <daviddunn@google.com> Message-Id: <20220223225743.2703915-2-daviddunn@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | kvm.h | diff ba7bb663f5547ef474c98df99a97bb4a13c5715f Wed Feb 23 16:57:41 CST 2022 David Dunn <daviddunn@google.com> KVM: x86: Provide per VM capability for disabling PMU virtualization
Add a new capability, KVM_CAP_PMU_CAPABILITY, that takes a bitmask of settings/features to allow userspace to configure PMU virtualization on a per-VM basis. For now, support a single flag, KVM_PMU_CAP_DISABLE, to allow disabling PMU virtualization for a VM even when KVM is configured with enable_pmu=true a module level.
To keep KVM simple, disallow changing VM's PMU configuration after vCPUs have been created.
Signed-off-by: David Dunn <daviddunn@google.com> Message-Id: <20220223225743.2703915-2-daviddunn@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
/openbmc/linux/include/uapi/linux/ |
H A D | kvm.h | diff ba7bb663f5547ef474c98df99a97bb4a13c5715f Wed Feb 23 16:57:41 CST 2022 David Dunn <daviddunn@google.com> KVM: x86: Provide per VM capability for disabling PMU virtualization
Add a new capability, KVM_CAP_PMU_CAPABILITY, that takes a bitmask of settings/features to allow userspace to configure PMU virtualization on a per-VM basis. For now, support a single flag, KVM_PMU_CAP_DISABLE, to allow disabling PMU virtualization for a VM even when KVM is configured with enable_pmu=true a module level.
To keep KVM simple, disallow changing VM's PMU configuration after vCPUs have been created.
Signed-off-by: David Dunn <daviddunn@google.com> Message-Id: <20220223225743.2703915-2-daviddunn@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | kvm_host.h | diff ba7bb663f5547ef474c98df99a97bb4a13c5715f Wed Feb 23 16:57:41 CST 2022 David Dunn <daviddunn@google.com> KVM: x86: Provide per VM capability for disabling PMU virtualization
Add a new capability, KVM_CAP_PMU_CAPABILITY, that takes a bitmask of settings/features to allow userspace to configure PMU virtualization on a per-VM basis. For now, support a single flag, KVM_PMU_CAP_DISABLE, to allow disabling PMU virtualization for a VM even when KVM is configured with enable_pmu=true a module level.
To keep KVM simple, disallow changing VM's PMU configuration after vCPUs have been created.
Signed-off-by: David Dunn <daviddunn@google.com> Message-Id: <20220223225743.2703915-2-daviddunn@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
/openbmc/linux/arch/x86/kvm/ |
H A D | x86.c | diff ba7bb663f5547ef474c98df99a97bb4a13c5715f Wed Feb 23 16:57:41 CST 2022 David Dunn <daviddunn@google.com> KVM: x86: Provide per VM capability for disabling PMU virtualization
Add a new capability, KVM_CAP_PMU_CAPABILITY, that takes a bitmask of settings/features to allow userspace to configure PMU virtualization on a per-VM basis. For now, support a single flag, KVM_PMU_CAP_DISABLE, to allow disabling PMU virtualization for a VM even when KVM is configured with enable_pmu=true a module level.
To keep KVM simple, disallow changing VM's PMU configuration after vCPUs have been created.
Signed-off-by: David Dunn <daviddunn@google.com> Message-Id: <20220223225743.2703915-2-daviddunn@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|