[PATCH v2 0/2] KVM/arm64: sys_reg_table_init() small improvements

Alexandru Elisei alexandru.elisei at arm.com
Thu Apr 28 03:34:03 PDT 2022


These are two small improvements to how KVM handles an out-of-order
sys_reg_desc table. These should only affect KVM developers, as the end
user should never see an error caused by an unsorted sys_reg_desc table.

Changes in v2:

* Tweaked how the error is detected and propagated in kvm_arch_init().
* Use %pS to print the table name and entry offset (Marc).
* Tweaked the error message to spell out that magic number refers to the
  offending entry.

Alexandru Elisei (2):
  KVM/arm64: Don't BUG_ON() if emulated register table is unsorted
  KVM/arm64: Print emulated register table name when it is unsorted

 arch/arm64/include/asm/kvm_host.h |  2 +-
 arch/arm64/kvm/arm.c              |  8 +++++--
 arch/arm64/kvm/sys_regs.c         | 35 ++++++++++++++++++-------------
 3 files changed, 27 insertions(+), 18 deletions(-)

-- 
2.36.0




More information about the linux-arm-kernel mailing list