Skip to content

Commit b302ca5

Browse files
author
Marc Zyngier
committed
Merge branch kvm-arm64/misc-6.1 into kvmarm-master/next
* kvm-arm64/misc-6.1: : . : Misc KVM/arm64 fixes and improvement for v6.1 : : - Simplify the affinity check when moving a GICv3 collection : : - Tone down the shouting when kvm-arm.mode=protected is passed : to a guest : : - Fix various comments : : - Advertise the new [email protected] and deprecate the : old Columbia list : . KVM: arm64: Advertise new kvmarm mailing list KVM: arm64: Fix comment typo in nvhe/switch.c KVM: selftests: Update top-of-file comment in psci_test KVM: arm64: Ignore kvm-arm.mode if !is_hyp_mode_available() KVM: arm64: vgic: Remove duplicate check in update_affinity_collection() Signed-off-by: Marc Zyngier <[email protected]>
2 parents 250012d + ac107ab commit b302ca5

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed

MAINTAINERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11124,7 +11124,8 @@ R: Alexandru Elisei <[email protected]>
1112411124
R: Suzuki K Poulose <[email protected]>
1112511125
R: Oliver Upton <[email protected]>
1112611126
L: [email protected] (moderated for non-subscribers)
11127-
L: [email protected] (moderated for non-subscribers)
11127+
11128+
L: [email protected] (deprecated, moderated for non-subscribers)
1112811129
S: Maintained
1112911130
T: git git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git
1113011131
F: arch/arm64/include/asm/kvm*

arch/arm64/kvm/arm.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,6 +2270,16 @@ static int __init early_kvm_mode_cfg(char *arg)
22702270
if (!arg)
22712271
return -EINVAL;
22722272

2273+
if (strcmp(arg, "none") == 0) {
2274+
kvm_mode = KVM_MODE_NONE;
2275+
return 0;
2276+
}
2277+
2278+
if (!is_hyp_mode_available()) {
2279+
pr_warn_once("KVM is not available. Ignoring kvm-arm.mode\n");
2280+
return 0;
2281+
}
2282+
22732283
if (strcmp(arg, "protected") == 0) {
22742284
if (!is_kernel_in_hyp_mode())
22752285
kvm_mode = KVM_MODE_PROTECTED;
@@ -2284,11 +2294,6 @@ static int __init early_kvm_mode_cfg(char *arg)
22842294
return 0;
22852295
}
22862296

2287-
if (strcmp(arg, "none") == 0) {
2288-
kvm_mode = KVM_MODE_NONE;
2289-
return 0;
2290-
}
2291-
22922297
return -EINVAL;
22932298
}
22942299
early_param("kvm-arm.mode", early_kvm_mode_cfg);

arch/arm64/kvm/hyp/nvhe/switch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static void __hyp_vgic_save_state(struct kvm_vcpu *vcpu)
143143
}
144144
}
145145

146-
/* Restore VGICv3 state on non_VEH systems */
146+
/* Restore VGICv3 state on non-VHE systems */
147147
static void __hyp_vgic_restore_state(struct kvm_vcpu *vcpu)
148148
{
149149
if (static_branch_unlikely(&kvm_vgic_global_state.gicv3_cpuif)) {

arch/arm64/kvm/vgic/vgic-its.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ static void update_affinity_collection(struct kvm *kvm, struct vgic_its *its,
406406
struct its_ite *ite;
407407

408408
for_each_lpi_its(device, ite, its) {
409-
if (!ite->collection || coll != ite->collection)
409+
if (ite->collection != coll)
410410
continue;
411411

412412
update_affinity_ite(kvm, ite);

tools/testing/selftests/kvm/aarch64/psci_test.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
3-
* psci_cpu_on_test - Test that the observable state of a vCPU targeted by the
4-
* CPU_ON PSCI call matches what the caller requested.
3+
* psci_test - Tests relating to KVM's PSCI implementation.
54
*
65
* Copyright (c) 2021 Google LLC.
76
*
8-
* This is a regression test for a race between KVM servicing the PSCI call and
9-
* userspace reading the vCPUs registers.
7+
* This test includes:
8+
* - A regression test for a race between KVM servicing the PSCI CPU_ON call
9+
* and userspace reading the targeted vCPU's registers.
10+
* - A test for KVM's handling of PSCI SYSTEM_SUSPEND and the associated
11+
* KVM_SYSTEM_EVENT_SUSPEND UAPI.
1012
*/
1113

1214
#define _GNU_SOURCE

0 commit comments

Comments
 (0)