qemu: allow getting < max typed parameters
qemu: allow getting < max typed parameters

Since all virTypedParameter APIs allow us to return the number
of slots we actually populated, we should allow the user to
call with nparams too small (without overrunning their array)
or too large (ignoring the tail of the array that we can't fill),
rather than requiring that they get things exactly right.

Making this change will make it easier for a future patch to
introduce VIR_TYPED_PARAM_STRING, with filtering in libvirt.c
rather than in every single driver, since users already have
to be prepared for *nparams to be smaller on exit than on entry.

* src/qemu/qemu_driver.c (qemuDomainGetBlkioParameters)
(qemuDomainGetMemoryParameters): Allow variable nparams on entry.
(qemuGetSchedulerParametersFlags): Drop redundant check.
(qemudDomainBlockStats, qemudDomainBlockStatsFlags): Rename...
(qemuDomainBlockStats, qemuDomainBlockStatsFlags): ...to this.
Don't return unavailable stats.

VenkatDatta/libvirt,leilihh/libvirt,elmarco/libvirt,taget/libvirt,novel/fbsd-libvirt,datto/libvirt,iam-TJ/libvirt,libvirt/libvirt,shugaoye/libvirt,rmarwaha/libvirt,nertpinx/libvirt,agx/libvirt,danwent/libvirt-ovs,novel/fbsd-libvirt,warewolf/libvirt,zippy2/libvirt,eskultety/libvirt,jeckersb/libvirt,zhlcindy/libvirt-1.1.4-maintain,jfehlig/libvirt,foomango/libvirt,trainstack/libvirt,jeckersb/libvirt,siboulet/libvirt-openvz,agx/libvirt,fabianfreyer/libvirt,iam-TJ/libvirt,nertpinx/libvirt,novel/fbsd-libvirt,shugaoye/libvirt,leilihh/libvirt,novel/fbsd-libvirt,nertpinx/libvirt,shugaoye/libvirt,trainstack/libvirt,taget/libvirt,rlaager/libvirt,iam-TJ/libvirt,rlaager/libvirt,warewolf/libvirt,jeckersb/libvirt,rmarwaha/libvirt1,taget/libvirt,emaste/libvirt,eskultety/libvirt,elmarco/libvirt,crobinso/libvirt,novel/fbsd-libvirt,warewolf/libvirt,nertpinx/libvirt,jfehlig/libvirt,zhlcindy/libvirt-1.1.4-maintain,libvirt/libvirt,cbosdo/libvirt,datto/libvirt,dumbbell/libvirt,bjzhang/libvirt,jardasgit/libvirt,olafhering/libvirt,wiedi/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,zhlcindy/libvirt-1.1.4-maintain,shugaoye/libvirt,crobinso/libvirt,datto/libvirt,jeckersb/libvirt,eskultety/libvirt,rmarwaha/libvirt,foomango/libvirt,emaste/libvirt,siboulet/libvirt-openvz,fabianfreyer/libvirt,jardasgit/libvirt,siboulet/libvirt-openvz,fabianfreyer/libvirt,olafhering/libvirt,emaste/libvirt,wiedi/libvirt,dumbbell/libvirt,zhlcindy/libvirt-1.1.4-maintain,andreabolognani/libvirt,emaste/libvirt,leilihh/libvirt,rmarwaha/libvirt,trainstack/libvirt,usc-isi/libvirt,dumbbell/libvirt,VenkatDatta/libvirt,dumbbell/libvirt,novel/fbsd-libvirt,emaste/libvirt,cbosdo/libvirt,trainstack/libvirt,rmarwaha/libvirt,danwent/libvirt-ovs,novel/fbsd-libvirt,danwent/libvirt-ovs,andreabolognani/libvirt,olafhering/libvirt,iam-TJ/libvirt,zippy2/libvirt,shugaoye/libvirt,wiedi/libvirt,rlaager/libvirt,usc-isi/libvirt,trainstack/libvirt,trainstack/libvirt,eskultety/libvirt,andreabolognani/libvirt,agx/libvirt,iam-TJ/libvirt,usc-isi/libvirt,crobinso/libvirt,VenkatDatta/libvirt,crobinso/libvirt,datto/libvirt,taget/libvirt,zhlcindy/libvirt-1.1.4-maintain,wiedi/libvirt,usc-isi/libvirt,VenkatDatta/libvirt,bjzhang/libvirt,nertpinx/libvirt,datto/libvirt,eskultety/libvirt,novel/fbsd-libvirt,dumbbell/libvirt,zippy2/libvirt,rmarwaha/libvirt1,jeckersb/libvirt,leilihh/libvirt,foomango/libvirt,trainstack/libvirt,fabianfreyer/libvirt,rmarwaha/libvirt1,cbosdo/libvirt,wiedi/libvirt,rmarwaha/libvirt,rmarwaha/libvirt1,jeckersb/libvirt,elmarco/libvirt,jfehlig/libvirt,rlaager/libvirt,leilihh/libvirt,rlaager/libvirt,olafhering/libvirt,cbosdo/libvirt,fabianfreyer/libvirt,warewolf/libvirt,leilihh/libvirt,jfehlig/libvirt,libvirt/libvirt,warewolf/libvirt,iam-TJ/libvirt,warewolf/libvirt,wiedi/libvirt,taget/libvirt,cbosdo/libvirt,emaste/libvirt,rmarwaha/libvirt1,novel/fbsd-libvirt,jardasgit/libvirt,andreabolognani/libvirt,siboulet/libvirt-openvz,iam-TJ/libvirt,andreabolognani/libvirt,zippy2/libvirt,rmarwaha/libvirt,foomango/libvirt,danwent/libvirt-ovs,bjzhang/libvirt,agx/libvirt,jeckersb/libvirt,foomango/libvirt,usc-isi/libvirt,warewolf/libvirt,emaste/libvirt,danwent/libvirt-ovs,jardasgit/libvirt,elmarco/libvirt,libvirt/libvirt,bjzhang/libvirt,agx/libvirt,elmarco/libvirt,rmarwaha/libvirt1,bjzhang/libvirt,wiedi/libvirt,siboulet/libvirt-openvz,dumbbell/libvirt