KVM: MMU: Avoid dropping accessed bit while removing write access
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Sun, 5 Dec 2010 16:11:33 +0000 (01:11 +0900)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:30:21 +0000 (11:30 +0200)
commit700e1b12196c4b01524ca10d89f8731418d72b6e
treebf9f5aeeb8724f71f53e083267118df1b275163f
parenta295673aba42895997a6c1be87f467a7cfc0f332
KVM: MMU: Avoid dropping accessed bit while removing write access

One more "KVM: MMU: Don't drop accessed bit while updating an spte."

Sptes are accessed by both kvm and hardware.
This patch uses update_spte() to fix the way of removing write access.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c