Skip to content

Commit 5df7910

Browse files
philmdMichael Tokarev
authored andcommitted
target/arm: Correct KVM & HVF dtb_compatible value
Linux kernel knows how to parse "arm,armv8", not "arm,arm-v8". See arch/arm64/boot/dts/foundation-v8.dts: torvalds/linux@90556ca1ebdd Cc: [email protected] Fixes: 26861c7 ("target-arm: Add minimal KVM AArch64 support") Fixes: 585df85 ("hvf: arm: Implement -cpu host") Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-id: [email protected] Signed-off-by: Peter Maydell <[email protected]> (cherry picked from commit a412575837b6a46584fba891e3706e87bd09a3e6) (Mjt: context fix in target/arm/kvm.c) Signed-off-by: Michael Tokarev <[email protected]>
1 parent ed4bad2 commit 5df7910

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

target/arm/hvf/hvf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ static bool hvf_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf)
878878
hv_vcpu_exit_t *exit;
879879
int i;
880880

881-
ahcf->dtb_compatible = "arm,arm-v8";
881+
ahcf->dtb_compatible = "arm,armv8";
882882
ahcf->features = (1ULL << ARM_FEATURE_V8) |
883883
(1ULL << ARM_FEATURE_NEON) |
884884
(1ULL << ARM_FEATURE_AARCH64) |

target/arm/kvm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ static bool kvm_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf)
305305
}
306306

307307
ahcf->target = init.target;
308-
ahcf->dtb_compatible = "arm,arm-v8";
308+
ahcf->dtb_compatible = "arm,armv8";
309309

310310
err = read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64pfr0,
311311
ARM64_SYS_REG(3, 0, 0, 4, 0));

0 commit comments

Comments
 (0)