| Date | Tue, 5 Apr 2022 15:04:10 +0200 | Subject | Re: [RFC PATCH v5 029/104] KVM: TDX: allocate/free TDX vcpu structure | From | Paolo Bonzini <> |
| |
On 3/4/22 20:48, isaku.yamahata@intel.com wrote: > + /* > + * In TDX case, tsc frequency is per-VM and determined by the parameter > + * tdh_mng_init(). Forcibly set it instead of max_tsc_khz set by > + * kvm_arch_vcpu_create(). > + * > + * This function is called after kvm_arch_vcpu_create() calling > + * kvm_set_tsc_khz(). > + */ > + kvm_set_tsc_khz(vcpu, kvm_tdx->tsc_khz); > +
I think this is not needed anymore, now that there is kvm->arch.default_tsc_khz. If so, exporting the function is not needed either.
Paolo
|