Re: [CFT PATCH v2 2/2] KVM: x86: support XSAVES usage in the host

From: Paolo Bonzini
Date: Wed Dec 03 2014 - 09:56:30 EST




On 03/12/2014 15:23, Nadav Amit wrote:
> I think it is better just to replace the last line with:
>
> *(u64 *)(dest + XSAVE_HDR_OFFSET) = xsave->xsave_hdr.xstate_bv

Right, this matches

u64 xstate_bv = *(u64 *)(src + XSAVE_HDR_OFFSET);
...
xsave->xsave_hdr.xstate_bv = xstate_bv;

in load_xsave.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/