[Intel-gfx] [PATCH v12 07/24] vfio: Block device access via device fd until device is opened

Jason Gunthorpe jgg at nvidia.com
Tue Jun 13 17:19:17 UTC 2023


On Tue, Jun 13, 2023 at 08:16:47AM -0600, Alex Williamson wrote:

> > Not quite get why bit field is going to be incompatible with smp
> > lockless operations. Could you elaborate a bit? And should I define
> > the access_granted as u8 or "u8:1"?
> 
> Perhaps FUD on my part, but load-acquire type operations have specific
> semantics and it's not clear to me that they interest with compiler
> generated bit operations.  Thanks,

They won't compile if you target bit ops, you can't take the address
of a bitfield.

Jason


More information about the Intel-gfx mailing list