refactor(interrupts): make bitmap and count functions private
Move the functions to modify the interrupt bitmap or count into
vcpu.c and make them static so only the getter functions can be
accessed externally. This helps ensure consistency between the
bitmap, queue and count.
Also rename the count_get functions to match the
vcpu_virt_interrupt_ naming used for other public functions
for virtual interrupts within the vcpu.c file.
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Change-Id: Id4eaa76f448ddddfd9ca99e2e12789b0c57c20f3
diff --git a/src/arch/aarch64/hypervisor/handler.c b/src/arch/aarch64/hypervisor/handler.c
index 56f0d98..85bd6a0 100644
--- a/src/arch/aarch64/hypervisor/handler.c
+++ b/src/arch/aarch64/hypervisor/handler.c
@@ -759,9 +759,9 @@
vcpu_locked = vcpu_lock(vcpu);
set_virtual_irq(&vcpu->regs,
- vcpu_interrupt_irq_count_get(vcpu_locked) > 0);
+ vcpu_virt_interrupt_irq_count_get(vcpu_locked) > 0);
set_virtual_fiq(&vcpu->regs,
- vcpu_interrupt_fiq_count_get(vcpu_locked) > 0);
+ vcpu_virt_interrupt_fiq_count_get(vcpu_locked) > 0);
vcpu_unlock(&vcpu_locked);
}