]> xenbits.xensource.com Git - seabios.git/commit
virtio: Simplify vring alignment code
authorKevin O'Connor <kevin@koconnor.net>
Tue, 22 Sep 2015 15:46:48 +0000 (11:46 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 15 Oct 2015 14:52:13 +0000 (10:52 -0400)
commit1dcf02b06797309676a2915454d1388b8ef0434d
tree9c1298ea8f5884bbdb6fa9fea178f1b0a77e35a8
parent5ba22ab9f56fd1c01fc6cdd3f934e7323894e0f8
virtio: Simplify vring alignment code

Don't do phys_to_virt(virt_to_phys(vaddr)) for page alignment - page
alignment can be determined directly from the virtual address.

Use the ALIGN() macro to make the code more readable.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/hw/virtio-ring.h