From: Zachary Amsden <zamsden@redhat.com>
To: Jan Kiszka <jan.kiszka@web.de>, kvm <kvm@vger.kernel.org>
Subject: [PATCH] fix kvm-kmod FPU save API
Date: Fri, 11 Jun 2010 14:46:25 -1000 [thread overview]
Message-ID: <4C12D8E1.2020101@redhat.com> (raw)
[-- 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
next reply other threads:[~2010-06-12 0:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-12 0:46 Zachary Amsden [this message]
2010-06-12 8:56 ` [PATCH] fix kvm-kmod FPU save API Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C12D8E1.2020101@redhat.com \
--to=zamsden@redhat.com \
--cc=jan.kiszka@web.de \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.