FROMGIT: KVM: arm64: Refactor filtering of ID registers
Our current ID register filtering is starting to be a mess of if() statements, and isn't going to get any saner. Let's turn it into a switch(), which has a chance of being more readable, and introduce a FEATURE() macro that allows easy generation of feature masks. No functionnal change intended. Reviewed-by:Eric Auger <eric.auger@redhat.com> Reviewed-by:
Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by:
Marc Zyngier <maz@kernel.org> (cherry picked from commit c8857935 git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git next) Signed-off-by:
Will Deacon <willdeacon@google.com> Change-Id: Idec30e79f2ecf90ab26337c01b7b6239db61a670 Bug: 178098380 Test: atest VirtualizationHostTestCases on an EL2-enabled device
Loading
Please sign in to comment