diff options
author | Sean Christopherson <seanjc@google.com> | 2023-04-05 03:45:18 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-04-11 20:19:03 +0300 |
commit | 7040e54fddf681758800d7375e728557213366f9 (patch) | |
tree | 4e9b739e71468c3733ce9300c08089b5de006ec6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b213812d3f4c29502d46f82e40a82cf959670e58 (diff) | |
download | linux-7040e54fddf681758800d7375e728557213366f9.tar.xz |
KVM: selftests: Rework dynamic XFeature helper to take mask, not bit
Take the XFeature mask in __vm_xsave_require_permission() instead of the
bit so that there's no need to define macros for both the bit and the
mask. Asserting that only a single bit is set and retrieving said bit
is easy enough via log2 helpers.
Opportunistically clean up the error message for the
ARCH_REQ_XCOMP_GUEST_PERM sanity check.
Reviewed-by: Aaron Lewis <aaronlewis@google.com>
Tested-by: Aaron Lewis <aaronlewis@google.com>
Link: https://lore.kernel.org/r/20230405004520.421768-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions