KVM: arm64: Handle KVM_REQ_VM_DEAD in vgic_init test
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | KVM: selftests: Introduce vm_dead()tools/ | +19 | 0 replies | |
| 2/3 | KVM: selftests: Introduce kvm_vm_dead_freetools/ tools/ | +20 | 10 replies | |
| 3/3 | KVM: selftests: Handle dead VM in vgic_init testtools/ | +23 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Oliver Upton | Eric Auger |
|---|---|---|
| 1/3 | ||
| 2/3 | R-b | R-b T-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] KVM: arm64: Handle KVM_REQ_VM_DEAD in vgic_init test
Mark reported that df5fd75ee305 ("KVM: arm64: Don't eagerly teardown the vgic on init error") causes vgic_init test assertion failure. This is due to the fact that now an incomplete vgic setup causes a KVM_REQ_VM_DEAD request to be sent. vgic_init test checks such kind of incomplete setups. As a consequence some KVM IOCTL's fail on the clean up path (kvm_vm_free) and cause assertion failures in the test.
This series fixes that by checking the VM state and avoid to call KVM IOCTL's after the occcurence of such failure.
Best regards
Eric
This series can be found at:
https://github.com/eauger/linux/tree/vgic_init_dead_v1
Eric Auger (3):
KVM: selftests: Introduce vm_dead()
KVM: selftests: Introduce kvm_vm_dead_free
KVM: selftests: Handle dead VM in vgic_init test
.../testing/selftests/kvm/aarch64/vgic_init.c | 41 +++++++++++-------- .../testing/selftests/kvm/include/kvm_util.h | 28 +++++++++---- tools/testing/selftests/kvm/lib/kvm_util.c | 25 ++++++++--- 3 files changed, 62 insertions(+), 32 deletions(-)
Signature · 1 line
2.41.0