qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] virtio device error reporting best practice?
@ 2014-03-17  6:02 Dave Airlie
  2014-03-17 14:28 ` Laszlo Ersek
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Dave Airlie @ 2014-03-17  6:02 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

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,

(b) I can easily report in an event queue and the guest kernel can in
theory blow away the offenders, this is how GL works with some
extensions,

For (a) I can expect a response from every command I put into the main
GPU control queue, the response should always be no error, but in some
cases it will be because the guest hit some host resource error, or
asked for something insane, (guest kernel drivers would be broken in
most of these cases).

Alternately I can use the separate event queue to send async errors
when the guest does something bad,

I'm also considering adding some sort of flag in config space saying
the device needs a reset before it will continue doing anything,

The main reason I'm considering this stuff is for security reasons if
the guest asks for something really illegal or crazy what should the
expected behaviour of the host be? (at least secure I know that).

Dave.

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2014-03-27  0:54 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-17  6:02 [Qemu-devel] virtio device error reporting best practice? Dave Airlie
2014-03-17 14:28 ` Laszlo Ersek
2014-03-17 14:40   ` Peter Maydell
2014-03-17 14:49     ` Laszlo Ersek
2014-03-17 14:54       ` Peter Maydell
2014-03-17 14:57       ` Gerd Hoffmann
2014-03-17 19:05       ` Andreas Färber
2014-03-18 12:45       ` Kevin Wolf
2014-03-17 14:57     ` Richard W.M. Jones
2014-03-17 14:59       ` Richard W.M. Jones
2014-03-26 12:49   ` Stefan Hajnoczi
2014-03-17 14:50 ` Gerd Hoffmann
2014-03-19  0:34 ` Rusty Russell
2014-03-19  8:12   ` Markus Armbruster
2014-03-20  3:40     ` Rusty Russell
2014-03-20  6:39       ` Markus Armbruster
2014-03-20 12:53         ` Peter Maydell
2014-03-26 14:34           ` Markus Armbruster
2014-03-27  0:54             ` Venkatesh Srinivas
2014-03-20  6:51   ` Michael S. Tsirkin
2014-03-21  9:44     ` Yan Vugenfirer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).