[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 0/3] virtio-balloon: stats vq fixes
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 0/3] virtio-balloon: stats vq fixes |
Date: |
Wed, 7 Sep 2016 14:02:15 -0400 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
On Wed, Sep 07, 2016 at 05:20:46PM +0200, Ladi Prosek wrote:
> It is not
> necessary to check balloon_stats_supported. Pushing buffers without
> negotiating stats support would be a driver bug. The common codepath
> does not check it either.
This part made me nervous because QEMU is never allowed to trust the
guest - QEMU must never crash or expose information to the guest.
However this seems okay since virtqueue_rewind() on an unused virtqueue
is safe. It will return false so we'll never actually try to access a
virtqueue that hasn't been initialized.
Stefan
signature.asc
Description: PGP signature