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

2010-04-26 Thread Avi Kivity
On 04/26/2010 06:10 AM, Xiao Guangrong wrote: Avi Kivity wrote: On 04/25/2010 10:00 AM, Xiao Guangrong wrote: If the guest is 32-bit, we should use 'quadrant' to adjust gpa offset Changlog v2: - when level is PT_DIRECTORY_LEVEL, the 'offset' should be 'role.quadrant 8',

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

2010-04-25 Thread Xiao Guangrong
If the guest is 32-bit, we should use 'quadrant' to adjust gpa offset Changlog v2: - when level is PT_DIRECTORY_LEVEL, the 'offset' should be 'role.quadrant 8', thanks Avi for point it out Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/paging_tmpl.h | 13

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

2010-04-25 Thread Avi Kivity
On 04/25/2010 10:00 AM, Xiao Guangrong wrote: If the guest is 32-bit, we should use 'quadrant' to adjust gpa offset Changlog v2: - when level is PT_DIRECTORY_LEVEL, the 'offset' should be 'role.quadrant 8', thanks Avi for point it out Signed-off-by: Xiao

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

2010-04-25 Thread Xiao Guangrong
Avi Kivity wrote: On 04/25/2010 10:00 AM, Xiao Guangrong wrote: If the guest is 32-bit, we should use 'quadrant' to adjust gpa offset Changlog v2: - when level is PT_DIRECTORY_LEVEL, the 'offset' should be 'role.quadrant 8', thanks Avi for point it out Signed-off-by: Xiao