Re: [PATCH v8 15/55] i386/tdx: Implement user specified tsc frequency

2025-04-22 Thread Zhao Liu
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 > 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 g

Re: [PATCH v8 15/55] i386/tdx: Implement user specified tsc frequency

2025-04-02 Thread Daniel P . Berrangé
On Tue, Apr 01, 2025 at 09:01:25AM -0400, Xiaoyao Li wrote: > 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 gran

[PATCH v8 15/55] i386/tdx: Implement user specified tsc frequency

2025-04-01 Thread Xiaoyao Li
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 Acked-by