Re: [PATCH] target/i386: kvm: do not access uninitialized variable on older kernels

2022-03-18 Thread Volker RĂ¼melin
Am 18.03.22 um 16:26 schrieb Paolo Bonzini: KVM support for AMX includes a new system attribute, KVM_X86_XCOMP_GUEST_SUPP. Commit 19db68ca68 ("x86: Grant AMX permission for guest", 2022-03-15) however did not fully consider the behavior on older kernels. First, it warns too aggressively.

[PATCH] target/i386: kvm: do not access uninitialized variable on older kernels

2022-03-18 Thread Paolo Bonzini
KVM support for AMX includes a new system attribute, KVM_X86_XCOMP_GUEST_SUPP. Commit 19db68ca68 ("x86: Grant AMX permission for guest", 2022-03-15) however did not fully consider the behavior on older kernels. First, it warns too aggressively. Second, it invokes the KVM_GET_DEVICE_ATTR ioctl