* [PATCH] fix kvm-kmod FPU save API
@ 2010-06-12 0:46 Zachary Amsden
2010-06-12 8:56 ` Jan Kiszka
0 siblings, 1 reply; 2+ messages in thread
From: Zachary Amsden @ 2010-06-12 0:46 UTC (permalink / raw)
To: Jan Kiszka, kvm
[-- Attachment #1: Type: text/plain, Size: 47 bytes --]
Ensure the save struct gets 16-byte alignment.
[-- Attachment #2: 0001-Align-FPU-save-struct-to-16-bytes.patch --]
[-- Type: text/plain, Size: 786 bytes --]
>From e08c7f6ec354b9605f6dba9771eb76aadd5a71f8 Mon Sep 17 00:00:00 2001
From: Zachary Amsden <zamsden@redhat.com>
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@redhat.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fix kvm-kmod FPU save API
2010-06-12 0:46 [PATCH] fix kvm-kmod FPU save API Zachary Amsden
@ 2010-06-12 8:56 ` Jan Kiszka
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2010-06-12 8:56 UTC (permalink / raw)
To: Zachary Amsden; +Cc: kvm
[-- Attachment #1: Type: text/plain, Size: 106 bytes --]
Zachary Amsden wrote:
> Ensure the save struct gets 16-byte alignment.
>
Thanks, applied.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-12 8:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-12 0:46 [PATCH] fix kvm-kmod FPU save API Zachary Amsden
2010-06-12 8:56 ` Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox