Skip to content

x86: immediate_exit in KVM_RUN should probably be AtomicU8 #357

Description

@phip1611

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions