You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(vmm): Support kernel >= 5.16 and < 5.17 for xfeature enabling
The Linux kernel introduced some arch_prctl() APIs (ARCH_GET_XCOMP_SUPP,
ARCH_GET_XCOMP_PERM and ARCH_REQ_XCOMP_PERM) to support dynamic XSTATE
feature enabling for "userspace applications" in 5.16 [1]. To support
that for "KVM guest", v5.17 introduced additional arch_prctl() APIs
(ARCH_GET_XCOMP_GUEST_PERM and ARCH_REQ_XCOMP_GUEST_PERM) [2]. Note that
ARCH_XCOMP_GUEST_SUPP does not exist, so regardless of userspace
application or KVM guest, ARCH_GET_XCOMP_SUPP is used to retrieve
supported features. As a result, kernel versions >= 5.16 and < 5.17
report supported features via ARCH_GET_XCOMP_SUPP but
ARCH_REQ_XCOMP_GUEST_PERM fail with EINVAL.
[1]: torvalds/linux@db8268d
[2]: torvalds/linux@980fe2f
Signed-off-by: Takahiro Itazuri <[email protected]>
0 commit comments