qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PATCH 3/3] ide: export rotational qdev property


From: Aurelien Jarno
Subject: [Qemu-block] [PATCH 3/3] ide: export rotational qdev property
Date: Sat, 6 May 2017 14:43:14 +0200

Export the rotational qdev property in the IDENTIFY request.

Signed-off-by: Aurelien Jarno <address@hidden>
---
 hw/ide/core.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/ide/core.c b/hw/ide/core.c
index 0b48b64d3a..1aa76b0d90 100644
--- a/hw/ide/core.c
+++ b/hw/ide/core.c
@@ -191,6 +191,9 @@ static void ide_identify(IDEState *s)
     if (dev && dev->conf.discard_granularity) {
         put_le16(p + 169, 1); /* TRIM support */
     }
+    if (dev && !dev->conf.rotational) {
+        put_le16(p + 217, 1); /* non-rotating device */
+    }
 
     ide_identify_size(s);
     s->identify_set = 1;
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]