Re: [PATCH v1 14/40] i386/tdx: Initialize TDX before creating TD vcpus

2022-08-25 Thread Gerd Hoffmann
On Tue, Aug 02, 2022 at 03:47:24PM +0800, Xiaoyao Li wrote: > Invoke KVM_TDX_INIT in kvm_arch_pre_create_vcpu() that KVM_TDX_INIT > configures global TD state, e.g. the canonical CPUID config, and must > be executed prior to creating vCPUs. > > Use kvm_x86_arch_cpuid() to setup the CPUID settings

[PATCH v1 14/40] i386/tdx: Initialize TDX before creating TD vcpus

2022-08-02 Thread Xiaoyao Li
Invoke KVM_TDX_INIT in kvm_arch_pre_create_vcpu() that KVM_TDX_INIT configures global TD state, e.g. the canonical CPUID config, and must be executed prior to creating vCPUs. Use kvm_x86_arch_cpuid() to setup the CPUID settings for TDX VM and tie x86cpu->enable_pmu with TD's attributes. Note, thi