Re: [PATCH v5 1/5] KVM: x86: Virtualize CR4.LAM_SUP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2023-03-02 at 15:17 +0800, Chao Gao wrote:
> > diff --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h
> > index 9de72586f406..8ec5cc983062 100644
> > --- a/arch/x86/kvm/x86.h
> > +++ b/arch/x86/kvm/x86.h
> > @@ -475,6 +475,8 @@ bool kvm_msr_allowed(struct kvm_vcpu *vcpu, u32
> > index, u32 type);
> > 		__reserved_bits |= X86_CR4_VMXE;        \
> > 	if (!__cpu_has(__c, X86_FEATURE_PCID))          \
> > 		__reserved_bits |= X86_CR4_PCIDE;       \
> > +	if (!__cpu_has(__c, X86_FEATURE_LAM))		\
> > +		__reserved_bits |= X86_CR4_LAM_SUP;	\
> > 	__reserved_bits;                                \
> > })
> 
> Add X86_CR4_LAM_SUP to cr4_fixed1 in
> nested_vmx_cr_fixed1_bits_update()
> to indicate CR4.LAM_SUP is allowed to be 0 or 1 in VMX operation.
> 
Is this going to support nested LAM?

> With this fixed,
> 
> Reviewed-by: Chao Gao <chao.gao@xxxxxxxxx>




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux