Skip to content

Commit

Permalink
KVM: ia64: Define new kvm_fpreg struture to replace ia64_fpreg
Browse files Browse the repository at this point in the history
The kernel's ia64_fpreg structure conflicts with userspace headers, so
define a new structure to replace it.

Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
Xiantao Zhang authored and Avi Kivity committed May 18, 2008
1 parent eedaa4e commit 021f4b6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions include/asm-ia64/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
*/

#include <asm/types.h>
#include <asm/fpu.h>

#include <linux/ioctl.h>

Expand Down Expand Up @@ -61,6 +60,13 @@ struct kvm_ioapic_state {

#define KVM_CONTEXT_SIZE 8*1024

struct kvm_fpreg {
union {
unsigned long bits[2];
long double __dummy; /* force 16-byte alignment */
} u;
};

union context {
/* 8K size */
char dummy[KVM_CONTEXT_SIZE];
Expand All @@ -77,7 +83,7 @@ union context {
unsigned long ibr[8];
unsigned long dbr[8];
unsigned long pkr[8];
struct ia64_fpreg fr[128];
struct kvm_fpreg fr[128];
};
};

Expand Down

0 comments on commit 021f4b6

Please sign in to comment.