CA-118195: xenlight: set O_CLOEXEC when opening a file for libxl
CA-118195: xenlight: set O_CLOEXEC when opening a file for libxl

This fixes VM resume for HVM guests: it seems that when libxl forks qemu, qemu
inherits the suspend image fd that was opened by xenopsd, and keeps it open.
This makes it impossible for xenopsd to unmount and cleanup the mount that was
created for the suspend image, after the resume completes.

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

euanh/xenopsd,euanh/xenopsd,johnelse/xenopsd,euanh/xenopsd,simonjbeaumont/xenopsd,thomassa/xenopsd,thomassa/xenopsd,cheng--zhang/xenopsd,cheng--zhang/xenopsd,cheng--zhang/xenopsd,johnelse/xenopsd,djs55/xenopsd,simonjbeaumont/xenopsd,thomassa/xenopsd,koushikcgit/xenopsd,djs55/xenopsd-previous,koushikcgit/xenopsd,djs55/xenopsd-previous,koushikcgit/xenopsd,simonjbeaumont/xenopsd,johnelse/xenopsd,djs55/xenopsd-previous,djs55/xenopsd,djs55/xenopsd