aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/kvm_types.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-05-18 13:59:39 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-05-26 12:40:13 +0200
commit09170a49422bd786be3eac5cec1955257c5a34b7 (patch)
treeab427ac2ef8739a7faf1d34eab7a94f18df37dd5 /include/linux/kvm_types.h
parentKVM: use kvm_memslots whenever possible (diff)
downloadwireguard-linux-09170a49422bd786be3eac5cec1955257c5a34b7.tar.xz
wireguard-linux-09170a49422bd786be3eac5cec1955257c5a34b7.zip
KVM: const-ify uses of struct kvm_userspace_memory_region
Architecture-specific helpers are not supposed to muck with struct kvm_userspace_memory_region contents. Add const to enforce this. In order to eliminate the only write in __kvm_set_memory_region, the cleaning of deleted slots is pulled up from update_memslots to __kvm_set_memory_region. Reviewed-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp> Reviewed-by: Radim Krcmar <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/kvm_types.h')
0 files changed, 0 insertions, 0 deletions