KVM: x86/mmu: Collapse kvm_flush_remote_tlbs_with_{range,address}() together
authorDavid Matlack <dmatlack@google.com>
Thu, 26 Jan 2023 18:40:21 +0000 (10:40 -0800)
committerSean Christopherson <seanjc@google.com>
Fri, 17 Mar 2023 22:08:41 +0000 (15:08 -0700)
commit28e4b4597d65927f8147c493d66aa0fe006e364c
tree9ff0eb57b45819280cbeaf7051dc88e1a4296246
parent141705b78381ab1dcb52c84ebb396e434e86b624
KVM: x86/mmu: Collapse kvm_flush_remote_tlbs_with_{range,address}() together

Collapse kvm_flush_remote_tlbs_with_range() and
kvm_flush_remote_tlbs_with_address() into a single function. This
eliminates some lines of code and a useless NULL check on the range
struct.

Opportunistically switch from ENOTSUPP to EOPNOTSUPP to make checkpatch
happy.

Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20230126184025.2294823-4-dmatlack@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu.c