Skip to content
Commit 32e69f23 authored by Maxim Levitsky's avatar Maxim Levitsky Committed by Sean Christopherson
Browse files

KVM: x86: Use emulator callbacks instead of duplicating "host flags"



Instead of re-defining the "host flags" bits, just expose dedicated
helpers for each of the two remaining flags that are consumed by the
emulator.  The emulator never consumes both "is guest" and "is SMM" in
close proximity, so there is no motivation to avoid additional indirect
branches.

Also while at it, garbage collect the recently removed host flags.

No functional change is intended.

Signed-off-by: default avatarMaxim Levitsky <mlevitsk@redhat.com>
Tested-by: default avatarSantosh Shukla <Santosh.Shukla@amd.com>
Link: https://lore.kernel.org/r/20221129193717.513824-6-mlevitsk@redhat.com


[sean: fix CONFIG_KVM_SMM=n builds, tweak names of wrappers]
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 916b54a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment