17 Nov 09:15
Re: [PATCH 3/3] KVM: Expose MSRs to userspace
From: Andrew Morton <akpm@...>
Subject: Re: [PATCH 3/3] KVM: Expose MSRs to userspace
Newsgroups: gmane.comp.emulators.kvm.devel, gmane.linux.kernel
Date: 2006-11-17 08:15:10 GMT
Subject: Re: [PATCH 3/3] KVM: Expose MSRs to userspace
Newsgroups: gmane.comp.emulators.kvm.devel, gmane.linux.kernel
Date: 2006-11-17 08:15:10 GMT
On Fri, 17 Nov 2006 09:20:49 +0200 Avi Kivity <avi@...> wrote: > >> +out_vcpu: > >> + vcpu_put(vcpu); > >> + > >> + return rc; > >> +} > >> > > > > This function returns no indication of how many msrs it actually did set. > > Should it? > > > > 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? > 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... ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
RSS Feed