[PATCH v2 4/4] KVM: arm64: Remove unused parameter in synchronize_vcpu_pstate()
Fuad Tabba
tabba at google.com
Mon Dec 15 05:42:44 PST 2025
On Mon, 15 Dec 2025 at 11:44, Alexandru Elisei <alexandru.elisei at arm.com> wrote:
>
> synchronize_vcpu_pstate() doesn't make use of the reference to exit_code,
> remove the parameter.
>
> Signed-off-by: Alexandru Elisei <alexandru.elisei at arm.com>
> ---
Reviewed-by: Fuad Tabba <tabba at google.com>
Cheers,
/fuad
> arch/arm64/kvm/hyp/include/hyp/switch.h | 2 +-
> arch/arm64/kvm/hyp/nvhe/switch.c | 2 +-
> arch/arm64/kvm/hyp/vhe/switch.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/kvm/hyp/include/hyp/switch.h b/arch/arm64/kvm/hyp/include/hyp/switch.h
> index c5d5e5b86eaf..afecbdd3c1e9 100644
> --- a/arch/arm64/kvm/hyp/include/hyp/switch.h
> +++ b/arch/arm64/kvm/hyp/include/hyp/switch.h
> @@ -854,7 +854,7 @@ static inline bool kvm_hyp_handle_exit(struct kvm_vcpu *vcpu, u64 *exit_code,
> return false;
> }
>
> -static inline void synchronize_vcpu_pstate(struct kvm_vcpu *vcpu, u64 *exit_code)
> +static inline void synchronize_vcpu_pstate(struct kvm_vcpu *vcpu)
> {
> /*
> * Check for the conditions of Cortex-A510's #2077057. When these occur
> diff --git a/arch/arm64/kvm/hyp/nvhe/switch.c b/arch/arm64/kvm/hyp/nvhe/switch.c
> index d3b9ec8a7c28..779089e42681 100644
> --- a/arch/arm64/kvm/hyp/nvhe/switch.c
> +++ b/arch/arm64/kvm/hyp/nvhe/switch.c
> @@ -211,7 +211,7 @@ static inline bool fixup_guest_exit(struct kvm_vcpu *vcpu, u64 *exit_code)
> {
> const exit_handler_fn *handlers = kvm_get_exit_handler_array(vcpu);
>
> - synchronize_vcpu_pstate(vcpu, exit_code);
> + synchronize_vcpu_pstate(vcpu);
>
> /*
> * Some guests (e.g., protected VMs) are not be allowed to run in
> diff --git a/arch/arm64/kvm/hyp/vhe/switch.c b/arch/arm64/kvm/hyp/vhe/switch.c
> index 9984c492305a..9db3f11a4754 100644
> --- a/arch/arm64/kvm/hyp/vhe/switch.c
> +++ b/arch/arm64/kvm/hyp/vhe/switch.c
> @@ -536,7 +536,7 @@ static const exit_handler_fn hyp_exit_handlers[] = {
>
> static inline bool fixup_guest_exit(struct kvm_vcpu *vcpu, u64 *exit_code)
> {
> - synchronize_vcpu_pstate(vcpu, exit_code);
> + synchronize_vcpu_pstate(vcpu);
>
> /*
> * If we were in HYP context on entry, adjust the PSTATE view
> --
> 2.52.0
>
More information about the linux-arm-kernel
mailing list