Hi stable maintainers,
This is a backport patch for commit df205b5c6328 ("KVM: arm64: Filter out invalid core register IDs in KVM_GET_REG_LIST") to 4.14 and 4.19. This commit was not applied to the 4.14-stable tree due to merge conflict [1]. To backport this, cherry-picked commit be25bbb392fa ("KVM: arm64: Factor out core register ID enumeration") that has no functional changes but makes it easy to merge, and commit 5d8d4af24460 ("arm64: KVM: Fix system register enumeration") that is a fix patch for the commit.
I'd appreciate it if you could consider backporting this to 4.14 and 4.19.
Best regards, Takahiro
[1] https://lore.kernel.org/all/1560343489-22906-1-git-send-email-Dave.Martin@ar...
Dave Martin (2): KVM: arm64: Factor out core register ID enumeration KVM: arm64: Filter out invalid core register IDs in KVM_GET_REG_LIST
arch/arm64/kvm/guest.c | 79 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 65 insertions(+), 14 deletions(-)