All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] KVM/arm64: sys_reg_table_init() small improvements
@ 2022-04-28 10:34 ` Alexandru Elisei
  0 siblings, 0 replies; 8+ messages in thread
From: Alexandru Elisei @ 2022-04-28 10:34 UTC (permalink / raw)
  To: maz, james.morse, suzuki.poulose, linux-arm-kernel, kvmarm

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

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-05-04 18:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 10:34 [PATCH v2 0/2] KVM/arm64: sys_reg_table_init() small improvements Alexandru Elisei
2022-04-28 10:34 ` Alexandru Elisei
2022-04-28 10:34 ` [PATCH v2 1/2] KVM/arm64: Don't BUG_ON() if emulated register table is unsorted Alexandru Elisei
2022-04-28 10:34   ` Alexandru Elisei
2022-04-28 10:34 ` [PATCH v2 2/2] KVM/arm64: Print emulated register table name when it " Alexandru Elisei
2022-04-28 10:34   ` Alexandru Elisei
2022-05-04 18:55 ` [PATCH v2 0/2] KVM/arm64: sys_reg_table_init() small improvements Marc Zyngier
2022-05-04 18:55   ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.