Haiwei Li 870c575a56 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>
2021-04-20 04:18:51 -04:00
..
2021-02-27 08:29:02 -08:00
2021-03-14 13:33:33 -07:00
2021-02-28 12:06:45 -08:00
2021-02-27 08:29:02 -08:00
2021-02-27 08:29:02 -08:00
2021-02-27 08:29:02 -08:00
2021-02-27 08:29:02 -08:00
2021-02-27 08:29:02 -08:00
2021-02-27 08:29:02 -08:00
2021-02-27 08:29:02 -08:00
2021-02-27 08:29:02 -08:00