History

KVM: X86: Provide a capability to disable cstate msr read intercepts

Allow guest reads CORE cstate when exposing host CPU power management capabilities to the guest. PKG cstate is restricted to avoid a guest to get the whole package information in multi-tenant scenario.

Wanpeng Li committed 7 years ago

Commit b5170061 parent 8ffdaa77 files · +23 −3Browse files

Showing the changes to include/uapi/linux (1 of 7 files). Show all

Unified · Split

include/uapi/linux/kvm.h+3−1
@@ -696,9 +696,11 @@ struct kvm_ioeventfd { · 695 unmodified lines
696696 #define KVM_X86_DISABLE_EXITS_MWAIT (1 << 0)
697697 #define KVM_X86_DISABLE_EXITS_HLT (1 << 1)
698698 #define KVM_X86_DISABLE_EXITS_PAUSE (1 << 2)
699+#define KVM_X86_DISABLE_EXITS_CSTATE (1 << 3)
699700 #define KVM_X86_DISABLE_VALID_EXITS (KVM_X86_DISABLE_EXITS_MWAIT | \
700701 KVM_X86_DISABLE_EXITS_HLT | \
701− KVM_X86_DISABLE_EXITS_PAUSE)
702+ KVM_X86_DISABLE_EXITS_PAUSE | \
703+ KVM_X86_DISABLE_EXITS_CSTATE)
702704
703705 /* for KVM_ENABLE_CAP */
704706 struct kvm_enable_cap {