But the existing @buf is the userspace pointer, which semantically makes sense+int fpu_copy_kvm_uabi_to_vcpu(struct fpu *fpu, const void *buf, u64 xcr0,Right, except that there's no @vcpu in the args of that function. I
+ u32 *vpkru)
guess you could call it
fpu_copy_kvm_uabi_to_buf()
and that @buf can be
vcpu->arch.guest_fpu
because the userspace pointer is the "buffer" and the destination @fpu (and @prku)
is vCPU state, not a buffer.
That said, I also struggled with the lack of @vcpu. What about prepending vcpu_
to fpu and to pkru? E.g.
int fpu_copy_kvm_uabi_to_vcpu(struct fpu *vcpu_fpu, const void *buf, u64 xcr0,
u32 *vcpu_pkru)