aboutsummaryrefslogtreecommitdiffstats
path: root/Kconfig
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2018-08-22 21:57:11 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2018-10-17 00:29:48 +0200
commit31fc4f95dddc4ebc9f9596a2720662e15e5d444e (patch)
tree222a3c04a58bfdfbbd58d72bdc9da3f665b92998 /Kconfig
parentKVM: nVMX: Always reflect #NM VM-exits to L1 (diff)
downloadlinux-dev-31fc4f95dddc4ebc9f9596a2720662e15e5d444e.tar.xz
linux-dev-31fc4f95dddc4ebc9f9596a2720662e15e5d444e.zip
KVM: leverage change to adjust slots->used_slots in update_memslots()
update_memslots() is only called by __kvm_set_memory_region(), in which "change" is calculated and indicates how to adjust slots->used_slots * increase by one if it is KVM_MR_CREATE * decrease by one if it is KVM_MR_DELETE * not change for others This patch adjusts slots->used_slots in update_memslots() based on "change" value instead of re-calculate those states again. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions