Re: [PATCH v2 04/23] kvm: x86: Exclude unpermitted xfeatures at KVM_GET_SUPPORTED_CPUID

From: Paolo Bonzini
Date: Mon Dec 20 2021 - 08:20:14 EST


On 12/17/21 16:29, Jing Liu wrote:
+Permissions must be set via prctl() for dynamically-enabled XSAVE
+features before calling this ioctl. Otherwise those feature bits are
+excluded.
+

Dynamically-enabled feature bits need to be requested with ``arch_prctl()`` before calling this ioctl. Feature bits that have not been requested are excluded from the result.

Thanks,

Paolo