12 Jul, 2018
1 commit
-
mdev_access() calls mbochs_get_page() with mdev_state->ops_lock held,
while mbochs_get_page() locks the mutex by itself.
It leads to unavoidable deadlock.Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov
Signed-off-by: Alex Williamson
05 Jul, 2018
1 commit
-
convert mbochs_region_vm_fault and mbochs_dmabuf_vm_fault
to return vm_fault_t type.Signed-off-by: Souptick Joarder
Signed-off-by: Alex Williamson
26 Jun, 2018
2 commits
-
There is no default implementation for dma_buf_ops->unmap.
So add a function unmapping the page, otherwise we'll leak them.Signed-off-by: Gerd Hoffmann
Signed-off-by: Alex Williamson -
Atomic mapping interface for dmabufs will be removed.
Signed-off-by: Gerd Hoffmann
Signed-off-by: Alex Williamson
09 Jun, 2018
3 commits
-
Display device, demo-ing the vfio dmabuf display interface
(VFIO_GFX_PLANE_TYPE_DMABUF). Compatible enough to qemu stdvga
that bochs-drm.ko can be used as guest driver.Signed-off-by: Gerd Hoffmann
Signed-off-by: Alex Williamson -
Guest fbdev driver for CONFIG_SAMPLE_VFIO_MDEV_MDPY.
Signed-off-by: Gerd Hoffmann
Signed-off-by: Alex Williamson -
Simple framebuffer display, demo-ing the vfio region display interface
(VFIO_GFX_PLANE_TYPE_REGION).Signed-off-by: Gerd Hoffmann
Signed-off-by: Alex Williamson
23 Mar, 2018
1 commit
-
When FIFO mode is enabled, the receive data available interrupt
(UART_IIR_RDI in code) should be triggered when the number of data
in FIFO is equal or larger than interrupt trigger level.This patch changes the trigger level check to ensure multiple bytes
received from upper layer can trigger RDI interrupt correctly.Cc: Joey Zheng
Signed-off-by: Shunyong Yang
Reviewed by: Kirti Wankhede
Signed-off-by: Alex Williamson
03 Oct, 2017
1 commit
-
Make this const as it is only passed to a const argument of the function
mdev_register_device. Make it static as it is not referenced in any
other file.Structure found using Coccinelle and changes done by hand.
Signed-off-by: Bhumika Goyal
Signed-off-by: Alex Williamson
12 Jan, 2017
3 commits
-
We set info.count to 1 in mtty_get_irq_info() so static checkers
complain that, "Why do we have impossible conditions?" The answer is
that it seems to be left over dead code that can be safely removed.Signed-off-by: Dan Carpenter
Reviewed-by: Kirti Wankhede
Signed-off-by: Alex Williamson -
This is a sample driver for documentation so the impact is probably
pretty low. But we should check that bar_index is valid so we
don't write beyond the end of the mdev_state->region_info[] array.Fixes: 9d1a546c53b4 ("docs: Sample driver to demonstrate how to use Mediated device framework.")
Signed-off-by: Dan Carpenter
Reviewed-by: Kirti Wankhede
Signed-off-by: Alex Williamson -
The copy_to_user() function returns the number of bytes which it wasn't
able to copy but we want to return a negative error code.Fixes: 9d1a546c53b4 ("docs: Sample driver to demonstrate how to use Mediated device framework.")
Signed-off-by: Dan Carpenter
Reviewed-by: Kirti Wankhede
Signed-off-by: Alex Williamson
04 Jan, 2017
1 commit
-
This is just sample code. We forget to set the error codes in a couple
places.Signed-off-by: Dan Carpenter
Reported-by: Alexey Khoroshilov
Signed-off-by: Alex Williamson
30 Dec, 2016
4 commits
-
Abstract access to mdev_device so that we can define which interfaces
are public rather than relying on comments in the structure.Cc: Zhenyu Wang
Cc: Zhi Wang
Signed-off-by: Alex Williamson
Reviewed-by: Jike Song
Reviewed by: Kirti Wankhede -
Rather than hoping for good behavior by marking some elements
internal, enforce it by making the entire structure private and
creating an accessor function for the one useful external field.Cc: Zhenyu Wang
Cc: Zhi Wang
Cc: Jike Song
Signed-off-by: Alex Williamson
Reviewed by: Kirti Wankhede -
Add an mdev_ prefix so we're not poluting the namespace so much.
Cc: Zhenyu Wang
Cc: Zhi Wang
Cc: Jike Song
Signed-off-by: Alex Williamson
Reviewed by: Kirti Wankhede -
This sample driver was originally under Documentation/ and was moved
to samples, but build support was never adjusted for the new location.Signed-off-by: Alex Williamson
Reviewed-by: Eric Auger
Tested-by: Eric Auger
Reviewed-by: Kirti Wankhede
18 Nov, 2016
1 commit
-
The Sample driver creates mdev device that simulates serial port over PCI
card.Signed-off-by: Kirti Wankhede
Signed-off-by: Neo Jia
Signed-off-by: Alex Williamson