[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141204175602.GA18653@potion.brq.redhat.com>
Date: Thu, 4 Dec 2014 18:56:02 +0100
From: Radim Krčmář <rkrcmar@...hat.com>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
Wanpeng Li <wanpeng.li@...ux.intel.com>,
Fenghua Yu <fenghua.yu@...el.com>, stable@...r.kernel.org,
"H. Peter Anvin" <hpa@...ux.intel.com>
Subject: Re: [PATCH 2/9] KVM: x86: support XSAVES usage in the host
2014-12-04 16:57+0100, Paolo Bonzini:
> Userspace is expecting non-compacted format for KVM_GET_XSAVE, but
> struct xsave_struct might be using the compacted format. Convert
> in order to preserve userspace ABI.
>
> Likewise, userspace is passing non-compacted format for KVM_SET_XSAVE
> but the kernel will pass it to XRSTORS, and we need to convert back.
>
> Fixes: f31a9f7c71691569359fa7fb8b0acaa44bce0324
> Cc: Fenghua Yu <fenghua.yu@...el.com>
> Cc: stable@...r.kernel.org
> Cc: H. Peter Anvin <hpa@...ux.intel.com>
> Reported-by: Nadav Amit <namit@...technion.ac.il>
> Tested-by: Nadav Amit <namit@...technion.ac.il>
> Signed-off-by: Paolo Bonzini <pbonzini@...hat.com>
> ---
Reviewed-by: Radim Krčmář <rkrcmar@...hat.com>
> +++ b/arch/x86/kvm/x86.c
> @@ -3132,15 +3132,89 @@ static int kvm_vcpu_ioctl_x86_set_debugregs(struct kvm_vcpu *vcpu,
> + u64 xstate_bv = xsave->xsave_hdr.xstate_bv;
(This looks like the only change since last review.)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists