target/arm/kvm: Init cap_has_inject_serror_esr in kvm_arch_init
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 19 Dec 2023 17:57:43 +0000 (17:57 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Dec 2023 17:57:43 +0000 (17:57 +0000)
commit51641de468933f298ed5e4788af90f648c881bef
tree1773571df8c79d715fc7cca65a66608590db76f8
parent09ddc0121648b475fd320734f25823dedc6d4cbe
target/arm/kvm: Init cap_has_inject_serror_esr in kvm_arch_init

There is no need to do this in kvm_arch_init_vcpu per vcpu.
Inline kvm_arm_init_serror_injection rather than keep separate.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/kvm.c
target/arm/kvm_arm.h