All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] KVM: arm64: Fixup PC updates on exit to userspace
@ 2021-05-14 10:40 ` Marc Zyngier
  0 siblings, 0 replies; 21+ messages in thread
From: Marc Zyngier @ 2021-05-14 10:40 UTC (permalink / raw)
  To: kvm, kvmarm, linux-arm-kernel; +Cc: kernel-team

We recently moved anything related to PC updates into the guest entry
code to help with the protected KVM effort. However, I missed a
critical point: userspace needs to be able to observe state changes
when the vcpu exits. Otherwise, live migration is a bit broken and
vcpu reset can fail (as reported by Zenghui). Not good.

These two patches aim at fixing the above, and carry a Cc stable.

* From v1:
  - Sanitized flag checking
  - Added comment about relying on __kvm_adjust_pc() being preempt-safe
  - Dropped superfluous includes

Marc Zyngier (2):
  KVM: arm64: Move __adjust_pc out of line
  KVM: arm64: Commit pending PC adjustemnts before returning to
    userspace

 arch/arm64/include/asm/kvm_asm.h           |  3 +++
 arch/arm64/kvm/arm.c                       | 10 ++++++++++
 arch/arm64/kvm/hyp/exception.c             | 18 +++++++++++++++++-
 arch/arm64/kvm/hyp/include/hyp/adjust_pc.h | 18 ------------------
 arch/arm64/kvm/hyp/nvhe/hyp-main.c         |  8 ++++++++
 arch/arm64/kvm/hyp/nvhe/switch.c           |  3 +--
 arch/arm64/kvm/hyp/vhe/switch.c            |  3 +--
 7 files changed, 40 insertions(+), 23 deletions(-)

-- 
2.29.2

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

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

end of thread, other threads:[~2021-05-14 14:23 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-14 10:40 [PATCH v2 0/2] KVM: arm64: Fixup PC updates on exit to userspace Marc Zyngier
2021-05-14 10:40 ` Marc Zyngier
2021-05-14 10:40 ` Marc Zyngier
2021-05-14 10:40 ` [PATCH v2 1/2] KVM: arm64: Move __adjust_pc out of line Marc Zyngier
2021-05-14 10:40   ` Marc Zyngier
2021-05-14 10:40   ` Marc Zyngier
2021-05-14 14:07   ` Alexandru Elisei
2021-05-14 14:07     ` Alexandru Elisei
2021-05-14 14:07     ` Alexandru Elisei
2021-05-14 10:40 ` [PATCH v2 2/2] KVM: arm64: Commit pending PC adjustemnts before returning to userspace Marc Zyngier
2021-05-14 10:40   ` Marc Zyngier
2021-05-14 10:40   ` Marc Zyngier
2021-05-14 14:08   ` Alexandru Elisei
2021-05-14 14:08     ` Alexandru Elisei
2021-05-14 14:08     ` Alexandru Elisei
2021-05-14 14:21     ` Marc Zyngier
2021-05-14 14:21       ` Marc Zyngier
2021-05-14 14:21       ` Marc Zyngier
2021-05-14 12:32 ` [PATCH v2 0/2] KVM: arm64: Fixup PC updates on exit " Zenghui Yu
2021-05-14 12:32   ` Zenghui Yu
2021-05-14 12:32   ` Zenghui Yu

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.