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.
Showing the changes to include/uapi/linux (1 of 7 files). Show all
Unified · Split
| @@ -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 */ |
| 704 | struct kvm_enable_cap { | 706 | struct kvm_enable_cap { |