[Spice-devel] [PATCH 01/17] Make global_res be an array of pointers and Res a pointer

Alexander Larsson alexl at redhat.com
Mon Sep 20 02:18:10 PDT 2010


On Tue, 2010-09-14 at 21:08 +0200, alexl at redhat.com wrote:
> From: Alexander Larsson <alexl at redhat.com>
> 
> Instead of allocating an array of DevRes we allocate each DevRes
> dynamically for each element.
> 
> Also make PDEV->Res be a pointer instead of copying the global pdev.
> This also drops the needto Sync it when the pdev is made inactive,
> as all pdevs share the same DevRes.
> 
> This way shared things like semaphores are really shared.
> ---

Got an ack from izik on irc. Pushed.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
       alexl at redhat.com            alexander.larsson at gmail.com 
He's a notorious flyboy Green Beret on the run. She's a sarcastic paranoid 
soap star from a family of eight older brothers. They fight crime! 



More information about the Spice-devel mailing list