From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6Frl-0002sF-0l for qemu-devel@nongnu.org; Mon, 14 Nov 2016 06:56:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6Frh-0008Ta-Vz for qemu-devel@nongnu.org; Mon, 14 Nov 2016 06:56:01 -0500 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:33863) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c6Frh-0008TJ-Ox for qemu-devel@nongnu.org; Mon, 14 Nov 2016 06:55:57 -0500 Received: by mail-wm0-x241.google.com with SMTP id g23so14675276wme.1 for ; Mon, 14 Nov 2016 03:55:57 -0800 (PST) Sender: Paolo Bonzini References: <08625798334d3ea3ccead1b40d1068982b40f1d1.1478863621.git.vpalatin@chromium.org> From: Paolo Bonzini Message-ID: Date: Mon, 14 Nov 2016 12:55:53 +0100 MIME-Version: 1.0 In-Reply-To: <08625798334d3ea3ccead1b40d1068982b40f1d1.1478863621.git.vpalatin@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v2 2/5] target-i386: Add Intel HAX files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vincent Palatin , qemu-devel On 11/11/2016 12:28, Vincent Palatin wrote: > + > + memcpy(env->xmm_regs, fpu.mmx_1, sizeof(fpu.mmx_1)); > + memcpy((ZMMReg *) (env->xmm_regs) + 8, fpu.mmx_2, sizeof(fpu.mmx_2)); HAX will only support SSE (128-bit) registers, while env->xmm_regs supports AVX512 (512-bit) so you have to copy registers one by one. Is there documentation for HAX? In particular I'm curious as to what the CPUID information looks like in the guest, and whether there are ioctls to change it. In particular I would expect XSAVE to be disabled. Paolo