linux/include/asm-generic
Sean Christopherson 413af6601f KVM: x86: Add checks for reserved-to-zero Hyper-V hypercall fields
Add checks for the three fields in Hyper-V's hypercall params that must
be zero.  Per the TLFS, HV_STATUS_INVALID_HYPERCALL_INPUT is returned if
"A reserved bit in the specified hypercall input value is non-zero."

Note, some versions of the TLFS have an off-by-one bug for the last
reserved field, and define it as being bits 64:60.  See
https://github.com/MicrosoftDocs/Virtualization-Documentation/pull/1682.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20211207220926.718794-9-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-02-10 13:50:36 -05:00
..
2022-01-23 06:20:44 +02:00
2017-11-15 13:28:48 -08:00
2022-01-22 09:22:10 +02:00
2021-11-17 10:36:15 -05:00
2021-12-11 23:31:51 +01:00
2021-10-08 11:57:54 -07:00
2021-02-24 16:32:23 -08:00
2021-06-29 10:53:55 -07:00
2020-01-23 10:41:16 -08:00
2021-01-20 09:30:45 +01:00
2018-05-07 07:15:41 +02:00
2021-11-04 08:32:38 -07:00