aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_gnttab.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix emacs local variable block to use correct C style variable.David Vrabel2013-02-211-1/+1
| | | | | | | The emacs variable to set the C style from a local variable block is c-file-style, not c-set-style. Signed-off-by: David Vrabel <david.vrabel@citrix.com
* libxc: add xc_gntshr_* functionsDaniel De Graaf2011-10-061-0/+27
| | | | | | | | | These functions and the xc_gntshr device (/dev/xen/gntalloc on linux) allow applications to create pages shared with other domains. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxc: add xc_gnttab_map_grant_ref_notifyDaniel De Graaf2011-10-061-6/+20
| | | | | | | | | | | | | | | Normally, when a userspace process mapping a grant crashes, the domain providing the reference receives no indication that its peer has crashed, possibly leading to unexpected freezes or timeouts. This function provides a notification of the unmap by signalling an event channel and/or clearing a specific byte in the page. This also unifies the 3 very similar grant-mapping osdep interfaces into a single function instead of introducing yet another minor variation. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
* libxc: Remove set_max_grants in linuxDaniel De Graaf2011-01-171-0/+2
| | | | | | | | | The maximum number of grants is now constrained domain-wide in linux, so set_max_grants should be a noop there. Previously, this constraint was per-file-description. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxc: osdep: convert xc_gnttab_set_max_grants()Ian Campbell2010-12-031-0/+4
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* libxc: osdep: convert xc_gnttab_munmap()Ian Campbell2010-12-031-0/+9
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* libxc: osdep: convert xc_gnttab_map_{grant_ref,grant_refs,domain_grant_refs}()Ian Campbell2010-12-031-0/+38
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* libxc: some xc_gnttab_* functions are not Linux specificIan Campbell2010-12-231-0/+147
| | | | | | | | | They simply make hypercalls and perform other operations via the abstract interface. Create xc_gnttab.c and move those functions there. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Remove unneeded /proc/xen/grant and its libxc wrapper.kaf24@firebug.cl.cam.ac.uk2006-01-261-142/+0
| | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* GNTTABOP_map_grant_ref returns error status and handle askaf24@firebug.cl.cam.ac.uk2005-11-301-3/+5
| | | | | | | | | | separate fields. Update callers for new interface. Also use int16_t as standard error code type on all public interfaces. Signed-off-by: Keir Fraser <keir@xensource.com>
* Make it possible to run valgrind on code linked with the libxc libraries.emellor@leeni.uk.xensource.com2005-11-221-1/+1
| | | | | | | | | | | | | | Valgrind cannot see when a hypercall has initialised entries in a data structure, so appropriate memsets have been placed before using dom0_op_t, privcmd_hypercall_t, and a couple of miscellaneous blocks passed into this layer. This initialises the block so that valgrind considers it to be valid, but the data therein will be immediately overwritten by the hypercall, all being well. These changes are semantically neutral if -DVALGRIND is not set. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix Xen public interfaces and the tools to consistentlykaf24@firebug.cl.cam.ac.uk2005-10-121-15/+15
| | | | | | | | use stdint-format bitsize types (uint32_t and friends). Signed-off-by: Keir Fraser <keir@xensource.com>
* Get rid of memory_t. Almost all uses should be unsigned long.kaf24@firebug.cl.cam.ac.uk2005-08-191-5/+5
| | | | | | | | | | | | The few uses for a physical/machine address have been mostly changed to u64. Grant table code probably needs auditing for PAE correctness, but at least the interface is now sound. Signed-off-by: Keir Fraser <keir@xensource.com>
* Remove unnecessary union in grant table map/unmap ops.akw27@arcadians.cl.cam.ac.uk2005-08-131-2/+2
| | | | | | | All addresses, host virtual and PTEs, are now passed in the cunningly ambiguous "host_addr" field, rather than in an anonymous union.
* Fix grant-table interface by removing the unnecessary union.kaf24@firebug.cl.cam.ac.uk2005-07-041-38/+37
| | | | | | This fixes a domU crash introduced over the weekend. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1726.2.3 (42ba7587nwhnhQJ_hDkHTk8kTKtAFw)kaf24@firebug.cl.cam.ac.uk2005-06-231-1/+1
| | | | | | | Make sure we save errno across error-path printfs and munlocks. Based on a patch from Anthony Liguori. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1681 (42a4172fYhXBx6d4aXa2ofB5qVB2Ww)cl349@firebug.cl.cam.ac.uk2005-06-061-8/+6
| | | | | | | | | | xc_gnttab.c, xc_evtchn.c: Cleanup error message printing and error exit code path. xc_vmx_build.c, xc_private.c, xc_plan9_build.c, xc_linux_build.c: Cleanup error message printing. Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* bitkeeper revision 1.1236.9.1 (4227c12cJQxFhBUYk0ojkmnooUw0jQ)cwc22@centipede.cl.cam.ac.uk2005-03-041-0/+143
Grant tables work on data structures.