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

From: Radim KrÄmÃÅ
Date: Thu Dec 04 2014 - 08:53:11 EST


2014-12-04 14:43+0100, Paolo Bonzini:
> On 03/12/2014 19:45, Radim KrÄmÃÅ wrote:
> > Btw, we don't care about crashers from userspace?
>
> We do, but they're taken care of by
>
> if (xstate_bv & ~kvm_supported_xcr0())
> return -EINVAL;
>
> in kvm_vcpu_ioctl_x86_set_xsave. kvm_supported_xcr0 is always a subset
> of host_xcr0, hence:

Ah, thanks. (If this trend continues, I won't be able to hold even
bodily fluids after few more reviews ...)
--
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/