From: Muli Ben-Yehuda Subject: Re: [PATCH] check for KVM_GET/SET_REG ioctl failures Date: Tue, 6 Feb 2007 21:39:39 +0200 Message-ID: <20070206193939.GE4292@rhun.ibm.com> References: <20070206184639.GA4292@rhun.ibm.com> <45C8D680.3020704@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Anthony Liguori Return-path: Content-Disposition: inline In-Reply-To: <45C8D680.3020704-r/Jw6+rmf7HQT0dZR+AlfA@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 Tue, Feb 06, 2007 at 01:26:56PM -0600, Anthony Liguori wrote: > Please don't add exit()'s to a library, these are the sort of things > we should be trying to remove. I agree on general principles, but do we envision libkvm.a being used in anything outside qemu? in any case, if not exit(), what would you suggest? from a quick reading of the code, it doesn't appear feasible to go on when get or set regs fail. > In the very least, you should probably expect to see EINTRs. Hmm, which code path do you have in mind that can return EINTR here? Cheers, Muli ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642