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 -
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 -
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
20 Jul, 2008
1 commit
-
Modify member in_range() of structure kvm_io_device to pass length and the type
of the I/O (write or read).This modification allows to use kvm_io_device with coalesced MMIO.
Signed-off-by: Laurent Vivier
Signed-off-by: Avi Kivity
31 Jan, 2008
1 commit
-
Signed-off-by: Avi Kivity