Re: [PATCH v2 8/9] KVM: MMU: fully check zero bits for sptes

2015-08-05 Thread Xiao Guangrong
On 08/05/2015 06:12 PM, Paolo Bonzini wrote: On 05/08/2015 06:04, Xiao Guangrong wrote: - for_each_shadow_entry_lockless(vcpu, addr, iterator, spte) + for_each_shadow_entry_lockless(vcpu, addr, iterator, spte) { + leaf = iterator.level; + + if (!root)

Re: [PATCH v2 8/9] KVM: MMU: fully check zero bits for sptes

2015-08-05 Thread Paolo Bonzini
On 05/08/2015 06:04, Xiao Guangrong wrote: > - for_each_shadow_entry_lockless(vcpu, addr, iterator, spte) > + for_each_shadow_entry_lockless(vcpu, addr, iterator, spte) { > + leaf = iterator.level; > + > + if (!root) > + root = leaf; > + > +

[PATCH v2 8/9] KVM: MMU: fully check zero bits for sptes

2015-08-04 Thread Xiao Guangrong
The #PF with PFEC.RSV = 1 is designed to speed MMIO emulation, however, it is possible that the RSV #PF is caused by real BUG by mis-configure shadow page table entries This patch enables full check for the zero bits on shadow page table entries which include not only the reserved bit on hardware