Skip to content
Commit 214b0a88 authored by Metin Kaya's avatar Metin Kaya Committed by David Woodhouse
Browse files

KVM: x86/xen: add support for 32-bit guests in SCHEDOP_poll



This patch introduces compat version of struct sched_poll for
SCHEDOP_poll sub-operation of sched_op hypercall, reads correct amount
of data (16 bytes in 32-bit case, 24 bytes otherwise) by using new
compat_sched_poll struct, copies it to sched_poll properly, and lets
rest of the code run as is.

Signed-off-by: default avatarMetin Kaya <metikaya@amazon.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: default avatarPaul Durrant <paul@xen.org>
parent df0bb47b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment