aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/lapic.c
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2015-01-29 16:48:48 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2015-01-30 06:26:45 -0500
commit52c233a4405eef4f4dbbe2984e308871866db007 (patch)
tree04d84c396d0d3e0dcf914b4a2f7905bdd2cac85b /arch/x86/kvm/lapic.c
parent843e4330573cc5261ae260ce0b83dc570d8cdc05 (diff)
KVM: x86: return bool from kvm_apic_match*()
And don't export the internal ones while at it. Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/lapic.c')
-rw-r--r--arch/x86/kvm/lapic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
index a688fbffb34e..62f624656549 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -578,18 +578,18 @@ static void apic_set_tpr(struct kvm_lapic *apic, u32 tpr)
578 apic_update_ppr(apic); 578 apic_update_ppr(apic);
579} 579}
580 580
581static int kvm_apic_broadcast(struct kvm_lapic *apic, u32 dest) 581static bool kvm_apic_broadcast(struct kvm_lapic *apic, u32 dest)
582{ 582{
583 return dest == (apic_x2apic_mode(apic) ? 583 return dest == (apic_x2apic_mode(apic) ?
584 X2APIC_BROADCAST : APIC_BROADCAST); 584 X2APIC_BROADCAST : APIC_BROADCAST);
585} 585}
586 586
587int kvm_apic_match_physical_addr(struct kvm_lapic *apic, u32 dest) 587static bool kvm_apic_match_physical_addr(struct kvm_lapic *apic, u32 dest)
588{ 588{
589 return kvm_apic_id(apic) == dest || kvm_apic_broadcast(apic, dest); 589 return kvm_apic_id(apic) == dest || kvm_apic_broadcast(apic, dest);
590} 590}
591 591
592int kvm_apic_match_logical_addr(struct kvm_lapic *apic, u32 mda) 592static bool kvm_apic_match_logical_addr(struct kvm_lapic *apic, u32 mda)
593{ 593{
594 int result = 0; 594 int result = 0;
595 u32 logical_id; 595 u32 logical_id;
@@ -623,7 +623,7 @@ int kvm_apic_match_logical_addr(struct kvm_lapic *apic, u32 mda)
623 return result; 623 return result;
624} 624}
625 625
626int kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source, 626bool kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source,
627 int short_hand, unsigned int dest, int dest_mode) 627 int short_hand, unsigned int dest, int dest_mode)
628{ 628{
629 int result = 0; 629 int result = 0;