KVM: x86: Add a VALID_MASK for the MSR exit reason flags
authorAaron Lewis <aaronlewis@google.com>
Wed, 21 Sep 2022 15:15:22 +0000 (15:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 17:31:29 +0000 (12:31 -0500)
commitdb205f7e1edc8d8f0880f0218d3a03b13fe94af3
tree7a8f9287b5b89d839660cef305079cca2b4f0e79
parentbe83794210e7020fef98596f4513aafbed659cd1
KVM: x86: Add a VALID_MASK for the MSR exit reason flags

Add the mask KVM_MSR_EXIT_REASON_VALID_MASK for the MSR exit reason
flags.  This simplifies checks that validate these flags, and makes it
easier to introduce new flags in the future.

No functional change intended.

Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Message-Id: <20220921151525.904162-3-aaronlewis@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c
include/uapi/linux/kvm.h