]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Hyper-V: do not do hypercall userspace exits if SynIC is disabled
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Mar 2016 09:23:25 +0000 (11:23 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Apr 2016 10:10:09 +0000 (12:10 +0200)
commitf1f7b180f6092109289a64d2d1ff170f87bb1917
treebec7cf046706e3d2c8ecfaa6bb232f7ef232861a
parent8ce51c35a4cd611ba6956ba3f35e9d5bcd0011eb
KVM: Hyper-V: do not do hypercall userspace exits if SynIC is disabled

If SynIC is disabled, there is nothing that userspace can do to
handle these exits; on the other hand, userspace probably will
not know about KVM_EXIT_HYPERV_HCALL and complain about it or
even exit.  Just prevent anything bad from happening by handling
the hypercall in KVM and returning an "invalid hypercall" code.

Fixes: cb0fe578bcdefef9835936622ec0e2ca47cb73ba
Cc: Andrey Smetanin <irqlevel@gmail.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c