]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: vgic: Convert struct vgic_lr to use bitfields
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 8 Jun 2015 14:21:32 +0000 (15:21 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 12 Aug 2015 10:28:24 +0000 (11:28 +0100)
commit684bd9ba27053806be452be022140ff92a877c9a
tree660faf292f21198a8bde11f78c5f8129bce6436c
parent1eb0ab8a3c844db2dc8231876f6968038fd37fbf
KVM: arm/arm64: vgic: Convert struct vgic_lr to use bitfields

As we're about to cram more information in the vgic_lr structure
(HW interrupt number and additional state information), we switch
to a layout similar to the HW's:

- use bitfields to save space (we don't need more than 10 bits
  to represent the irq numbers)
- source CPU and HW interrupt can share the same field, as
  a SGI doesn't have a physical line.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/kvm/arm_vgic.h