diff options
author | Paul Mackerras <paulus@samba.org> | 2013-04-18 19:50:24 (GMT) |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-04-26 18:27:12 (GMT) |
commit | a1b4a0f6064aacad0d708105e6f60a06e93fbf37 (patch) | |
tree | 7bbe9a95f283307775ec93dd95b2e02173a5487c /lib/cpumask.c | |
parent | d9ce6041b39cf0b48978db63713f9b7e25ef9792 (diff) | |
download | linux-a1b4a0f6064aacad0d708105e6f60a06e93fbf37.tar.xz |
KVM: PPC: Book3S HV: Make HPT reading code notice R/C bit changes
At present, the code that determines whether a HPT entry has changed,
and thus needs to be sent to userspace when it is copying the HPT,
doesn't consider a hardware update to the reference and change bits
(R and C) in the HPT entries to constitute a change that needs to
be sent to userspace. This adds code to check for changes in R and C
when we are scanning the HPT to find changed entries, and adds code
to set the changed flag for the HPTE when we update the R and C bits
in the guest view of the HPTE.
Since we now need to set the HPTE changed flag in book3s_64_mmu_hv.c
as well as book3s_hv_rm_mmu.c, we move the note_hpte_modification()
function into kvm_book3s_64.h.
Current Linux guest kernels don't use the hardware updates of R and C
in the HPT, so this change won't affect them. Linux (or other) kernels
might in future want to use the R and C bits and have them correctly
transferred across when a guest is migrated, so it is better to correct
this deficiency.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/cpumask.c')
0 files changed, 0 insertions, 0 deletions