Skip to contentSkip to conversation

fix kvm-kmod FPU save API

PATCH Applied Zachary Amsden 2 participants 2 messages Jun 12, 2010 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix kvm-kmod FPU save API

Ensure the save struct gets 16-byte alignment.

Quoted 1 line

From e08c7f6ec354b9605f6dba9771eb76aadd5a71f8 Mon 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

---
 x86/external-module-compat.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
x86/external-module-compat.h +1 -1
index 708517b..d7b0538 100644
@@ -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
Applied
#1 lore raw
Quoted 2 lines · Zachary Amsden

Ensure the save struct gets 16-byte alignment.

Thanks, applied.

Jan