]> 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 <dwmw@amazon.co.uk>
Wed, 18 Oct 2023 23:28:37 +0000 (00:28 +0100)
commitfe54d88c83f307a55c57eb68d9baacd3b51dcbab
tree3ca4a363784db8760647e752fa1318acc2868df0
parent7b485ec3a604bcde6073dbdda79df38c1902d4de
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