linux/drivers/virtio
Michael S. Tsirkin 88660f7fb9 virtio_balloon: set DRIVER_OK before using device
virtio spec requires that all drivers set DRIVER_OK
before using devices. While balloon isn't yet
included in the virtio 1 spec, previous spec versions
also required this.

virtio balloon might violate this rule: probe calls
kthread_run before setting DRIVER_OK, which might run
immediately and cause balloon to inflate/deflate.

To fix, call virtio_device_ready before running the kthread.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: stable@kernel.org
2015-03-10 11:48:28 +10:30
..
config.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
Kconfig virtio_pci: add an option to disable legacy driver 2015-01-21 16:28:59 +10:30
Makefile virtio_pci: add an option to disable legacy driver 2015-01-21 16:28:59 +10:30
virtio_balloon.c virtio_balloon: set DRIVER_OK before using device 2015-03-10 11:48:28 +10:30
virtio_mmio.c virtio-mmio: Update the device to OASIS spec version 2015-01-23 14:57:10 +10:30
virtio_pci_common.c virtio_pci: add module param to force legacy mode 2015-01-21 16:29:01 +10:30
virtio_pci_common.h virtio_pci: add an option to disable legacy driver 2015-01-21 16:28:59 +10:30
virtio_pci_legacy.c virtio_pci: move probe/remove code to common 2015-01-21 16:28:51 +10:30
virtio_pci_modern.c virtio_pci: use 16-bit accessor for queue_enable. 2015-02-11 15:03:16 +10:30
virtio_ring.c virtio: Avoid possible kernel panic if DEBUG is enabled. 2015-02-11 15:03:14 +10:30
virtio.c virtio: don't set VIRTIO_CONFIG_S_DRIVER_OK twice. 2015-02-17 16:19:29 +10:30