libxl: Set def->vcpus after successfully modifying live vcpu count
libxl: Set def->vcpus after successfully modifying live vcpu count

def->vcpus was never updated after successfully changing the live
vcpu count of a domain. Subsequent queries for vcpu info would
return incorrect results.  E.g.:

virsh vcpucount test
maximum      config         4
maximum      live           4
current      config         4
current      live           4

virsh setvcpus test 2

virsh vcpucount test
maximum      config         4
maximum      live           4
current      config         4
current      live           4

After patch, live current config is reported correctly:

virsh vcpucount test
maximum      config         4
maximum      live           4
current      config         4
current      live           2

While fixing this, noticed that the live config was not saved
to cfg->stateDir via virDomainSaveStatus. Save the live config
and change error handling of virDomainSave{Config,Status} to
log a message via VIR_WARN, instead of failing the entire
DomainSetVcpusFlags operation.

Signed-off-by: Jim Fehlig <39929b5b86d72d51fceac59b52303e3fe8a3083e@suse.com>

VenkatDatta/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,agx/libvirt,eskultety/libvirt,zippy2/libvirt,jardasgit/libvirt,andreabolognani/libvirt,rlaager/libvirt,eskultety/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,agx/libvirt,zippy2/libvirt,nertpinx/libvirt,libvirt/libvirt,andreabolognani/libvirt,zippy2/libvirt,datto/libvirt,andreabolognani/libvirt,agx/libvirt,crobinso/libvirt,crobinso/libvirt,datto/libvirt,nertpinx/libvirt,jardasgit/libvirt,datto/libvirt,olafhering/libvirt,rlaager/libvirt,libvirt/libvirt,taget/libvirt,taget/libvirt,olafhering/libvirt,crobinso/libvirt,jfehlig/libvirt,olafhering/libvirt,rlaager/libvirt,jfehlig/libvirt,datto/libvirt,andreabolognani/libvirt,nertpinx/libvirt,zippy2/libvirt,jardasgit/libvirt,nertpinx/libvirt,rlaager/libvirt,VenkatDatta/libvirt,rlaager/libvirt,taget/libvirt,jfehlig/libvirt,libvirt/libvirt,eskultety/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,datto/libvirt,eskultety/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,crobinso/libvirt,andreabolognani/libvirt,taget/libvirt,taget/libvirt,olafhering/libvirt,fabianfreyer/libvirt,agx/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,eskultety/libvirt,agx/libvirt,libvirt/libvirt