Commit cb5281a5 authored by Paolo Bonzini's avatar Paolo Bonzini

KVM: move APIC types to arch/x86/

They are not used anymore by IA64, move them away.
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 333bce5a
...@@ -664,6 +664,16 @@ struct msr_data { ...@@ -664,6 +664,16 @@ struct msr_data {
u64 data; u64 data;
}; };
struct kvm_lapic_irq {
u32 vector;
u32 delivery_mode;
u32 dest_mode;
u32 level;
u32 trig_mode;
u32 shorthand;
u32 dest_id;
};
struct kvm_x86_ops { struct kvm_x86_ops {
int (*cpu_has_kvm_support)(void); /* __init */ int (*cpu_has_kvm_support)(void); /* __init */
int (*disabled_by_bios)(void); /* __init */ int (*disabled_by_bios)(void); /* __init */
......
...@@ -44,6 +44,23 @@ struct rtc_status { ...@@ -44,6 +44,23 @@ struct rtc_status {
DECLARE_BITMAP(dest_map, KVM_MAX_VCPUS); DECLARE_BITMAP(dest_map, KVM_MAX_VCPUS);
}; };
union kvm_ioapic_redirect_entry {
u64 bits;
struct {
u8 vector;
u8 delivery_mode:3;
u8 dest_mode:1;
u8 delivery_status:1;
u8 polarity:1;
u8 remote_irr:1;
u8 trig_mode:1;
u8 mask:1;
u8 reserve:7;
u8 reserved[4];
u8 dest_id;
} fields;
};
struct kvm_ioapic { struct kvm_ioapic {
u64 base_address; u64 base_address;
u32 ioregsel; u32 ioregsel;
......
...@@ -54,33 +54,6 @@ typedef u64 hfn_t; ...@@ -54,33 +54,6 @@ typedef u64 hfn_t;
typedef hfn_t pfn_t; typedef hfn_t pfn_t;
union kvm_ioapic_redirect_entry {
u64 bits;
struct {
u8 vector;
u8 delivery_mode:3;
u8 dest_mode:1;
u8 delivery_status:1;
u8 polarity:1;
u8 remote_irr:1;
u8 trig_mode:1;
u8 mask:1;
u8 reserve:7;
u8 reserved[4];
u8 dest_id;
} fields;
};
struct kvm_lapic_irq {
u32 vector;
u32 delivery_mode;
u32 dest_mode;
u32 level;
u32 trig_mode;
u32 shorthand;
u32 dest_id;
};
struct gfn_to_hva_cache { struct gfn_to_hva_cache {
u64 generation; u64 generation;
gpa_t gpa; gpa_t gpa;
......
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