From: Eduardo Habkost Subject: Re: [Qemu-devel] [for-2.6 PATCH 1/3] target-i386: Define structs for layout of xsave area Date: Tue, 1 Dec 2015 15:15:50 -0200 Message-ID: <20151201171550.GN23717@thinpad.lan.raisama.net> References: <1448740611-3096-1-git-send-email-ehabkost@redhat.com> <1448740611-3096-2-git-send-email-ehabkost@redhat.com> <565C3089.4070101@redhat.com> <565DD45B.3070505@twiddle.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paolo Bonzini , qemu-devel@nongnu.org, Huaitong Han , kvm@vger.kernel.org To: Richard Henderson Return-path: Received: from mx1.redhat.com ([209.132.183.28]:59583 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755287AbbLARPw (ORCPT ); Tue, 1 Dec 2015 12:15:52 -0500 Content-Disposition: inline In-Reply-To: <565DD45B.3070505@twiddle.net> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Dec 01, 2015 at 09:09:47AM -0800, Richard Henderson wrote: > On 11/30/2015 03:18 AM, Paolo Bonzini wrote: > >Because this is always little endian, I would write it as uint8_t[16][16]. > > Maybe. That isn't altogether handy for TCG, since we'll be wanting to bswap > these buffers (probably in uint64_t chunks). X86XSaveArea will be used only when loading/saving state using xsave, not for executing regular instructions. In X86CPU, the data is already stored as XMMReg unions (the one with the XMM_[BWDQ] helpers). -- Eduardo