prepare_switch_to_guest() is used for kvm_x86_ops.prepare_switch_to_guest().+void tdx_prepare_switch_to_guest(struct kvm_vcpu *vcpu)Just like vmx_prepare_switch_to_host(), the input can be "struct vcpu_tdx
*", since vcpu is not used inside the function.
And the callsites just use "to_tdx(vcpu)"
+{Then, this can be dropped.
+ struct vcpu_tdx *tdx = to_tdx(vcpu);
kvm_x86_ops consistently takes struct kvm_vcpu.