RE: [PATCH v2 0/2] virtio-balloon: some improvements

2018-07-27 Thread Wang, Wei W
On Friday, July 27, 2018 10:06 PM, Michael S. Tsirkin wrote: > On Fri, Jul 27, 2018 at 05:24:53PM +0800, Wei Wang wrote: > > This series is split from the "Virtio-balloon: support free page > > reporting" series to make some improvements. > > > > v1->v2 ChangeLog: > > - register the shrinker when V

[PATCH] drm: qxl: Fix NULL pointer dereference at qxl_alloc_client_monitors_config

2018-07-27 Thread Anton Vasilyev
If qxl_alloc_client_monitors_config() fails to allocate client_monitors_config then NULL pointer dereference occurs in function qxl_display_copy_rom_client_monitors_config() after qxl_alloc_client_monitors_config() call. The patch adds return error from qxl_alloc_client_monitors_config() and addit

Re: [PATCH v2 0/2] virtio-balloon: some improvements

2018-07-27 Thread Michael S. Tsirkin
On Fri, Jul 27, 2018 at 05:24:53PM +0800, Wei Wang wrote: > This series is split from the "Virtio-balloon: support free page > reporting" series to make some improvements. > > v1->v2 ChangeLog: > - register the shrinker when VIRTIO_BALLOON_F_DEFLATE_ON_OOM is negotiated. > > Wei Wang (2): > vir

Re: net-next boot error

2018-07-27 Thread Michael S. Tsirkin
On Thu, Jul 26, 2018 at 10:17:48AM -0400, Steven Rostedt wrote: > > [ Added Thomas Gleixner ] > > > On Thu, 26 Jul 2018 11:34:39 +0200 > Dmitry Vyukov wrote: > > > On Thu, Jul 26, 2018 at 11:29 AM, syzbot > > wrote: > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEA

[PATCH] drm: qxl: Fix error handling at qxl_device_init

2018-07-27 Thread Anton Vasilyev
If qxl_device_init fails on creating resources and does not report it, then qxl module will catch null pointer exception on remove, or on probe's error path. The patch adds error path with resources release into qxl_device_init. Found by Linux Driver Verification project (linuxtesting.org). Sign

Re: [RFC 0/4] Virtio uses DMA API for all devices

2018-07-27 Thread Michael S. Tsirkin
On Wed, Jul 25, 2018 at 08:56:23AM +0530, Anshuman Khandual wrote: > Results with and without the patches are similar. Thanks! And another thing to try is virtio-net with a fast NIC backend (40G and up). Unfortunately at this point loopback tests stress the host scheduler too much. -- MST __

Re: [RFC 0/4] Virtio uses DMA API for all devices

2018-07-27 Thread Anshuman Khandual
On 07/27/2018 03:28 PM, Will Deacon wrote: > Hi Anshuman, > > On Fri, Jul 20, 2018 at 09:29:37AM +0530, Anshuman Khandual wrote: >> This patch series is the follow up on the discussions we had before about >> the RFC titled [RFC,V2] virtio: Add platform specific DMA API translation >> for virito d

Re: [RFC 0/4] Virtio uses DMA API for all devices

2018-07-27 Thread Will Deacon
Hi Anshuman, On Fri, Jul 20, 2018 at 09:29:37AM +0530, Anshuman Khandual wrote: > This patch series is the follow up on the discussions we had before about > the RFC titled [RFC,V2] virtio: Add platform specific DMA API translation > for virito devices (https://patchwork.kernel.org/patch/10417371/

[PATCH v2 2/2] virtio_balloon: replace oom notifier with shrinker

2018-07-27 Thread Wei Wang
The OOM notifier is getting deprecated to use for the reasons mentioned here by Michal Hocko: https://lkml.org/lkml/2018/7/12/314 This patch replaces the virtio-balloon oom notifier with a shrinker to release balloon pages on memory pressure. In addition, the bug in the replaced virtballoon_oom_n

[PATCH v2 1/2] virtio-balloon: remove BUG() in init_vqs

2018-07-27 Thread Wei Wang
It's a bit overkill to use BUG when failing to add an entry to the stats_vq in init_vqs. So remove it and just return the error to the caller to bail out nicely. Signed-off-by: Wei Wang Cc: Michael S. Tsirkin --- drivers/virtio/virtio_balloon.c | 10 +++--- 1 file changed, 7 insertions(+),

[PATCH v2 0/2] virtio-balloon: some improvements

2018-07-27 Thread Wei Wang
This series is split from the "Virtio-balloon: support free page reporting" series to make some improvements. v1->v2 ChangeLog: - register the shrinker when VIRTIO_BALLOON_F_DEFLATE_ON_OOM is negotiated. Wei Wang (2): virtio-balloon: remove BUG() in init_vqs virtio_balloon: replace oom notifi