aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_evtchn.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: osdep: convert xc_evtchn_{pending,unmask}()Ian Campbell2010-12-031-0/+11
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* libxc: osdep: convert xc_evtchn_unbind()Ian Campbell2010-12-031-0/+5
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* libxc: osdep: convert xc_evtchn_bind_virq()Ian Campbell2010-12-031-0/+6
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* libxc: osdep: convert xc_evtchn_bind_interdomain()Ian Campbell2010-12-031-0/+7
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* libxc: osdep: convert xc_evtchn_bind_unbound_port()Ian Campbell2010-12-031-0/+6
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* libxc: osdep: convert xc_evtchn_notify()Ian Campbell2010-12-031-0/+15
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* libxc: osdep: convert xc_evtchn_fd()Ian Campbell2010-12-031-0/+5
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* libxc: convert evtchn interfaces over to hypercall buffersIan Campbell2010-10-221-9/+8
| | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* libxc: pass an xc_interface handle to page locking functionsIan Campbell2010-10-181-2/+2
| | | | | | | | | Not actually used here but useful to confirm that a handle is passed down to each location where it will be required once we switch to hypercall buffers. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* # HG changeset patchIan Campbell2010-08-241-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | # User Ian Campbell <ian.campbell@citrix.com> # Date 1282671421 -3600 # Node ID d1dd29a470ef1b9d2c77478a123326036dfe90bb # Parent d7a4adad9c328decbd384d87b23001aea8951b86 tools/libxc, tools/libelf: Relicense under LGPL v2.1 Relicense these two libraries under LGPL v2.1 only except where individual files already included the "or later" provision. Copyright holders have been contacted by Stephen Spector and have all agreed this change. Removed tools/libxc/ia64/aclinux.h since it appeared to be unused. There is a separate, more up to date, copy in xen/include/acpi/platform/aclinux.h which does appear to be used. Clarify the license of MiniOS privcmd.h under the same terms as other tools/include/xen-sys headers. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Stephen Spector <stephen.spector@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxc: eliminate static variables, use xentoollog; API changeKeir Fraser2010-05-281-8/+8
| | | | | | | | | | | | | | | | | | | | This patch eliminate the global variables in libxenctrl (used for logging and error reporting). Instead the information which was in the global variables is now in a new xc_interface* opaque structure, which xc_interface open returns instead of the raw file descriptor; furthermore, logging is done via xentoollog. There are three new parameters to xc_interface_open to control the logging, but existing callers can just pass "0" for all three to get the old behaviour. All libxc callers have been adjusted accordingly. Also update QEMU_TAG for corresponding qemu change. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* lsevtchn: Improve this evtchn reporting tool.Keir Fraser2008-09-051-12/+3
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* lsevtchn: Simple tool to list event channel states for a domain.Keir Fraser2008-04-091-4/+20
| | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* libxc: Various xc_evtchn_* functions must return signed integer type.kfraser@localhost.localdomain2007-08-141-3/+4
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] New event-channel reset operation.kfraser@localhost.localdomain2007-01-191-1/+8
| | | | | | | Plumbed through libxenctrl to python. From: Andrei Petrov <andrei.petrov@xensource.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [SOLARIS] Don't mlock() hypercall buffers.kfraser@localhost.localdomain2006-10-231-3/+3
| | | | | | | On solaris mlock requires a page aligned address and mlock doesn't ensure the pages won't minor page fault. Signed-off-by: Mark Johnson <mark.johnson@sun.com>
* [LIBXC] Remove unused xc_evtchn_status().kfraser@localhost.localdomain2006-08-141-11/+0
| | | | | Signed-off-by: John Levon <john.levon@sun.com>
* Define new event-channel and physdev hypercalls with a more extensiblekaf24@firebug.cl.cam.ac.uk2006-04-301-21/+16
| | | | | | | | | | | | interface (the legacy hypercalls would break if subcommands with large argument structures were added, as it would grow the size of the union of all argument structures). Also, based on a patch from Kevin Tian, add a new physdev op to signal EOI for a particular irq. Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix whitespace in libxc. Tabs are manually fixed.kaf24@firebug.cl.cam.ac.uk2006-04-151-4/+4
| | | | | | | | Trailing whitespace removed with: perl -p -i -e 's/\s+$/\n/g' tools/libxc/*.[ch] Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* Define explicit evtchn_port_t type (32 bits) and plumb upkaf24@firebug.cl.cam.ac.uk2005-12-011-1/+1
| | | | | | | | to user space thru /dev/xen/evtchn. 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-3/+3
| | | | | | | | use stdint-format bitsize types (uint32_t and friends). Signed-off-by: Keir Fraser <keir@xensource.com>
* User tools send evtchn notifications via /dev/xen/evtchnkaf24@firebug.cl.cam.ac.uk2005-10-061-77/+4
| | | | | | | | rather than using hypercall directly. Signed-off-by: Keir Fraser <keir@xensource.com>
* Ensure that all fields of evtchn_op_t are initialised whenkaf24@firebug.cl.cam.ac.uk2005-10-061-31/+26
| | | | | | | | | | | making an event_channel_op hypercall. Stefan Berger gets the credit for diagnosing nasty domU driver problems that were a result of garbage fields. Signed-off-by: Stefan Berger <stefanb@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* EVTCHNOP_alloc_unbound can allocate a port in an arbitrarykaf24@firebug.cl.cam.ac.uk2005-10-051-0/+2
| | | | | | | | domain (only if the caller is sufficiently privileged). Signed-off-by: Keir Fraser <keir@xensource.com>
* Allow EVTCHNOP_bind_{ipi,virq} to specify the vcpu tokaf24@firebug.cl.cam.ac.uk2005-10-041-1/+2
| | | | | | | | | bind to. Previously the alloacted port was implicitly bound to the calling vcpu. 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-6/+7
| | | | | | | | | | 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.1674 (42a2cfb9WFgnh2K4Xr5ev3pSEASVbw)kaf24@firebug.cl.cam.ac.uk2005-06-051-2/+3
| | | | | | | Extend EVTCHNOP_alloc_unbound to allocate a specified port, if non-zero value is passed in. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1159.142.2 (41849fadYlUYMwSy6tcq8Y-Yi8NMZA)kaf24@freefall.cl.cam.ac.uk2004-10-311-15/+1
| | | | | | Clean up libxc by allowing direct use of Xen headers from userland: #include <xen/...>
* bitkeeper revision 1.1159.130.1 (41792c8bfIrnaq8cezNM7nbYpseVFQ)kaf24@freefall.cl.cam.ac.uk2004-10-221-3/+26
| | | | | Extend Xen's evtchn interface.
* bitkeeper revision 1.1159.2.1 (41139d17RLVEh5iKEyxO0hVWOtdS6Q)kaf24@scramble.cl.cam.ac.uk2004-08-061-1/+1
| | | | | Domain ids are 16 bits.
* bitkeeper revision 1.1026.1.8 (40e1b09foCFBM0EuIgrSA1uLJrWuzA)mjw@wray-m-3.hpl.hp.com2004-06-291-0/+131
Restructuring the python code and libs - first stage.