Re: [PATCH v2 4/9] KVM: MMU: Update accessed and dirty bits after guest pagetable walk

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

 



On 09/16/2012 08:07 PM, Avi Kivity wrote:
> While unspecified, the behaviour of Intel processors is to first
> perform the page table walk, then, if the walk was successful, to
> atomically update the accessed and dirty bits of walked paging elements.
> 
> While we are not required to follow this exactly, doing so will allow us
> to perform the access permissions check after the walk is complete, rather
> than after each walk step.
> 
> (the tricky case is SMEP: a zero in any pte's U bit makes the referenced
> page a supervisor page, so we can't fault on a one bit during the walk
> itself).

Reviewed-by: Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxxxxxx>

--
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