[PATCH 10/11] KVM: MMU: fix detecting misaligned accessed

2011-08-15 Thread Xiao Guangrong
Sometimes, we only modify the last one byte of a pte to update status bit, for example, clear_bit is used to clear r/w bit in linux kernel and 'andb' instruction is used in this function, in this case, kvm_mmu_pte_write will treat it as misaligned access, and the shadow page table is zapped Signed

Re: [PATCH 10/11] KVM: MMU: fix detecting misaligned accessed

2011-07-27 Thread Xiao Guangrong
On 07/27/2011 05:15 PM, Avi Kivity wrote: > On 07/26/2011 02:31 PM, Xiao Guangrong wrote: >> Sometimes, we only modify the last one byte of a pte to update status bit, >> for example, clear_bit is used to clear r/w bit in linux kernel and 'andb' >> instruction is used in this function, in this case

Re: [PATCH 10/11] KVM: MMU: fix detecting misaligned accessed

2011-07-27 Thread Avi Kivity
On 07/26/2011 02:31 PM, Xiao Guangrong wrote: Sometimes, we only modify the last one byte of a pte to update status bit, for example, clear_bit is used to clear r/w bit in linux kernel and 'andb' instruction is used in this function, in this case, kvm_mmu_pte_write will treat it as misaligned acc

[PATCH 10/11] KVM: MMU: fix detecting misaligned accessed

2011-07-26 Thread Xiao Guangrong
Sometimes, we only modify the last one byte of a pte to update status bit, for example, clear_bit is used to clear r/w bit in linux kernel and 'andb' instruction is used in this function, in this case, kvm_mmu_pte_write will treat it as misaligned access, and the shadow page table is zapped Signed