Merge tag 'kvmarm-5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
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
This commit is contained in:
@@ -663,7 +663,7 @@ int test_kvm_device(uint32_t gic_dev_type)
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
@@ -691,6 +691,7 @@ int main(int ac, char **av)
|
||||
{
|
||||
int ret;
|
||||
int pa_bits;
|
||||
int cnt_impl = 0;
|
||||
|
||||
pa_bits = vm_guest_mode_params[VM_MODE_DEFAULT].pa_bits;
|
||||
max_phys_size = 1ULL << pa_bits;
|
||||
@@ -699,13 +700,19 @@ int main(int ac, char **av)
|
||||
if (!ret) {
|
||||
pr_info("Running GIC_v3 tests.\n");
|
||||
run_tests(KVM_DEV_TYPE_ARM_VGIC_V3);
|
||||
return 0;
|
||||
cnt_impl++;
|
||||
}
|
||||
|
||||
ret = test_kvm_device(KVM_DEV_TYPE_ARM_VGIC_V2);
|
||||
__TEST_REQUIRE(!ret, "No GICv2 nor GICv3 support");
|
||||
if (!ret) {
|
||||
pr_info("Running GIC_v2 tests.\n");
|
||||
run_tests(KVM_DEV_TYPE_ARM_VGIC_V2);
|
||||
cnt_impl++;
|
||||
}
|
||||
|
||||
pr_info("Running GIC_v2 tests.\n");
|
||||
run_tests(KVM_DEV_TYPE_ARM_VGIC_V2);
|
||||
if (!cnt_impl) {
|
||||
print_skip("No GICv2 nor GICv3 support");
|
||||
exit(KSFT_SKIP);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user