mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/shim: copy back the result of EVTCHNOP_status
The event channel data was not copied back to guest memory, fix this by doing the copy. Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Wei Liu <wl@xen.org> Release-acked-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
1 parent
ed1322105c
commit
0f45bbbc40
1 file changed
+3
@@ -514,6 +514,9 @@ static long pv_shim_event_channel_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
|
||||
else
|
||||
rc = xen_hypercall_event_channel_op(EVTCHNOP_status, &status);
|
||||
|
||||
if ( !rc && __copy_to_guest(arg, &status, 1) )
|
||||
rc = -EFAULT;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||