Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions helpers/vchan-socket-proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ static struct libxenvchan *connect_vchan(int domid, const char *path) {
struct libxenvchan *ctrl = NULL;
struct xs_handle *xs = NULL;
xc_interface *xc = NULL;
xc_dominfo_t dominfo;
xc_domaininfo_t dominfo;
char **watch_ret;
unsigned int watch_num;
int ret;
Expand Down Expand Up @@ -259,12 +259,12 @@ static struct libxenvchan *connect_vchan(int domid, const char *path) {
if (ctrl)
break;

ret = xc_domain_getinfo(xc, domid, 1, &dominfo);
ret = xc_domain_getinfo_single(xc, domid, &dominfo);
/* break the loop if domain is definitely not there anymore, but
* continue if it is or the call failed (like EPERM) */
if (ret == -1 && errno == ESRCH)
break;
if (ret == 1 && (dominfo.domid != (uint32_t)domid || dominfo.dying))
if (ret == 0 && (dominfo.flags & XEN_DOMINF_dying))
break;
}

Expand Down
2 changes: 1 addition & 1 deletion rpm_spec/xen-hvm-stubdom-linux.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ BuildRequires: quilt
# QEMU
BuildRequires: python3
BuildRequires: zlib-devel
BuildRequires: xen-devel
BuildRequires: xen-devel >= 2001:4.18.0
BuildRequires: glib2-devel
BuildRequires: autoconf
BuildRequires: automake
Expand Down