]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/MMU: Simplify flow of vmx_get_mt_mask
authorBen Gardon <bgardon@google.com>
Mon, 15 Nov 2021 23:45:59 +0000 (15:45 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:43 +0000 (04:24 -0500)
commit15fde12bed56d6964d3c6d115d37c13d3fbecb74
treef5af78274429064736a4bfae6e706f47466bec5e
parent97f31abb357e5a47efef06eb2b985a488599a2b4
KVM: x86/MMU: Simplify flow of vmx_get_mt_mask

Remove the gotos from vmx_get_mt_mask.  It's easier to build the whole
memory type at once, than it is to combine separate cacheability and
ipat fields.

No functional change intended.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20211115234603.2908381-12-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c