[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v4 10/36] i386/kvm: Move architectural CPUID leaf generat
From: |
Isaku Yamahata |
Subject: |
Re: [RFC PATCH v4 10/36] i386/kvm: Move architectural CPUID leaf generation to separate helper |
Date: |
Thu, 12 May 2022 10:48:14 -0700 |
On Thu, May 12, 2022 at 11:17:37AM +0800,
Xiaoyao Li <xiaoyao.li@intel.com> wrote:
> diff --git a/target/i386/kvm/kvm_i386.h b/target/i386/kvm/kvm_i386.h
> index b434feaa6b1d..5c7972f617e8 100644
> --- a/target/i386/kvm/kvm_i386.h
> +++ b/target/i386/kvm/kvm_i386.h
> @@ -24,6 +24,10 @@
> #define kvm_ioapic_in_kernel() \
> (kvm_irqchip_in_kernel() && !kvm_irqchip_is_split())
>
> +#define KVM_MAX_CPUID_ENTRIES 100
In Linux side, the value was bumped to 256. Opportunistically let's make it
same.
3f4e3eb417b1 KVM: x86: bump KVM_MAX_CPUID_ENTRIES
> +uint32_t kvm_x86_arch_cpuid(CPUX86State *env, struct kvm_cpuid_entry2
> *entries,
> + uint32_t cpuid_i);
> +
> #else
>
> #define kvm_pit_in_kernel() 0
> --
> 2.27.0
>
>
--
Isaku Yamahata <isaku.yamahata@gmail.com>
- Re: [RFC PATCH v4 07/36] i386/tdx: Introduce is_tdx_vm() helper and cache tdx_guest object, (continued)
[RFC PATCH v4 09/36] KVM: Introduce kvm_arch_pre_create_vcpu(), Xiaoyao Li, 2022/05/11
[RFC PATCH v4 08/36] i386/tdx: Adjust get_supported_cpuid() for TDX VM, Xiaoyao Li, 2022/05/11
[RFC PATCH v4 10/36] i386/kvm: Move architectural CPUID leaf generation to separate helper, Xiaoyao Li, 2022/05/11
- Re: [RFC PATCH v4 10/36] i386/kvm: Move architectural CPUID leaf generation to separate helper,
Isaku Yamahata <=
[RFC PATCH v4 11/36] i386/tdx: Initialize TDX before creating TD vcpus, Xiaoyao Li, 2022/05/11
[RFC PATCH v4 12/36] i386/tdx: Wire CPU features up with attributes of TD guest, Xiaoyao Li, 2022/05/11
[RFC PATCH v4 13/36] i386/tdx: Validate TD attributes, Xiaoyao Li, 2022/05/11