From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPYsV-0003q2-LK for qemu-devel@nongnu.org; Mon, 17 Mar 2014 10:51:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPYsO-0006sz-6t for qemu-devel@nongnu.org; Mon, 17 Mar 2014 10:50:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPYsN-0006sk-Kd for qemu-devel@nongnu.org; Mon, 17 Mar 2014 10:50:52 -0400 Message-ID: <1395067839.5663.16.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Mon, 17 Mar 2014 15:50:39 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] virtio device error reporting best practice? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dave Airlie Cc: "qemu-devel@nongnu.org" On Mo, 2014-03-17 at 16:02 +1000, Dave Airlie wrote: > So I'm looking at how best to do virtio gpu device error reporting, > and how to deal with illegal stuff, > > I've two levels of errors I want to support, > > a) unrecoverable or bad guest kernel programming errors, > > b) per 3D context errors from the renderer backend, What you find in modern real hardware (xhci for example) and which would also make sense for virtio is: * stick an error message into a event queue (for non-fatal errors), which would be a good fit for (b) * set a bit in a error status register, maybe raise IRQ, stop processing until reset (for fatal errors, i.e. your (a) case). such a register can live in config space for virtio. cheers, Gerd