Fix shutdown for virtio devices
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
This commit is contained in:
parent
eab9584a40
commit
a8c1a27c16
|
@ -29,8 +29,10 @@ virtiodev virtio-setup-vd
|
||||||
\ Quiesce the virtqueue of this device so that no more background
|
\ Quiesce the virtqueue of this device so that no more background
|
||||||
\ transactions can be pending.
|
\ transactions can be pending.
|
||||||
: shutdown ( -- )
|
: shutdown ( -- )
|
||||||
virtiodev virtio-blk-shutdown
|
initialized? IF
|
||||||
FALSE to initialized?
|
virtiodev virtio-blk-shutdown
|
||||||
|
FALSE to initialized?
|
||||||
|
THEN
|
||||||
;
|
;
|
||||||
|
|
||||||
\ Basic device initialization - which has only to be done once
|
\ Basic device initialization - which has only to be done once
|
||||||
|
|
|
@ -196,8 +196,10 @@ scsi-close \ no further scsi words required
|
||||||
;
|
;
|
||||||
|
|
||||||
: virito-scsi-shutdown ( -- )
|
: virito-scsi-shutdown ( -- )
|
||||||
virtiodev virtio-scsi-shutdown
|
initialized? IF
|
||||||
FALSE to initialized?
|
virtiodev virtio-scsi-shutdown
|
||||||
|
FALSE to initialized?
|
||||||
|
THEN
|
||||||
;
|
;
|
||||||
|
|
||||||
: virtio-scsi-init-and-scan ( -- )
|
: virtio-scsi-init-and-scan ( -- )
|
||||||
|
|
Loading…
Reference in New Issue