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

Alex Williamson alex.williamson at redhat.com
Tue Jun 13 17:31:45 UTC 2023


On Tue, 13 Jun 2023 14:19:17 -0300
Jason Gunthorpe <jgg at nvidia.com> wrote:

> 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.

Yup, that's what I was assuming but was too lazy to prove it.  Thanks,

Alex



More information about the Intel-gfx mailing list