Re: [Qemu-devel] [PATCH] virtio-gpu: track and limit host memory allocations

2016-11-29 Thread David Airlie
- Original Message - > From: "Gerd Hoffmann" > To: qemu-devel@nongnu.org > Cc: "Gerd Hoffmann" , "Marc-André Lureau" > , "Dave Airlie" > , "李强" , "Michael S. Tsirkin" > > Sent: Tuesday, 29 November, 2016 10:42:36 PM > Subject: [PATCH] virtio-gpu: track and limit host memory allocation

[Qemu-devel] [PATCH] virtio-gpu: track and limit host memory allocations

2016-11-29 Thread Gerd Hoffmann
This patch makes virtio-gpu track host memory allocations for ressources and applies a limit (configurable 256M by default). When exceeding the limit virtio-gpu throws VIRTIO_GPU_RESP_ERR_OUT_OF_MEMORY errors (like it already does today when pixman image allocations fail). This patch covers 2d mo