summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/kvm_book3s.h
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2012-11-19 22:52:49 (GMT)
committerAlexander Graf <agraf@suse.de>2012-12-06 00:33:54 (GMT)
commit44e5f6be62741bd44968f40f3afa1cff1df983f2 (patch)
tree82476ebfb27757ed9ad146ab4ef5d072e58629a8 /arch/powerpc/include/asm/kvm_book3s.h
parent4879f241720cda3e6c18a1713bf9b2ed2de14ee4 (diff)
downloadlinux-fsl-qoriq-44e5f6be62741bd44968f40f3afa1cff1df983f2.tar.xz
KVM: PPC: Book3S HV: Add a mechanism for recording modified HPTEs
This uses a bit in our record of the guest view of the HPTE to record when the HPTE gets modified. We use a reserved bit for this, and ensure that this bit is always cleared in HPTE values returned to the guest. The recording of modified HPTEs is only done if other code indicates its interest by setting kvm->arch.hpte_mod_interest to a non-zero value. The reason for this is that when later commits add facilities for userspace to read the HPT, the first pass of reading the HPT will be quicker if there are no (or very few) HPTEs marked as modified, rather than having most HPTEs marked as modified. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_book3s.h')
0 files changed, 0 insertions, 0 deletions