aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/asm-generic/hugetlb_encode.h
diff options
context:
space:
mode:
authorHaiwei Li <lihaiwei@tencent.com>2021-04-09 10:24:56 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2021-04-20 04:18:51 -0400
commit870c575a56c751d515d036495316a302ff6e7f6e (patch)
tree0d4dd45861d5f302ca5feb39603a5d1577abf3bc /tools/include/asm-generic/hugetlb_encode.h
parentKVM: Add proper lockdep assertion in I/O bus unregister (diff)
downloadlinux-870c575a56c751d515d036495316a302ff6e7f6e.tar.gz
linux-870c575a56c751d515d036495316a302ff6e7f6e.zip
KVM: vmx: add mismatched size assertions in vmcs_check32()
Add compile-time assertions in vmcs_check32() to disallow accesses to 64-bit and 64-bit high fields via vmcs_{read,write}32(). Upper level KVM code should never do partial accesses to VMCS fields. KVM handles the split accesses automatically in vmcs_{read,write}64() when running as a 32-bit kernel. Reviewed-and-tested-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Haiwei Li <lihaiwei@tencent.com> Message-Id: <20210409022456.23528-1-lihaiwei.kernel@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/include/asm-generic/hugetlb_encode.h')
0 files changed, 0 insertions, 0 deletions