fix kvm-kmod FPU save API
PATCH 1/1 fix kvm-kmod FPU save API
Ensure the save struct gets 16-byte alignment.
Quoted 1 line
From
e08c7f6ec354b9605f6dba9771eb76aadd5a71f8Mon Sep 17 00:00:00 2001
From: Zachary Amsden <[email protected]>
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 <[email protected]>
--- x86/external-module-compat.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
x86/external-module-compat.h +1 -1
@@ -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;
Signature · 1 line
1.7.0.1
Jan Kiszka
AppliedQuoted 2 lines · Zachary Amsden
Ensure the save struct gets 16-byte alignment.
Thanks, applied.
Jan