summaryrefslogtreecommitdiffstats
path: root/arch/c6x
diff options
context:
space:
mode:
authorWei Yang2018-09-27 02:31:26 +0200
committerPaolo Bonzini2019-03-28 17:27:19 +0100
commit4d66623cfba0949b2f0d669bd2ae732124c99ded (patch)
treec031dcad0bdd4e7e995696f18f09c9c88219f16b /arch/c6x
parentkvm: nVMX: Add a vmentry check for HOST_SYSENTER_ESP and HOST_SYSENTER_EIP fi... (diff)
downloadkernel-qcow2-linux-4d66623cfba0949b2f0d669bd2ae732124c99ded.tar.gz
kernel-qcow2-linux-4d66623cfba0949b2f0d669bd2ae732124c99ded.tar.xz
kernel-qcow2-linux-4d66623cfba0949b2f0d669bd2ae732124c99ded.zip
KVM: x86: remove check on nr_mmu_pages in kvm_arch_commit_memory_region()
* nr_mmu_pages would be non-zero only if kvm->arch.n_requested_mmu_pages is non-zero. * nr_mmu_pages is always non-zero, since kvm_mmu_calculate_mmu_pages() never return zero. Based on these two reasons, we can merge the two *if* clause and use the return value from kvm_mmu_calculate_mmu_pages() directly. This simplify the code and also eliminate the possibility for reader to believe nr_mmu_pages would be zero. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/c6x')
0 files changed, 0 insertions, 0 deletions