summaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2021-12-08 01:09:25 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2022-02-10 21:50:35 +0300
commit40421f38f63764cd41b01c17e2a1fbbe08a1515a (patch)
treef3e726699c8a335d1a4d4702169c2bb70d7fc528 /include/asm-generic
parent9c52f6b3d8c09df75b72dab9a0e6eb2b70435ae1 (diff)
downloadlinux-40421f38f63764cd41b01c17e2a1fbbe08a1515a.tar.xz
KVM: x86: Reject fixeds-size Hyper-V hypercalls with non-zero "var_cnt"
Reject Hyper-V hypercalls if the guest specifies a non-zero variable size header (var_cnt in KVM) for a hypercall that has a fixed header size. Per the TLFS: It is illegal to specify a non-zero variable header size for a hypercall that is not explicitly documented as accepting variable sized input headers. In such a case the hypercall will result in a return code of HV_STATUS_INVALID_HYPERCALL_INPUT. Note, at least some of the various DEBUG commands likely aren't allowed to use variable size headers, but the TLFS documentation doesn't clearly state what is/isn't allowed. Omit them for now to avoid unnecessary breakage. Signed-off-by: Sean Christopherson <seanjc@google.com> Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Message-Id: <20211207220926.718794-8-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/asm-generic')
0 files changed, 0 insertions, 0 deletions