On Tue, Apr 01, 2025 at 09:01:25AM -0400, Xiaoyao Li wrote:
> Date: Tue,  1 Apr 2025 09:01:25 -0400
> From: Xiaoyao Li <xiaoyao...@intel.com>
> Subject: [PATCH v8 15/55] i386/tdx: Implement user specified tsc frequency
> X-Mailer: git-send-email 2.34.1
> 
> Reuse "-cpu,tsc-frequency=" to get user wanted tsc frequency and call VM
> scope VM_SET_TSC_KHZ to set the tsc frequency of TD before KVM_TDX_INIT_VM.
> 
> Besides, sanity check the tsc frequency to be in the legal range and
> legal granularity (required by TDX module).
> 
> Signed-off-by: Xiaoyao Li <xiaoyao...@intel.com>
> Acked-by: Gerd Hoffmann <kra...@redhat.com>
> ---
> Changes in v3:
> - use @errp to report error info; (Daniel)
> 
> Changes in v1:
> - Use VM scope VM_SET_TSC_KHZ to set the TSC frequency of TD since KVM
>   side drop the @tsc_khz field in struct kvm_tdx_init_vm
> ---
>  target/i386/kvm/kvm.c |  9 +++++++++
>  target/i386/kvm/tdx.c | 25 +++++++++++++++++++++++++
>  2 files changed, 34 insertions(+)

Reviewed-by: Zhao Liu <zhao1....@intel.com>


Reply via email to