From: Andrew Morton Subject: Re: [PATCH 3/3] KVM: Expose MSRs to userspace Date: Fri, 17 Nov 2006 00:15:10 -0800 Message-ID: <20061117001510.58f01b3c.akpm@osdl.org> References: <455CA70C.9060307@qumranet.com> <20061116180422.0CC9325015E@cleopatra.q> <20061116170214.b7785bd0.akpm@osdl.org> <455D62D1.6040203@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, uril-atKUWr5tajBWk0Htik3J/w@public.gmane.org Return-path: To: Avi Kivity In-Reply-To: <455D62D1.6040203-atKUWr5tajBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Fri, 17 Nov 2006 09:20:49 +0200 Avi Kivity 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