Skip to content

KVM: s390: vsie: simulate VCPU SIE entry/exit

David Hildenbrand linux-s390 lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Changes in v1 from the cover letter

- Move entry/exit simulation right to the sie64 code to minimize latency
- Added R-b's, dropped Tested-by.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: s390: vsie: simulate VCPU SIE entry/exitarch/s390/kvm/kvm-s390.c arch/s390/kvm/kvm-s390.h arch/s390/kvm/vsie.c+26 -50 replies
2/2KVM: s390: introduce and use KVM_REQ_VSIE_RESTARTarch/s390/include/asm/kvm_host.h arch/s390/kvm/kvm-s390.c+7 -10 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPierre MorelCornelia HuckJanosch Frank
1/2R-b R-b R-b
2/2R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH v1 0/2] KVM: s390: vsie: simulate VCPU SIE entry/exit

While discussing AP changes, we discovered that we will have to force a CPU using the vSIE to regenerate/reload shadow data structures. For now, we have no mechanism for that.

E.g. when clearing AP masks later, we could still have a vSIE CPU making use of AP adapters as the masks might not be considered yet in the vSIE data structures. We need a way to block entering the vSIE and regenerate all shadow data structures once done.

Looks like we can achieve that by simply simulating an ordinary SIE entry/exit in the VCPU sie control block (when executing sie64 in context of the vSIE).

This way, we can support blocking and also synchronous CPU requests.

Only compile tested.

RFC -> v1:
- Move entry/exit simulation right to the sie64 code to minimize latency
- Added R-b's, dropped Tested-by.

David Hildenbrand (2):
KVM: s390: vsie: simulate VCPU SIE entry/exit
KVM: s390: introduce and use KVM_REQ_VSIE_RESTART

 arch/s390/include/asm/kvm_host.h |  1 +
 arch/s390/kvm/kvm-s390.c         | 16 ++++++++++++++--
 arch/s390/kvm/kvm-s390.h         |  1 +
 arch/s390/kvm/vsie.c             | 21 +++++++++++++++++----
 4 files changed, 33 insertions(+), 6 deletions(-)
Signature · 1 line
2.17.1