Ensure the save struct gets 16-byte alignment.
>From e08c7f6ec354b9605f6dba9771eb76aadd5a71f8 Mon Sep 17 00:00:00 2001 From: Zachary Amsden <zamsden@xxxxxxxxxx> 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 <zamsden@xxxxxxxxxx> --- 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