hw/virtio/virtio-pci: Use pow2ceil() rather than hand-calculation
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Jul 2015 12:33:08 +0000 (13:33 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 7 Sep 2015 13:19:00 +0000 (14:19 +0100)
commit1d0148fe6c121b21476ac1ba5120f8990e7fe6cd
treeb397772e8c32a9332e3837e3c0dfb0aa42f0ffc3
parent9bff5d8135fc3f37932d4177727d293aa93ce79b
hw/virtio/virtio-pci: Use pow2ceil() rather than hand-calculation

Use the utility function pow2ceil() for rounding up to the next
largest power of 2, rather than inline calculation.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 1437741192-20955-3-git-send-email-peter.maydell@linaro.org
hw/virtio/virtio-pci.c