diff options
author | Dario Faggioli <dario.faggioli@citrix.com> | 2013-09-10 19:53:48 +0200 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-09-13 13:09:59 +0100 |
commit | 6164856fa7300bf914fc4a53f012ff3941fe19b7 (patch) | |
tree | dbcb9c05a3a4c12b5bdee1afa308bf811f3c61c7 /tools/libxc/xc_domain_restore.c | |
parent | 0dd5b654107103765994243017a7f0eb15fda341 (diff) | |
download | xen-6164856fa7300bf914fc4a53f012ff3941fe19b7.tar.gz xen-6164856fa7300bf914fc4a53f012ff3941fe19b7.tar.bz2 xen-6164856fa7300bf914fc4a53f012ff3941fe19b7.zip |
libxc: use xc_vcpu_setcontext() instead of calling do_domctl()
The wrapper is there already, so better use it in place of
all the stuff required to issue a call to do_domctl() for
XEN_DOMCTL_setvcpucontext.
Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxc/xc_domain_restore.c')
-rw-r--r-- | tools/libxc/xc_domain_restore.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/libxc/xc_domain_restore.c b/tools/libxc/xc_domain_restore.c index 63d36cd63f..41a63cbe26 100644 --- a/tools/libxc/xc_domain_restore.c +++ b/tools/libxc/xc_domain_restore.c @@ -2113,11 +2113,7 @@ int xc_domain_restore(xc_interface *xch, int io_fd, uint32_t dom, } ctxt->x64.ctrlreg[1] = FOLD_CR3(ctx->p2m[pfn]); } - domctl.cmd = XEN_DOMCTL_setvcpucontext; - domctl.domain = (domid_t)dom; - domctl.u.vcpucontext.vcpu = i; - set_xen_guest_handle(domctl.u.vcpucontext.ctxt, ctxt); - frc = xc_domctl(xch, &domctl); + frc = xc_vcpu_setcontext(xch, dom, i, ctxt); if ( frc != 0 ) { PERROR("Couldn't build vcpu%d", i); |