Re: [PATCH 1/10] KVM MMU: fix for calculating gpa in invlpg code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avi Kivity
Date: Friday, April 23, 2010 - 5:11 am

On 04/23/2010 03:05 PM, Xiao Guangrong wrote:

No, I mean if level == PT_DIRECTORY_LEVEL, then we want role.quadrant << 
8, not 9.


For level == PT_DIRECTORY_LEVEL, quadrant is in the range 0..3.  Each sp 
maps 1GB, while the guest page table maps 4GB.  So the upper two bits 
become the quadrant.


They only work for PT_PAGE_TABLE_LEVEL, so for them 9 is correct.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/10] KVM MMU: fix for calculating gpa in invlpg code, Xiao Guangrong, (Wed Apr 21, 11:12 pm)
Re: [PATCH 1/10] KVM MMU: fix for calculating gpa in invlp ..., Avi Kivity, (Fri Apr 23, 5:11 am)