[SeaBIOS] [PATCH] virtio: clean up memory barrier usage

Kevin O'Connor kevin at koconnor.net
Tue May 25 05:00:33 CEST 2010


On Mon, May 24, 2010 at 01:12:35PM +0300, Gleb Natapov wrote:
> On Mon, May 24, 2010 at 01:01:34PM +0300, Michael S. Tsirkin wrote:
> > Another reason is that it makes it easier to audit code comparing
> > it with linux virtio guest.
> > 
> If you know that on x86 smp_(w|r)mb() are just barrier() it's still
> easy. To be honest though this is the reason I left
> virt_to_phys()/phys_to_virt(), so Kevin this is your call.

I don't object to these wrappers if it's to help keep code in synch.

-Kevin



More information about the SeaBIOS mailing list