Skip to content

KVM: arm64: Handle KVM_REQ_VM_DEAD in vgic_init test

Eric Auger kvm kvmarm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: selftests: Introduce vm_dead()tools/testing/selftests/kvm/include/kvm_util.h+19 -80 replies
2/3KVM: selftests: Introduce kvm_vm_dead_freetools/testing/selftests/kvm/include/kvm_util.h tools/testing/selftests/kvm/lib/kvm_util.c+20 -610 replies
3/3KVM: selftests: Handle dead VM in vgic_init testtools/testing/selftests/kvm/aarch64/vgic_init.c+23 -180 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchOliver UptonEric Auger
1/3
2/3R-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.

Read the v1 thread

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