diff options
author | Jing Liu <[email protected]> | 2022-01-05 04:35:15 -0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-01-07 13:33:04 -0500 |
commit | 445ecdf79be0c71ca248f7611aeefceaea3ec59f (patch) | |
tree | de6de4d866343a9cddb7e1f0715e359f587eb211 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | cc04b6a21d431359eceeec0d812b492088b04af5 (diff) |
kvm: x86: Exclude unpermitted xfeatures at KVM_GET_SUPPORTED_CPUID
KVM_GET_SUPPORTED_CPUID should not include any dynamic xstates in
CPUID[0xD] if they have not been requested with prctl. Otherwise
a process which directly passes KVM_GET_SUPPORTED_CPUID to
KVM_SET_CPUID2 would now fail even if it doesn't intend to use a
dynamically enabled feature. Userspace must know that prctl is
required and allocate >4K xstate buffer before setting any dynamic
bit.
Suggested-by: Paolo Bonzini <[email protected]>
Signed-off-by: Jing Liu <[email protected]>
Signed-off-by: Yang Zhong <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions