From: Vitaly Kuznetsov Date: Thu, 10 Sep 2015 14:58:17 +0000 (+0200) Subject: libxc: support XEN_DOMCTL_soft_reset operation X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2554 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e1bd9812966de9a16f30a58e7162b80bd6af361b;p=xen.git libxc: support XEN_DOMCTL_soft_reset operation Introduce xc_domain_soft_reset() function supporting XEN_DOMCTL_soft_reset. Signed-off-by: Vitaly Kuznetsov Acked-by: Wei Liu Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Ian Jackson --- diff --git a/tools/libxc/include/xenctrl.h b/tools/libxc/include/xenctrl.h index 2000f1237c..e019474e6b 100644 --- a/tools/libxc/include/xenctrl.h +++ b/tools/libxc/include/xenctrl.h @@ -1288,6 +1288,9 @@ int xc_domain_setvnuma(xc_interface *xch, unsigned int *vcpu_to_vnode, unsigned int *vnode_to_pnode); +int xc_domain_soft_reset(xc_interface *xch, + uint32_t domid); + #if defined(__i386__) || defined(__x86_64__) /* * PC BIOS standard E820 types and structure. diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c index 780797f084..62b2e45a36 100644 --- a/tools/libxc/xc_domain.c +++ b/tools/libxc/xc_domain.c @@ -2493,6 +2493,15 @@ int xc_domain_setvnuma(xc_interface *xch, return rc; } + +int xc_domain_soft_reset(xc_interface *xch, + uint32_t domid) +{ + DECLARE_DOMCTL; + domctl.cmd = XEN_DOMCTL_soft_reset; + domctl.domain = (domid_t)domid; + return do_domctl(xch, &domctl); +} /* * Local variables: * mode: C