virtio: console: Disable callbacks for virtqueues at start of S4 freeze
authorAmit Shah <amit.shah@redhat.com>
Fri, 6 Jan 2012 10:49:08 +0000 (16:19 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 05:14:45 +0000 (15:44 +1030)
commitc743d09dbd018dd6345519fb3264b16bdaa41746
treeacf5eabccb93d35035547fd80489f222a1538256
parent2b8f41d846990c3c1c8addbaed2cf53c3ef91d25
virtio: console: Disable callbacks for virtqueues at start of S4 freeze

To ensure we don't receive any more interrupts from the host after we
enter the freeze function, disable all vq interrupts.

There wasn't any problem seen due to this in tests, but applying this
patch makes the freeze case more robust.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c