On 11/05/16 15:18, Andre Przywara wrote: > Would: > > #define VGIC_ADDR_IRQ_MASK(bits) GENMASK_ULL((bits) + 10 - 1 - 1, 0) Nonsense. Must be ... ilog2(bits) ..., of course. Andre. > #define VGIC_ADDR_TO_INTID(addr, bits) (((addr) & \ > VGIC_ADDR_IRQ_MASK(bits)) * 64 / (bits) / 8) > > work for all bitnesses? -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html