Re: [PATCH 4/4] KVM: VMX: Enable EPT 1GB page support

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

 



On Wed, Jan 06, 2010 at 05:25:27PM +0800, Sheng Yang wrote:
> > > -	for (level = PT_DIRECTORY_LEVEL; level <= host_level; ++level)
> > > +	max_level = kvm_x86_ops->get_lpage_level() < host_level ?
> > > +		kvm_x86_ops->get_lpage_level() : host_level;
> > > +
> > 
> > BUG_ON(kvm_x86_ops->get_lpage_level() < host_level) instead? See
> > the if (host_level == PT_PAGE_TABLE_LEVEL) above.
>  
> Sorry, I don't understand...
> 
> Here, EPT can support either 2MB or 1GB page at most, So we represent the 
> value through get_lpage_level(). Now 1GB page backed host memory can still 
> using by 2MB page backed EPT if 1GB page EPT is not supported in the 
> processor.

Oh, OK, i misundertood.

Applied, thanks.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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