Skip to content

kvm-ioctls: Need size for IoIn/IoOut #371

Description

@rbradford

VcpuExit::IoIn(port, data) and VcpuExit::IoOut(port, data) flatten kvm_run.io.size * kvm_run.io.count into a single &[u8] of length size * count. Once the variant is constructed, the per-iteration io.size is no longer recoverable from the variant — only the product is. This makes it impossible for downstream VMMs to dispatch repeated PIO accesses (rep ins/outs, string IO) the way QEMU does, where each iteration is a single bus transaction at the same port with io.size bytes.

We need to break the API and change VcpuExit:IoIn/Out to embed the size

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