]> git.baikalelectronics.ru Git - kernel.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)
commit5bece1d0502c2661d4e1856db770a18241e181fb
treeef2a5e99dff9b0f8ffd667ed47b5467b8d99f53b
parent552f387e93a38c6954eed986f3c926843c911626
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: a58e700e6295 ("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