Commit Graph

16 Commits

Author SHA1 Message Date
Marek Marczykowski
efbd9466f8 vchan/vm: implement libvchan_cleanup to release resources used by vchan link
In most cases after vchan close program terminates (or reexec itself to wait
for next connection), so cleanup isn't needed (not sure how about evtchn and
shared pages...).
But in case of stubdom it is needed to cleanup before waiting for new
connection - we can't reexec agent there.
2012-12-12 02:39:34 +01:00
Marek Marczykowski
eea3aa3b72 vchan: fix multiple server instances from single process
Use new u2mfn_fd for each ring_init call - each open fd to u2mfn is capable to
do only one u2mfn_alloc_kpage, so it can't be reused at the next ring_init.
2012-11-03 05:22:02 +01:00
Marek Marczykowski
01c9fdfe59 vchan: fix ASYNC_INIT macro 2012-06-04 14:59:11 +02:00
Marek Marczykowski
22207ddf75 vchan: introduce features macros
Use features macros (QREXEC_RING_V2 and ASYNC_INIT) instead of directly
depending on building environment. The macros are turned on (when required) in
libvchan.h based on target system.
2012-06-03 17:23:07 +02:00
Marek Marczykowski
f01b1b40ac vchan: fix xc_gnttab_open call 2012-06-03 17:23:07 +02:00
Marek Marczykowski
edf1ecfcfd vchan: remove unused variables 2012-06-03 17:23:07 +02:00
Marek Marczykowski
a2a21c0467 vchan: unify calls to xc_evtchn_close
Calls to this function can be the same on all systems and xen versions, so
simplify code.
2012-06-03 17:23:06 +02:00
Marek Marczykowski
87115716ba vchan/stubdom: remove temp hack (unneded now)
This was needed when stubdom have no write access to device/vchan.
2012-06-03 17:22:59 +02:00
Alexander Tereshkin
db324b270e libvchan_server_init() now does not wait for a client to connect. A server should wait for an incoming event and then call libvchan_server_handle_connected(). 2012-05-29 17:07:17 +04:00
Alexander Tereshkin
7ea3f4a792 vchan modifications for the Windows build. 2012-05-12 19:27:09 +04:00
Alexander Tereshkin
0f13ea2a84 Fixed a potential memory leak. 2012-05-12 18:32:36 +04:00
Alexander Tereshkin
85f926efaa Removed unnecessary access to /proc/u2mfn. 2012-05-12 18:22:16 +04:00
Marek Marczykowski
fda02f66b2 vchan: fix compile error 2012-02-27 14:58:46 +01:00
Marek Marczykowski
0c811322c5 dom0: vchan version for stubdom 2012-02-22 17:54:58 +01:00
Marek Marczykowski
3f310e5f3e Adopt vchan to xen-libs-4.1.0 API.
Add #ifdefs to support new and old API
2011-04-19 01:21:48 +02:00
Rafal Wojtczuk
f263aa6b7c Moved vchan and u2mfn code to core. 2011-03-08 12:24:47 +01:00