Commiting our first manpages.
Made changes requested by XenAPI admins and also added xe-network-create.ad
Made changes requested by Xen-API admins and also added xe-network-create.ad
Changed copyright message
Updated pages
CA-102259: Refactor xenstore-watching code out of xenopsd

This code is potentially reusable by other components, so this patch disentangles the xenopsd-specific stuff from the generic xenstore-watching stuff.

Summary of the refactoring, from the point of view of xenops_server_xen:

 * Split IntMap watches into IntSet watches (domains being watched, moved to xenstore_watch) and IntMap device_watches (list of devices watched per domain, kept)

 * Moved several functions into xenstore_watch's new WATCH_ACTIONS interface:
    - the code that does an action depending on which watch fired (to watch_fired, also including fire_event_on_vm and fire_event_on_device),
    - renamed all_domU_watches (to interesting_paths_for_domain),
    - the device-specific bits of remove_domU_watches (in domain_disappeared, which also inherited the content of cancel_domU_operations),
    - definition of unmanaged domain (in unmanaged_domain), and
    - definition of what we want to do each time we notice a domain running (in found_running_domain).

 * Moved to xenstore_watch's WatchXenstore module:
    - list_domains (verbatim)
    - domain_looks_different (verbatim),
    - list_different_domains (verbatim),
    - watch_xenstore, with the following changes:
       (a) rename {add,remove}_domU_watches to {add,remove}_watches_for_domain (but don't take the device-specific bit in remove_domU_watches)
       (b) call the functions listed above through WATCH_ACTIONS, and
    - the code that creates the watch_xenstore thread (to a function "create_watcher_thread") (verbatim).
CA-102259: make squeezed use the new xenstore-watching interface

The only change to observational semantics is that the following actions are no longer performed atomically:

-				  Mutex.execute m
-					  (fun () ->
-						  IntSet.iter (Hashtbl.remove cache) gone;
-						  IntSet.iter (fun domid -> try ignore(get_per_domain (xc, xs) domid) with _ -> ()) arrived
-					  ) in

Now, we execute (Hashtbl.remove cache) on each disappeared domain, separately, and get_per_domain on each new domain, separately.
CA-101580: rrdd: watch xenstore instead of polling

xcp-rrdd is interested in domains' data/meminfo_free values. In one example, polling xenstore for these values took about 30 seconds for 700 VMs. Instead of polling, use watches.
New pages from the meeting on 03/30/2013
Install xenstore_watch as an ocamlfindable package

This enables it to be used by the rrdd plugins, for which the code lives in a different repository.
CA-98944: Replaced potentially lots of db calls (one per VBD) by two big get_internal_where calls

Signed-off-by: Vincent Bernardoff <vincent.bernardoff@citrix.com>
CA-102753: Fix import handler to respect HTTP content-length

This fix stops gzip waiting for more input by closing the connection to it.
This also fixes the import_metadata handler by closing the connection when
done.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Resolve -Wall errors in xenguest_stubs.c, register local with OCaml GC

Resolved all -Wall errors, except implicit declarations of libxc code which
isn't exported by xenctrl.h. Called CAMLxparams on recently added
no_incr_generationid parameter, which had been omitted from the caml local
params init code.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Remove duplicate call to Random.self_init in Xapi.server_init

We called both Random.self_init and Random.full_init. Remove self_init in
favour of full_init.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Bump API schema number for augusta

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
CP-4042: Add VM.generation-id field to API

Add a new generation-id field to the the API. This field is a string, which
consists of two 64-bit integers concatenated together and separated by ":". We
pass this value directly into the platform map of both PV and HVM guests.
hvmloader takes care of updating the ACPI device. The generation-id will be
updated every time a VM is run "from a different configuration," i.e. when the
VM is imported, reverted from snapshot/checkpoint, cloned/copied, or
disaser-recovered. It is not the generation-id is not updated on normal VM
lifecycle operations, nor is it updated on HA failover.

See the spec here: http://go.microsoft.com/fwlink/?LinkId=260709

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
CP-4042: Refresh GenID on VM.import, VM.revert

These two operations, along with VM.clone (handled in the previous commit)
cover the rest of the cases specified by the VM Generation ID spec.
Specifically, refreshing on VM.import also covers DR and VM.import, and
VM.revert covers all of the snapshot revert cases (snapshot, snapshot with
quiese, and checkpoint).

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
CA-102753: Loosen requirement for content-length HTTP header on import.

There are times when we cannot know this ahead of time and so this should be an
optional argument.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-4148:Change the default behaviour for emulated monitor to "null"
Signed-off-by: Akshay Ramani <akshay.ramani@citrix.com>
CA-100559:User un-friendly error message displayed for server side status. precheck, when user tries to apply Rolson hotfix.

Signed-off-by: Akshay Ramani <akshay.ramani@citrix.com>