diff options
author | Zhang Xiantao <xiantao.zhang@intel.com> | 2007-12-02 09:35:57 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:17 -0500 |
commit | 8be5453f95933340a42c6e7fc7b66f3bb786fddd (patch) | |
tree | 7c17e5413f4085d1dd344c72ffad88b728ffadcd /drivers/kvm/irq.h | |
parent | 2b5203ee6828e9cabab1e1fb42e53d72ab9351a6 (diff) |
KVM: Replace kvm_lapic with kvm_vcpu in ioapic/lapic interface
This patch replaces lapic structure with kvm_vcpu in ioapic.c, making ioapic
independent of the local apic, as required by ia64.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/irq.h')
-rw-r--r-- | drivers/kvm/irq.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/kvm/irq.h b/drivers/kvm/irq.h index 5ad3cfd7622d..78a34dde1cb9 100644 --- a/drivers/kvm/irq.h +++ b/drivers/kvm/irq.h | |||
@@ -145,14 +145,15 @@ void kvm_free_lapic(struct kvm_vcpu *vcpu); | |||
145 | u64 kvm_lapic_get_cr8(struct kvm_vcpu *vcpu); | 145 | u64 kvm_lapic_get_cr8(struct kvm_vcpu *vcpu); |
146 | void kvm_lapic_set_tpr(struct kvm_vcpu *vcpu, unsigned long cr8); | 146 | void kvm_lapic_set_tpr(struct kvm_vcpu *vcpu, unsigned long cr8); |
147 | void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value); | 147 | void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value); |
148 | struct kvm_lapic *kvm_apic_round_robin(struct kvm *kvm, u8 vector, | 148 | |
149 | struct kvm_vcpu *kvm_get_lowest_prio_vcpu(struct kvm *kvm, u8 vector, | ||
149 | unsigned long bitmap); | 150 | unsigned long bitmap); |
150 | u64 kvm_get_apic_base(struct kvm_vcpu *vcpu); | 151 | u64 kvm_get_apic_base(struct kvm_vcpu *vcpu); |
151 | void kvm_set_apic_base(struct kvm_vcpu *vcpu, u64 data); | 152 | void kvm_set_apic_base(struct kvm_vcpu *vcpu, u64 data); |
152 | int kvm_apic_match_physical_addr(struct kvm_lapic *apic, u16 dest); | 153 | int kvm_apic_match_physical_addr(struct kvm_lapic *apic, u16 dest); |
153 | void kvm_ioapic_update_eoi(struct kvm *kvm, int vector); | 154 | void kvm_ioapic_update_eoi(struct kvm *kvm, int vector); |
154 | int kvm_apic_match_logical_addr(struct kvm_lapic *apic, u8 mda); | 155 | int kvm_apic_match_logical_addr(struct kvm_lapic *apic, u8 mda); |
155 | int kvm_apic_set_irq(struct kvm_lapic *apic, u8 vec, u8 trig); | 156 | int kvm_apic_set_irq(struct kvm_vcpu *vcpu, u8 vec, u8 trig); |
156 | void kvm_apic_post_state_restore(struct kvm_vcpu *vcpu); | 157 | void kvm_apic_post_state_restore(struct kvm_vcpu *vcpu); |
157 | int kvm_ioapic_init(struct kvm *kvm); | 158 | int kvm_ioapic_init(struct kvm *kvm); |
158 | void kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level); | 159 | void kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level); |