mbox series

[RFC,0/2] Fix doorbell emulation for nested KVM guests in V1 API

Message ID 20240627180342.110238-1-gautam@linux.ibm.com (mailing list archive)
Headers show
Series Fix doorbell emulation for nested KVM guests in V1 API | expand

Message

Gautam Menghani June 27, 2024, 6:03 p.m. UTC
Doorbell emulation for nested KVM guests in V1 API is broken because of
2 reasons:
1. L0 presenting H_EMUL_ASSIST to L1 instead of H_FAC_UNAVAIL
2. Broken plumbing for passing around doorbell state.

Fix the trap passed to L1 and the plumbing for maintaining doorbell
state.

Gautam Menghani (2):
  Revert "KVM: PPC: Book3S HV Nested: Stop forwarding all HFUs to L1"
  arch/powerpc/kvm: Fix doorbells for nested KVM guests on PowerNV

 arch/powerpc/kvm/book3s_hv.c        | 40 ++++++++---------------------
 arch/powerpc/kvm/book3s_hv_nested.c | 20 ++++++++++++---
 2 files changed, 26 insertions(+), 34 deletions(-)