10 Sep, 2009

3 commits

  • This changes bus accesses to use high-level kvm_io_bus_read/kvm_io_bus_write
    functions. in_range now becomes unused so it is removed from device ops in
    favor of read/write callbacks performing range checks internally.

    This allows aliasing (mostly for in-kernel virtio), as well as better error
    handling by making it possible to pass errors up to userspace.

    Signed-off-by: Michael S. Tsirkin
    Signed-off-by: Avi Kivity

    Michael S. Tsirkin
     
  • slots_lock is taken everywhere when device ops are called.
    Document this as we will use this to rework locking for io.

    Signed-off-by: Michael S. Tsirkin
    Signed-off-by: Avi Kivity

    Michael S. Tsirkin
     
  • We modernize the io_device code so that we use container_of() instead of
    dev->private, and move the vtable to a separate ops structure
    (theoretically allows better caching for multiple instances of the same
    ops structure)

    Signed-off-by: Gregory Haskins
    Acked-by: Chris Wright
    Signed-off-by: Avi Kivity

    Gregory Haskins
     

20 Jul, 2008

1 commit


31 Jan, 2008

1 commit