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
696#define KVM_X86_DISABLE_EXITS_MWAIT (1 << 0)696#define KVM_X86_DISABLE_EXITS_MWAIT (1 << 0)
697#define KVM_X86_DISABLE_EXITS_HLT (1 << 1)697#define KVM_X86_DISABLE_EXITS_HLT (1 << 1)
698#define KVM_X86_DISABLE_EXITS_PAUSE (1 << 2)698#define KVM_X86_DISABLE_EXITS_PAUSE (1 << 2)
699#define KVM_X86_DISABLE_EXITS_CSTATE (1 << 3)
699#define KVM_X86_DISABLE_VALID_EXITS (KVM_X86_DISABLE_EXITS_MWAIT | \700#define KVM_X86_DISABLE_VALID_EXITS (KVM_X86_DISABLE_EXITS_MWAIT | \
700 KVM_X86_DISABLE_EXITS_HLT | \701 KVM_X86_DISABLE_EXITS_HLT | \
701 KVM_X86_DISABLE_EXITS_PAUSE)702 KVM_X86_DISABLE_EXITS_PAUSE | \
703 KVM_X86_DISABLE_EXITS_CSTATE)
702 704
703/* for KVM_ENABLE_CAP */705/* for KVM_ENABLE_CAP */
704struct kvm_enable_cap {706struct kvm_enable_cap {