Commit 238adc77 authored by Jan Kiszka's avatar Jan Kiszka Committed by Avi Kivity

KVM: Cleanup LAPIC interface

None of the interface services the LAPIC emulation provides need to be
exported to modules, and kvm_lapic_get_base is even totally unused
today.
Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 06579dd9
...@@ -194,7 +194,6 @@ int kvm_lapic_find_highest_irr(struct kvm_vcpu *vcpu) ...@@ -194,7 +194,6 @@ int kvm_lapic_find_highest_irr(struct kvm_vcpu *vcpu)
return highest_irr; return highest_irr;
} }
EXPORT_SYMBOL_GPL(kvm_lapic_find_highest_irr);
static int __apic_accept_irq(struct kvm_lapic *apic, int delivery_mode, static int __apic_accept_irq(struct kvm_lapic *apic, int delivery_mode,
int vector, int level, int trig_mode); int vector, int level, int trig_mode);
...@@ -768,7 +767,6 @@ void kvm_lapic_set_tpr(struct kvm_vcpu *vcpu, unsigned long cr8) ...@@ -768,7 +767,6 @@ void kvm_lapic_set_tpr(struct kvm_vcpu *vcpu, unsigned long cr8)
apic_set_tpr(apic, ((cr8 & 0x0f) << 4) apic_set_tpr(apic, ((cr8 & 0x0f) << 4)
| (apic_get_reg(apic, APIC_TASKPRI) & 4)); | (apic_get_reg(apic, APIC_TASKPRI) & 4));
} }
EXPORT_SYMBOL_GPL(kvm_lapic_set_tpr);
u64 kvm_lapic_get_cr8(struct kvm_vcpu *vcpu) u64 kvm_lapic_get_cr8(struct kvm_vcpu *vcpu)
{ {
...@@ -781,7 +779,6 @@ u64 kvm_lapic_get_cr8(struct kvm_vcpu *vcpu) ...@@ -781,7 +779,6 @@ u64 kvm_lapic_get_cr8(struct kvm_vcpu *vcpu)
return (tpr & 0xf0) >> 4; return (tpr & 0xf0) >> 4;
} }
EXPORT_SYMBOL_GPL(kvm_lapic_get_cr8);
void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value) void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value)
{ {
...@@ -805,12 +802,6 @@ void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value) ...@@ -805,12 +802,6 @@ void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value)
} }
u64 kvm_lapic_get_base(struct kvm_vcpu *vcpu)
{
return vcpu->arch.apic_base;
}
EXPORT_SYMBOL_GPL(kvm_lapic_get_base);
void kvm_lapic_reset(struct kvm_vcpu *vcpu) void kvm_lapic_reset(struct kvm_vcpu *vcpu)
{ {
struct kvm_lapic *apic; struct kvm_lapic *apic;
...@@ -860,7 +851,6 @@ void kvm_lapic_reset(struct kvm_vcpu *vcpu) ...@@ -860,7 +851,6 @@ void kvm_lapic_reset(struct kvm_vcpu *vcpu)
vcpu, kvm_apic_id(apic), vcpu, kvm_apic_id(apic),
vcpu->arch.apic_base, apic->base_address); vcpu->arch.apic_base, apic->base_address);
} }
EXPORT_SYMBOL_GPL(kvm_lapic_reset);
bool kvm_apic_present(struct kvm_vcpu *vcpu) bool kvm_apic_present(struct kvm_vcpu *vcpu)
{ {
...@@ -871,7 +861,6 @@ int kvm_lapic_enabled(struct kvm_vcpu *vcpu) ...@@ -871,7 +861,6 @@ int kvm_lapic_enabled(struct kvm_vcpu *vcpu)
{ {
return kvm_apic_present(vcpu) && apic_sw_enabled(vcpu->arch.apic); return kvm_apic_present(vcpu) && apic_sw_enabled(vcpu->arch.apic);
} }
EXPORT_SYMBOL_GPL(kvm_lapic_enabled);
/* /*
*---------------------------------------------------------------------- *----------------------------------------------------------------------
...@@ -970,7 +959,6 @@ int kvm_create_lapic(struct kvm_vcpu *vcpu) ...@@ -970,7 +959,6 @@ int kvm_create_lapic(struct kvm_vcpu *vcpu)
nomem: nomem:
return -ENOMEM; return -ENOMEM;
} }
EXPORT_SYMBOL_GPL(kvm_create_lapic);
int kvm_apic_has_interrupt(struct kvm_vcpu *vcpu) int kvm_apic_has_interrupt(struct kvm_vcpu *vcpu)
{ {
......
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