Commit 021f4b6c authored by Xiantao Zhang's avatar Xiantao Zhang Committed by Avi Kivity

KVM: ia64: Define new kvm_fpreg struture to replace ia64_fpreg

The kernel's ia64_fpreg structure conflicts with userspace headers, so
define a new structure to replace it.
Signed-off-by: default avatarXiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent eedaa4e2
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
*/ */
#include <asm/types.h> #include <asm/types.h>
#include <asm/fpu.h>
#include <linux/ioctl.h> #include <linux/ioctl.h>
...@@ -61,6 +60,13 @@ struct kvm_ioapic_state { ...@@ -61,6 +60,13 @@ struct kvm_ioapic_state {
#define KVM_CONTEXT_SIZE 8*1024 #define KVM_CONTEXT_SIZE 8*1024
struct kvm_fpreg {
union {
unsigned long bits[2];
long double __dummy; /* force 16-byte alignment */
} u;
};
union context { union context {
/* 8K size */ /* 8K size */
char dummy[KVM_CONTEXT_SIZE]; char dummy[KVM_CONTEXT_SIZE];
...@@ -77,7 +83,7 @@ union context { ...@@ -77,7 +83,7 @@ union context {
unsigned long ibr[8]; unsigned long ibr[8];
unsigned long dbr[8]; unsigned long dbr[8];
unsigned long pkr[8]; unsigned long pkr[8];
struct ia64_fpreg fr[128]; struct kvm_fpreg fr[128];
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment