29 lines
927 B
Plaintext
29 lines
927 B
Plaintext
$NetBSD: patch-CVE-2013-1918_6,v 1.1 2013/05/03 16:48:38 drochner Exp $
|
|
|
|
--- xen/common/domctl.c.orig 2013-05-03 13:37:03.000000000 +0000
|
|
+++ xen/common/domctl.c
|
|
@@ -286,8 +286,10 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domc
|
|
|
|
if ( guest_handle_is_null(op->u.vcpucontext.ctxt) )
|
|
{
|
|
- vcpu_reset(v);
|
|
- ret = 0;
|
|
+ ret = vcpu_reset(v);
|
|
+ if ( ret == -EAGAIN )
|
|
+ ret = hypercall_create_continuation(
|
|
+ __HYPERVISOR_domctl, "h", u_domctl);
|
|
goto svc_out;
|
|
}
|
|
|
|
@@ -316,6 +318,10 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domc
|
|
domain_pause(d);
|
|
ret = arch_set_info_guest(v, c);
|
|
domain_unpause(d);
|
|
+
|
|
+ if ( ret == -EAGAIN )
|
|
+ ret = hypercall_create_continuation(
|
|
+ __HYPERVISOR_domctl, "h", u_domctl);
|
|
}
|
|
|
|
svc_out:
|