In cloud-hypervisor/cloud-hypervisor#7428 (comment) we are having an intense discussion about KVMs immediate_exit:
|
kvm_run.immediate_exit = val; |
- The
immediate_exit field should be AtomicU8
- We somehow need to expose this nicely to higher-level APIs, possibly give higher-level APIs control over the memory ordering (but I'm not too sure on the latter)
It is unfortunate that bindgen can't really automate this and it needs manual adjustment. From looking at the KVM specification and code we know that this field is supposed to be used atomically.