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)
commitfb43496c8362b8b379b4348b581f8f88f47cd1f8
treef5af78274429064736a4bfae6e706f47466bec5e
parent8283e36abfff507c64fe8289ac30ea7ab59648aa
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