CA-164806: Upgrade allow-gpu-passthrough recommendations
CA-164806: Upgrade allow-gpu-passthrough recommendations

The patch adds an upgrade rule that modifies the VM.recommendations field when
upgrading from pre-Cream to Cream. For all VMs that have allow-gpu-passthrough
set to 0, the rule sets allow-gpu-passthrough to 1 and additionally adds
allow-vgpu and sets this to 0. The assumption is that the only pre-Cream VMs
that have allow-gpu-passthrough = 0 are HVM Linux VMs.

The reason for doing this is that HVM Linux guests gained the ability to use
GPU passthrough in Cream, but this won't be automatically reflected in the
VM.recommendations (used by e.g. XenCenter to determine whether the
functionality is allowed). For the future, we should find a better way of
upgrading this field.

Signed-off-by: Rob Hoes <8783b3376fb07d39edffc8d7da68a6de3874a7e6@citrix.com>

Frezzle/xen-api,simonjbeaumont/xen-api,guard163/xen-api,simonjbeaumont/xen-api,salvocambria/xen-api,rafalmiel/xen-api,agimofcarmen/xen-api,thomassa/xen-api,anoobs/xen-api,djs55/xen-api,euanh/xen-api,simonjbeaumont/xen-api,Frezzle/xen-api,rafalmiel/xen-api,rafalmiel/xen-api,anoobs/xen-api,thomassa/xen-api,Frezzle/xen-api,agimofcarmen/xen-api,vasilenkomike/xen-api,salvocambria/xen-api,agimofcarmen/xen-api,robertbreker/xen-api,euanh/xen-api,djs55/xen-api,robertbreker/xen-api,srowe/xen-api,jjd27/xen-api,anoobs/xen-api,jjd27/xen-api,robertbreker/xen-api,agimofcarmen/xen-api,robertbreker/xen-api,djs55/xen-api,koushikcgit/xen-api,agimofcarmen/xen-api,simonjbeaumont/xen-api,srowe/xen-api,vasilenkomike/xen-api,robertbreker/xen-api,vasilenkomike/xen-api,Frezzle/xen-api,rafalmiel/xen-api,jjd27/xen-api,simonjbeaumont/xen-api,guard163/xen-api,koushikcgit/xen-api,jjd27/xen-api,Frezzle/xen-api,vasilenkomike/xen-api,euanh/xen-api,euanh/xen-api,guard163/xen-api,vasilenkomike/xen-api,salvocambria/xen-api,anoobs/xen-api,srowe/xen-api,koushikcgit/xen-api,rafalmiel/xen-api,guard163/xen-api,srowe/xen-api,koushikcgit/xen-api,anoobs/xen-api,koushikcgit/xen-api,djs55/xen-api,anoobs/xen-api,srowe/xen-api,salvocambria/xen-api,thomassa/xen-api,euanh/xen-api,agimofcarmen/xen-api,thomassa/xen-api,koushikcgit/xen-api,vasilenkomike/xen-api,euanh/xen-api,simonjbeaumont/xen-api,djs55/xen-api,thomassa/xen-api,guard163/xen-api,rafalmiel/xen-api,thomassa/xen-api,jjd27/xen-api,djs55/xen-api,robertbreker/xen-api,salvocambria/xen-api,jjd27/xen-api,guard163/xen-api,salvocambria/xen-api