mbox series

[0/2] KVM: arm/arm64: Revamp sysreg reset checks

Message ID 20190805121555.130897-1-maz@kernel.org (mailing list archive)
Headers show
Series KVM: arm/arm64: Revamp sysreg reset checks | expand

Message

Marc Zyngier Aug. 5, 2019, 12:15 p.m. UTC
The way we deal with sysreg reset is terrible, as we write junk to
them while other parts of the system may be evaluating these. That's
obviously wrong. Instead, let's switch to a mode where we track which
sysregs have had a reset function applied to them.

The result is less bad, but my gut feeling is that we'd be better of
without any of this. Comments welcome.

Marc Zyngier (2):
  KVM: arm64: Don't write junk to sysregs on reset
  KVM: arm: Don't write junk to CP15 registers on reset

 arch/arm/kvm/coproc.c     | 23 +++++++++++++++--------
 arch/arm64/kvm/sys_regs.c | 32 ++++++++++++++++++--------------
 2 files changed, 33 insertions(+), 22 deletions(-)