|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| 
| 
| 
| | Similar to xenbus_read_integer, this function reads a xenstore path
and parses it as a uuid. See include/xenbus.h for details.
Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | s/DEBUG/printk/ in test_xenbus and all associated do_*_test+xenbus_dbg_message
and always print the IRQ and MFN used by the xenbus on init.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Tested-by: John McDermott <john.mcdermott@nrl.navy.mil>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | The latter is GPL which makes the whole of mini-os GPL rather than BSD
as intended. In tree users are all GPL or GPL-compatible but we should
fix this so that mini-os is BSD. Do so by using the same BSD
sys/queue.h as we use in libxl.
Tested with the builtin mini-os test app and qemu stubdomain, both of which
appear to still function as expected.
Move tools/libxl/external and the associated sed script to
tools/include/xen-external to allow more sensible access from mini-os.
Also add s/NULL/0/ in the sed script due to NULL not always being
defined in stubdom code when mini-os/wait.h is included.
As well as the obvious ABI changes there are a few API updates
associated with the change:
  - struct rw_semaphore.wait_list is unused
  - remove_waiter needs to take the wait_queue_head
The latter requires a qemu update, so there is also a QEMU_TAG
update in this changeset.
I sprinkled some extra-emacs local variables around the files I edited
which didn't have them.
I think this should be backported to the stable branches since
external users of mini-os may have been mislead into thinking they
could safely link mini-os against GPL-incompatible code.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com> | 
| | 
| 
| 
| 
| 
| 
| | When xenbus_switch_state has to retry the transaction which it just
created, it needs to recreate another one.  Clearing xbt triggers it.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | The return value of Xenbus routines xenbus_transaction_start(),
xenbus_printf(), xenbus_transaction_end(), etc.  is a pointer of error
message.  This pointer should be passed to free() to release the
allocated memory when it is no longer needed.
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | this patch implements dynamic connections and disconnections in
pcifront.
This feature is required to properly support pci hotplug, because when
no pci devices are assigned to a guest, xend will remove the pci
backend altogether.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | As part of making stubdom usable on NetBSD, it is necessary to
restructure the minios headers to avoid conflicts with NetBSD's
crossbuild toolchain.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org> | 
| | 
| 
| 
| 
| 
| 
| 
| | Implement xenbus_wait_for_state_change and xenbus_switch_state and
change the various frontends to use the two functions and do proper
error checking.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 
| | 
| 
| 
| | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com> | 
| | 
| 
| 
| | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> | 
| | 
| 
| 
| 
| 
| 
| 
| | This makes stubdom use the host's gcc instead of downloading/compiling
binutils+gcc.  That requires a bunch of changes and even uncovered a
few bugs, but saves a lot of time.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> | 
| | 
| 
| 
| | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> | 
| | 
| 
| 
| 
| 
| 
| | provide their own queue of events, because else we can not dispatch to
watchers running in parallel.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> | 
| | 
| 
| 
| 
| 
| 
| | xenstore expects to get the exact amount of data, without
the trailing \0.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | evtchn_bind_interdomain used to clear any already pending event before
binding a handler, because else the handler may be called before it is
ready. That however leads to missed events, which I had to workaround
for the HVM case.
This changes the semantics of bind_evtchn, and thus of all the
event channel binding functions (bind_virq, evtchn_alloc_unbound,
evtchn_bind_interdomain) into not unmasking the event itself, hence
letting the caller initialize properly before unmasking the port (e.g.
record the port number in an appropriate place).
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> | 
| | 
| 
| 
| | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> | 
| | 
| 
| 
| | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> | 
| | 
| 
| 
| | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> | 
| | 
| 
| 
| | Already fixed by 14432:f40079acf646. | 
| | 
| 
| 
| 
| | From: Samuel Thibault <samuel.thibault@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com> | 
| | 
| 
| 
| 
| | From: Jacob Gorm Hansen <jacobg@diku.dk>
Signed-off-by: Keir Fraser <keir@xensource.com> | 
| | 
| 
| 
| 
| 
| 
| 
| | - Fixed type of variables in hypervisor.c.
- Fixed not removing a waiter from watch_queue.
- Make wait_for_watch() global accessible.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com> | 
| | 
| 
| 
| | Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com> | 
| | 
| 
| 
| | Signed-off-by: Keir Fraser <keir@xensource.com> | 
| | 
| 
| 
| | Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com> | 
| | 
| 
| 
| | Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk> | 
| | 
| 
| 
| 
| | Signed-off-by: John D. Ramsdell <ramsdell@mitre.org>
Signed-off-by: Steven Smith <sos22@cam.ac.uk> | 
| | 
| 
| 
| 
| 
| 
| | void* pointer to handlers.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk> | 
| | 
| 
| 
| 
| | Signed-off-by: Steven Smith <sos22@cam.ac.uk> | 
| | 
| 
| 
| | Signed-off-by: Steven Smith <sos22@cam.ac.uk> | 
| | 
| 
| 
| | Signed-of-by: John D. Ramsdell <ramsdell@mitre.org> | 
|  | From: Grzegorz Milos <gm281@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com> |