summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2015-04-08 14:16:48 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-04-10 16:04:45 +0200
commitca3f0874723fad81d0c701b63ae3a17a408d5f25 (patch)
treeb3de169529b5d9e0472c603b98a9e179db29c213 /security
parent3ea3b7fa9af067982f34b6745584558821eea79d (diff)
downloadop-kernel-dev-ca3f0874723fad81d0c701b63ae3a17a408d5f25.zip
op-kernel-dev-ca3f0874723fad81d0c701b63ae3a17a408d5f25.tar.gz
KVM: use slowpath for cross page cached accesses
kvm_write_guest_cached() does not mark all written pages as dirty and code comments in kvm_gfn_to_hva_cache_init() talk about NULL memslot with cross page accesses. Fix all the easy way. The check is '<= 1' to have the same result for 'len = 0' cache anywhere in the page. (nr_pages_needed is 0 on page boundary.) Fixes: 8f964525a121 ("KVM: Allow cross page reads and writes from cached translations.") Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Message-Id: <20150408121648.GA3519@potion.brq.redhat.com> Reviewed-by: Wanpeng Li <wanpeng.li@linux.intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud