xenopsd: Support driver domains for PV guests

The case of HVM guests with emulated QEMU networks devices is not yet
handled.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Allow setting the VIF backend for a network

If, on a network, other_config:backend_vm is set to the UUID of a VM, this VM is
used for the VIF backends (netback) of any VIFs on the network.

This is useful for internal networks (only), since the key is set on a network
rather than on a PIF.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CP-2190 for PR-1221: SR alerts for hosts can be configured on the SR now.

To reduce the effort of configuration, whereas previously it was
necessary to configure throughput alerts for an SR on each host
individually, now it is possible to set up a per-host SR throughput
alert for each host connected to an SR by writing to the SR's
other-config:perfmon key.
CA-101788: increase xenconsoled default number of fds in xenservices from 1024 to 4096

xenconsoled is currently started in xenservices using the default ulimit -n
value 1024. This aligns well with the limit of 1024 fds that the xenconsoled
select() can handle. Each vm console will tipically use 3 fds (4 if logging
is enabled), limiting the number of consoles in dom0 to a couple of hundred.

The new upstream xenconsoled uses poll() instead of select() and can handle
>1024 fds, as long as its ulimit -n value is properly set up in xenservices.
Increasing this value to 4096 will allow us to have 1000 vm consoles in dom0,
which is more aligned to other values.

Signed-off-by: Marcus Granado <marcus.granado@citrix.com>
Remove some obsolete FIST points

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #1115 from mcclurmc/cp4273-hotfix-apply-feature

CP-4273: add Hotfix_apply to keys_of_features map
Merge pull request #1111 from mg12/CA-101788

CA-101788: increase xenconsoled default number of fds in xenservices fro...
Merge pull request #1036 from jeromemaloberti/CP-2190-master

CP-2190 for PR-1221: SR alerts for hosts can be configured on the SR now.
Merge pull request #1002 from robhoes/p2p-master

Allow setting the VIF backend for a network
CA-98096: Remove old comments.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
CA-98096: pif-reconfigure-ip exceptions on a slave are ignored.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
CP-4431: Remove VMPR functions

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CP-4431: Remove VMPP metadata on upgrade

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #1118 from robhoes/fist

Remove some obsolete FIST points
CA-101922: Properly close the nbd connection

The recent change to default http connections to v1.1 and
keep-alive=true was probably the cause of failures in storage
migration. This patch reverts the connection in question to
the previous behaviour

It's likely what happened was that xapi kept the connection
open after the fd was handed off to tapdisk and consumed
the requests coming in from the source.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Revert patch 91e03ab1a0718c6caf5a18bfc25c99d374dcc337

It broke the build.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #1122 from jonludlam/CA-101922

CA-101922: Properly close the nbd connection
Merge pull request #1123 from jonludlam/fix-build

Revert patch 91e03ab1a0718c6caf5a18bfc25c99d374dcc337
CP-4322: Remove license check from VM lifecycle operations

Signed-off-by: John Else <john.else@citrix.com>
CP-4273: Remove Hotfix_apply licensing feature

It will instead be added to the list of additional features defined in
v6d.

Signed-off-by: John Else <john.else@citrix.com>