]> www.infradead.org Git - users/dwmw2/qemu.git/commit
i386/xen: fix per-vCPU upcall vector for Xen emulation
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 11 Oct 2023 22:30:08 +0000 (23:30 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 11 Oct 2023 23:34:57 +0000 (00:34 +0100)
commit0d5c1f538905323f94baf6255118f5ce810dbd1a
treec1f2d91394e727b96cd26567a6de7b519bad6889
parent8379e6426a1c37270b0ff88cf41cca5c68776cb6
i386/xen: fix per-vCPU upcall vector for Xen emulation

The per-vCPU upcall vector support had two problems. Firstly it was
using the wrong hypercall argument and would always return -EFAULT.
And secondly it was using the wrong ioctl() to pass the vector to
the kernel and thus the *kernel* would always return -EINVAL.

Linux doesn't (yet) use this mode so it went without decent testing
for a while.

Fixes: 105b47fdf2d0 ("i386/xen: implement HVMOP_set_evtchn_upcall_vector")
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
target/i386/kvm/xen-emu.c