commit | b79b93f92cb3b66b89d75525fdfd2454b1e1f446 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Sun Jun 06 15:46:44 2010 +0300 |
committer | Avi Kivity <avi@redhat.com> | Mon Aug 02 06:40:21 2010 +0300 |
tree | 0ca735431e67c58ff4b69578dc56bdd6e875eebb | |
parent | a9221dd5ec125fbec1702fae016c6d2ea1a9a3da [diff] |
KVM: MMU: Don't drop accessed bit while updating an spte __set_spte() will happily replace an spte with the accessed bit set with one that has the accessed bit clear. Add a helper update_spte() which checks for this condition and updates the page flag if needed. Signed-off-by: Avi Kivity <avi@redhat.com>