diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2010-07-16 11:25:17 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-02 06:40:58 +0300 |
commit | 9ed5520dd3c9cb79c25f95fce9c57b87637d0fb7 (patch) | |
tree | 32a983f23b3aa4dba5dea64a57f1b96126afe92a /arch/alpha/include/asm/smp.h | |
parent | daa3db693ce925a14b7e17ab6f306dc0e6a5342c (diff) |
KVM: MMU: fix page dirty tracking lost while sync page
In sync-page path, if spte.writable is changed, it will lose page dirty
tracking, for example:
assume spte.writable = 0 in a unsync-page, when it's synced, it map spte
to writable(that is spte.writable = 1), later guest write spte.gfn, it means
spte.gfn is dirty, then guest changed this mapping to read-only, after it's
synced, spte.writable = 0
So, when host release the spte, it detect spte.writable = 0 and not mark page
dirty
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/alpha/include/asm/smp.h')
0 files changed, 0 insertions, 0 deletions