diff options
author | Paul Mackerras <paulus@samba.org> | 2015-06-24 21:18:07 +1000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2015-08-22 11:16:18 +0200 |
commit | cdeee51842b55acb3e699a4083fa97e82384e456 (patch) | |
tree | f5ec12826f278325f24fa4f51ada03524e142397 /arch/powerpc/kvm/book3s_hv.c | |
parent | 08fe1e7bd216339501c4eb0d0df0f413d715327a (diff) |
KVM: PPC: Book3S HV: Implement H_CLEAR_REF and H_CLEAR_MOD
This adds implementations for the H_CLEAR_REF (test and clear reference
bit) and H_CLEAR_MOD (test and clear changed bit) hypercalls.
When clearing the reference or change bit in the guest view of the HPTE,
we also have to clear it in the real HPTE so that we can detect future
references or changes. When we do so, we transfer the R or C bit value
to the rmap entry for the underlying host page so that kvm_age_hva_hv(),
kvm_test_age_hva_hv() and kvmppc_hv_get_dirty_log() know that the page
has been referenced and/or changed.
These hypercalls are not used by Linux guests. These implementations
have been tested using a FreeBSD guest.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/book3s_hv.c')
0 files changed, 0 insertions, 0 deletions