BACKPORT: arm/arm64: KVM: add a common vgic_queue_irq_to_lr fn

This helps re-factor away some of the repetitive code and makes the code
flow more nicely.

BUG=chromium:846515
TEST=build/boot on hana with USE=kvm_host

Change-Id: I9617a1e26e894096d32e7dd3acb9ac28a63695c1
Signed-off-by: Alex Benne <alex.bennee@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
(cherry picked from commit 71760950bf3dc796e5e53ea3300dec724a09f593)
Signed-off-by: Sonny Rao <sonnyrao@chromium.org>
[SR: use the same resolution as bf0fb67cf957]
 Conflicts:
	virt/kvm/arm/vgic.c
Reviewed-on: https://chromium-review.googlesource.com/1088069
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
1 file changed