On Mi, 2013-11-20 at 15:52 +1000, Dave Airlie wrote:
> From: Dave Airlie <airl...@redhat.com>
> 
> This is the basic virtio-gpu which is
> 
> multi-head capable,
> ARGB cursor support,
> unaccelerated.

I'd like to see an overview on the design of the virtual hardware.
What is the purpose of the virtio commands?
What are the steps a guest is supposed to do to get something displayed
on the screen?

> +    res = calloc(1, sizeof(struct virtgpu_simple_resource));
> +    if (!res)
> +     return;

qemu uses glib memory allocation functions (i.e. g_malloc0 for this
one).  Also no need to check for NULL.

cheers,
  Gerd



Reply via email to