From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [CFT PATCH 0/2] KVM: support XSAVES usage in the host Date: Mon, 24 Nov 2014 18:53:40 +0100 Message-ID: <547370A4.3070707@redhat.com> References: <1416594678-13011-1-git-send-email-pbonzini@redhat.com> <547318E5.8070408@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Linux Kernel Mailing List , kvm list , Nadav Amit , Wanpeng Li To: Nadav Amit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 24/11/2014 16:28, Nadav Amit wrote: >=20 > Since kvm_load_guest_fpu is called before the guest_fpu is ever store= d, there are 2 more problems that currently cause #GP: > 1. XCOMP_BV[63] =3D 0 > 2. XSTATE_BV sets a bit (including bit 63) that is not set in XCOMP_B= V (XCOMP_BV is initialised to zero). >=20 > [see SDM 13.11 "OPERATION OF XRSTORS=E2=80=9D] >=20 > Once I initialise XCOMP_BV to (1ull << 63) | XSTATE_BV, the guest run= s successfully. > I have not checked any other qemu functionality that might be affecte= d by the patch. I posted patches that assume that QEMU calls KVM_SET_XSAVE early enough= =2E If this is not the case, can you cook up and post a patch to kvm_arch_vcpu_init that fixes the remaining problem? Paolo