Commit d252c789 authored by Alexandru Elisei's avatar Alexandru Elisei Committed by Oliver Upton
Browse files

KVM: arm64: Remove unused parameter in synchronize_vcpu_pstate()



synchronize_vcpu_pstate() doesn't make use of the reference to exit_code,
remove the parameter.

Reviewed-by: default avatarFuad Tabba <tabba@google.com>
Signed-off-by: default avatarAlexandru Elisei <alexandru.elisei@arm.com>
Reviewed-by: default avatarMarc Zyngier <maz@kernel.org>
Tested-by: default avatarFuad Tabba <tabba@google.com>
Link: https://msgid.link/20251216103053.47224-5-alexandru.elisei@arm.com


Signed-off-by: default avatarOliver Upton <oupton@kernel.org>
parent 26cdea48
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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