On Fri, 17 Nov 2006 09:20:49 +0200
Avi Kivity <avi@xxxxxxxxxxxx> wrote:
It can't hurt. Is returning the number of msrs set in the return code (ala short write) acceptable, or do I need to make this a read/write ioctl?+out_vcpu:This function returns no indication of how many msrs it actually did set. Should it?
+ vcpu_put(vcpu);
+
+ return rc;
+}
I'd have thought that you'd just copy the number written into msrs->nmsrs via
msrs->nmsrs = num_entries;
like kvm_dev_ioctl_set_msrs() does. Dunno...