KVM: x86: Protect the unused bits in MSR exiting flags
authorAaron Lewis <aaronlewis@google.com>
Thu, 14 Jul 2022 16:13:15 +0000 (16:13 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 17:15:25 +0000 (18:15 +0100)
commit0c60fa7f55182b6064b4482022c7b480ce728221
treefa268a8d74865bac271f90ec4d0e2a963a7b8845
parentad8e4868dd167fbea4bfa98750ce44395143c4ec
KVM: x86: Protect the unused bits in MSR exiting flags

[ Upstream commit cf5029d5dd7cb0aaa53250fa9e389abd231606b3 ]

The flags for KVM_CAP_X86_USER_SPACE_MSR and KVM_X86_SET_MSR_FILTER
have no protection for their unused bits.  Without protection, future
development for these features will be difficult.  Add the protection
needed to make it possible to extend these features in the future.

Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Message-Id: <20220714161314.1715227-1-aaronlewis@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Stable-dep-of: 2e3272bc1790 ("KVM: x86: Copy filter arg outside kvm_vm_ioctl_set_msr_filter()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/x86.c