diff options
author | Andrew Honig | 2013-03-29 17:35:21 +0100 |
---|---|---|
committer | Gleb Natapov | 2013-04-07 12:05:35 +0200 |
commit | 8f964525a121f2ff2df948dac908dcc65be21b5b (patch) | |
tree | 1986d7677a1cae8f639c91812da2d8c6ed5bba26 /include/linux/kvm_types.h | |
parent | Revert "KVM: allow host header to be included even for !CONFIG_KVM" (diff) | |
download | kernel-qcow2-linux-8f964525a121f2ff2df948dac908dcc65be21b5b.tar.gz kernel-qcow2-linux-8f964525a121f2ff2df948dac908dcc65be21b5b.tar.xz kernel-qcow2-linux-8f964525a121f2ff2df948dac908dcc65be21b5b.zip |
KVM: Allow cross page reads and writes from cached translations.
This patch adds support for kvm_gfn_to_hva_cache_init functions for
reads and writes that will cross a page. If the range falls within
the same memslot, then this will be a fast operation. If the range
is split between two memslots, then the slower kvm_read_guest and
kvm_write_guest are used.
Tested: Test against kvm_clock unit tests.
Signed-off-by: Andrew Honig <ahonig@google.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'include/linux/kvm_types.h')
-rw-r--r-- | include/linux/kvm_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm_types.h b/include/linux/kvm_types.h index fa7cc7244cbd..b0bcce0ddc95 100644 --- a/include/linux/kvm_types.h +++ b/include/linux/kvm_types.h @@ -71,6 +71,7 @@ struct gfn_to_hva_cache { u64 generation; gpa_t gpa; unsigned long hva; + unsigned long len; struct kvm_memory_slot *memslot; }; |