Displaying 6 results from an estimated 6 matches for "xc_gnttab_close".
2008 Jul 11
1
Question about using xenctl
...void* start_address;
start_address = xc_gnttab_map_grant_ref(xcg_handle, 0, 3,PROT_WRITE);
if(start_address != NULL)
{
printf("mapping success!\n");
}
else
{
printf("mapping errror!=n");
}
xc_gnttab_close(xcg_handle);
return 0;
}
==============================================
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2007 Mar 19
0
[PATCH 2/3] [RFC] User-space grant table device - changes to libxc
...((mkdir("/dev/xen", 0755) == 0) || (errno == EEXIST)) &&
+ (mknod(GNTTAB_DEV_NAME, S_IFCHR|0600, devnum) == 0) )
+ goto reopen;
+
+ PERROR("Could not open grant table interface");
+ return -1;
+ }
+
+ return fd;
+}
+
+int xc_gnttab_close(int xcg_handle)
+{
+ return close(xcg_handle);
+}
+
+void *xc_gnttab_map_grant_ref(int xcg_handle,
+ uint32_t domid,
+ uint32_t ref,
+ int prot)
+{
+ struct ioctl_gntdev_map_grant_ref map;
+ struct ioctl...
2013 Jan 10
10
[PATCH v2 1/2] xenconsoled: use grant references instead of map_foreign_range
..."Failed to open xcg handle: %d (%s)",
+ errno, strerror(errno));
+ }
+
+ enum_domains();
+
for (;;) {
struct domain *d, *n;
int max_fd = -1;
@@ -1097,6 +1127,10 @@ void handle_io(void)
xc_evtchn_close(xce_handle);
xce_handle = NULL;
}
+ if (xcg_handle != NULL) {
+ xc_gnttab_close(xcg_handle);
+ xcg_handle = NULL;
+ }
log_hv_evtchn = -1;
}
diff --git a/tools/console/daemon/io.h b/tools/console/daemon/io.h
index 8fa04b6..f658bfc 100644
--- a/tools/console/daemon/io.h
+++ b/tools/console/daemon/io.h
@@ -21,7 +21,6 @@
#ifndef CONSOLED_IO_H
#define CONSOLED_IO_H
-void...
2012 Dec 13
3
[PATCH] xenconsoled: use grant references instead of map_foreign_range
...@@ -946,6 +974,7 @@ void handle_io(void)
errno, strerror(errno));
goto out;
}
+
log_hv_fd = create_hv_log();
if (log_hv_fd == -1)
goto out;
@@ -1097,6 +1126,10 @@ void handle_io(void)
xc_evtchn_close(xce_handle);
xce_handle = NULL;
}
+ if (xcg_handle != NULL) {
+ xc_gnttab_close(xcg_handle);
+ xcg_handle = NULL;
+ }
log_hv_evtchn = -1;
}
--
1.7.11.7
2010 Aug 12
59
[PATCH 00/15] RFC xen device model support
Hi all,
this is the long awaited patch series to add xen device model support in
qemu; the main author is Anthony Perard.
Developing this series we tried to come up with the cleanest possible
solution from the qemu point of view, limiting the amount of changes to
common code as much as possible. The end result still requires a couple
of hooks in piix_pci but overall the impact should be very
2012 Jan 25
26
[PATCH v4 00/23] Xenstore stub domain
Changes from v3:
- mini-os configuration files moved into stubdom/
- mini-os extra console support now a config option
- Fewer #ifdefs
- grant table setup uses hypercall bounce
- Xenstore stub domain syslog support re-enabled
Changes from v2:
- configuration support added to mini-os build system
- add mini-os support for conditionally compiling frontends, xenbus
-