From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zachary Amsden Subject: [PATCH] fix kvm-kmod FPU save API Date: Fri, 11 Jun 2010 14:46:25 -1000 Message-ID: <4C12D8E1.2020101@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060200090007030802040902" To: Jan Kiszka , kvm Return-path: Received: from mx1.redhat.com ([209.132.183.28]:10125 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752317Ab0FLAq2 (ORCPT ); Fri, 11 Jun 2010 20:46:28 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------060200090007030802040902 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Ensure the save struct gets 16-byte alignment. --------------060200090007030802040902 Content-Type: text/plain; name="0001-Align-FPU-save-struct-to-16-bytes.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Align-FPU-save-struct-to-16-bytes.patch" >>From e08c7f6ec354b9605f6dba9771eb76aadd5a71f8 Mon Sep 17 00:00:00 2001 From: Zachary Amsden Date: Fri, 11 Jun 2010 14:43:21 -1000 Subject: [PATCH] Align FPU save struct to 16-bytes Otherwise, we get a #GP Signed-off-by: Zachary Amsden --- x86/external-module-compat.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/x86/external-module-compat.h b/x86/external-module-compat.h index 708517b..d7b0538 100644 --- a/x86/external-module-compat.h +++ b/x86/external-module-compat.h @@ -835,7 +835,7 @@ struct kvm_i387_fxsave_struct { #else u32 xmm_space[32]; /* 8*16 bytes for each XMM-reg = 128 bytes */ #endif -}; +} __aligned(16); union kvm_thread_xstate { struct kvm_i387_fxsave_struct fxsave; -- 1.7.0.1 --------------060200090007030802040902--