Merge tag 'kvmarm-5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmar...
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Jul 2022 14:07:59 +0000 (10:07 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Aug 2022 07:24:12 +0000 (03:24 -0400)
KVM/arm64 updates for 5.20:

- Unwinder implementations for both nVHE modes (classic and
  protected), complete with an overflow stack

- Rework of the sysreg access from userspace, with a complete
  rewrite of the vgic-v3 view to allign with the rest of the
  infrastructure

- Disagregation of the vcpu flags in separate sets to better track
  their use model.

- A fix for the GICv2-on-v3 selftest

- A small set of cosmetic fixes

1  2 
arch/arm64/kvm/arm.c
tools/testing/selftests/kvm/aarch64/vgic_init.c

Simple merge
@@@ -661,9 -668,9 +661,9 @@@ int test_kvm_device(uint32_t gic_dev_ty
        other = VGIC_DEV_IS_V2(gic_dev_type) ? KVM_DEV_TYPE_ARM_VGIC_V3
                                             : KVM_DEV_TYPE_ARM_VGIC_V2;
  
 -      if (!_kvm_create_device(v.vm, other, true, &fd)) {
 -              ret = _kvm_create_device(v.vm, other, false, &fd);
 +      if (!__kvm_test_create_device(v.vm, other)) {
 +              ret = __kvm_test_create_device(v.vm, other);
-               TEST_ASSERT(ret && errno == EINVAL,
+               TEST_ASSERT(ret && (errno == EINVAL || errno == EEXIST),
                                "create GIC device while other version exists");
        }