CP-14790: Restrict copy/clone of Windows-update VMs
CP-14790: Restrict copy/clone of Windows-update VMs

Do the Windows-update-feature licence check in Xapi_vm_clone.clone
before cloning/copying the discs, rather than in copy_vm_record
which is called afterwards.  This is safe because copy_vm_record is
not called from anywhere else and is not exposed in the .mli file,
and Xapi_vm_clone.clone is common code called by VM clone, copy,
snapshot and checkpoint.

We allow creation of snapshots and checkpoints without checking the
licence.

Signed-off-by: Thomas Sanders <c547603d2dd860735c4f0c043b1348f5c48c02f8@citrix.com>

Frezzle/xen-api,euanh/xen-api,euanh/xen-api,rafalmiel/xen-api,thomassa/xen-api,Frezzle/xen-api,rafalmiel/xen-api,thomassa/xen-api,jjd27/xen-api,rafalmiel/xen-api,euanh/xen-api,jjd27/xen-api,thomassa/xen-api,euanh/xen-api,thomassa/xen-api,thomassa/xen-api,euanh/xen-api,srowe/xen-api,jjd27/xen-api,thomassa/xen-api,srowe/xen-api,jjd27/xen-api,rafalmiel/xen-api,jjd27/xen-api,Frezzle/xen-api,jjd27/xen-api,srowe/xen-api,Frezzle/xen-api,srowe/xen-api,rafalmiel/xen-api,euanh/xen-api,rafalmiel/xen-api,Frezzle/xen-api,srowe/xen-api