cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-ide-atapi-Fix-START-STOP-UNIT-command-completion.patch

9ae3a8
From cbc1dc59790015e0e86853ee523fed921ef6fe4e Mon Sep 17 00:00:00 2001
9ae3a8
From: Kevin Wolf <kwolf@redhat.com>
9ae3a8
Date: Thu, 16 Jul 2015 16:15:59 +0200
9ae3a8
Subject: [PATCH 2/3] ide/atapi: Fix START STOP UNIT command completion
9ae3a8
9ae3a8
Message-id: <1437056160-3284-3-git-send-email-kwolf@redhat.com>
9ae3a8
Patchwork-id: n/a
9ae3a8
O-Subject: [virt-devel] [RHEL/RHEV-7 qemu-kvm(-rhev) EMBARGOED PATCH 2/3]
9ae3a8
        ide/atapi: Fix START STOP UNIT command completion
9ae3a8
Bugzilla: 1243690
9ae3a8
RH-Acked-by: Petr Matousek <pmatouse@redhat.com>
9ae3a8
RH-Acked-by: John Snow <jsnow@redhat.com>
9ae3a8
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
9ae3a8
The command must be completed on all code paths. START STOP UNIT with
9ae3a8
pwrcnd set should succeed without doing anything.
9ae3a8
9ae3a8
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
9ae3a8
---
9ae3a8
 hw/ide/atapi.c | 1 +
9ae3a8
 1 file changed, 1 insertion(+)
9ae3a8
9ae3a8
diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
9ae3a8
index 46a2c26..a411748 100644
9ae3a8
--- a/hw/ide/atapi.c
9ae3a8
+++ b/hw/ide/atapi.c
9ae3a8
@@ -896,6 +896,7 @@ static void cmd_start_stop_unit(IDEState *s, uint8_t* buf)
9ae3a8
 
9ae3a8
     if (pwrcnd) {
9ae3a8
         /* eject/load only happens for power condition == 0 */
9ae3a8
+        ide_atapi_cmd_ok(s);
9ae3a8
         return;
9ae3a8
     }
9ae3a8
 
9ae3a8
-- 
9ae3a8
1.8.3.1
9ae3a8