]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86/xen: Only do in-kernel acceleration of hypercalls for guest CPL0
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 12 Nov 2022 13:52:25 +0000 (13:52 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 23 Nov 2022 23:58:45 +0000 (18:58 -0500)
commitc2b8cdfaf3a6721afe0c8c060a631b1c67a7f1ee
treeef2a5e99dff9b0f8ffd667ed47b5467b8d99f53b
parent4ea9439fd537313f3381f0af4ebbf05e3f51a58c
KVM: x86/xen: Only do in-kernel acceleration of hypercalls for guest CPL0

There are almost no hypercalls which are valid from CPL > 0, and definitely
none which are handled by the kernel.

Fixes: 2fd6df2f2b47 ("KVM: x86/xen: intercept EVTCHNOP_send from guests")
Reported-by: Michal Luczaj <mhal@rbox.co>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Cc: stable@kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/xen.c