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
|
||||
\ transactions can be pending.
|
||||
: shutdown ( -- )
|
||||
virtiodev virtio-blk-shutdown
|
||||
FALSE to initialized?
|
||||
initialized? IF
|
||||
virtiodev virtio-blk-shutdown
|
||||
FALSE to initialized?
|
||||
THEN
|
||||
;
|
||||
|
||||
\ Basic device initialization - which has only to be done once
|
||||
|
|
|
@ -196,8 +196,10 @@ scsi-close \ no further scsi words required
|
|||
;
|
||||
|
||||
: virito-scsi-shutdown ( -- )
|
||||
virtiodev virtio-scsi-shutdown
|
||||
FALSE to initialized?
|
||||
initialized? IF
|
||||
virtiodev virtio-scsi-shutdown
|
||||
FALSE to initialized?
|
||||
THEN
|
||||
;
|
||||
|
||||
: virtio-scsi-init-and-scan ( -- )
|
||||
|
|
Loading…
Reference in New Issue