Skip to content

Commit

Permalink
KVM: Portability: Move structure lapic_state to <asm/kvm.h>
Browse files Browse the repository at this point in the history
This patch moves structure lapic_state from include/linux/kvm.h
to include/asm-x86/kvm.h

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
Jerone Young authored and Avi Kivity committed Jan 30, 2008
1 parent 19d30b1 commit d9ecf92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions include/asm-x86/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,10 @@ struct kvm_regs {
__u64 rip, rflags;
};

/* for KVM_GET_LAPIC and KVM_SET_LAPIC */
#define KVM_APIC_REG_SIZE 0x400
struct kvm_lapic_state {
char regs[KVM_APIC_REG_SIZE];
};

#endif
5 changes: 0 additions & 5 deletions include/linux/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ struct kvm_fpu {
__u32 pad2;
};

/* for KVM_GET_LAPIC and KVM_SET_LAPIC */
#define KVM_APIC_REG_SIZE 0x400
struct kvm_lapic_state {
char regs[KVM_APIC_REG_SIZE];
};

struct kvm_segment {
__u64 base;
Expand Down

0 comments on commit d9ecf92

Please sign in to comment.