Re: [PATCH v2 1/2] rust: add BQL-enforcing Cell variant

2024-12-02 Thread Junjie Mao
Paolo Bonzini writes: > QEMU objects usually have their pointer shared with the "outside > world" very early in their lifetime, for example when they create their > MemoryRegions. Because at this point it is not valid anymore to > create a &mut reference to the device, individual parts of the

[PATCH v2 1/2] rust: add BQL-enforcing Cell variant

2024-12-02 Thread Paolo Bonzini
QEMU objects usually have their pointer shared with the "outside world" very early in their lifetime, for example when they create their MemoryRegions. Because at this point it is not valid anymore to create a &mut reference to the device, individual parts of the device struct must be made mutable