From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Gregory Haskins" Subject: Re: [PATCH 3/5] KVM: Adds ability to preepmt an executing VCPU Date: Thu, 26 Apr 2007 10:40:13 -0400 Message-ID: <46308175.BA47.005A.0@novell.com> References: <20070420030905.12408.40403.stgit@ghaskins-t60p.haskins.net> <20070420030921.12408.97321.stgit@ghaskins-t60p.haskins.net> <462B21C7.2060007@qumranet.com> <462C9B94.BA47.005A.0@novell.com> <462DCB3E.6070802@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 To: "Avi Kivity" Return-path: In-Reply-To: <462DCB3E.6070802-atKUWr5tajBWk0Htik3J/w@public.gmane.org> Content-Disposition: inline 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, Apr 24, 2007 at 5:17 AM, in message <462DCB3E.6070802-atKUWr5tajBWk0Htik3J/w@public.gmane.org>, Avi Kivity wrote: > Gregory Haskins wrote: > >> Are there any other userspace sleeps that we need to handle (e.g. maybe > AIO)? If so, one way to handle this is to mark the exportable state of the > VCPU such that userspace can tell if interrupts are pending. However, I'm > not really sure if this is the best way to do it or if it can be easily done > in a way that doesn't break ABI compatiblity. Please advise. >> > > The ABI can be extended by adding fields to struct kvm_vcpu_run and an > extension check to indicate their availability. Cool. I was not aware of that capability. In that case, I think the reasonable thing to do is just that (extend to allow "pending" status). If the new userspace (which will implicitly understand the presence of an in-kernel APIC) needs to know, it can be coded to check this state. -Greg ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/