|
| From: | Stefan Weil |
| Subject: | Re: [Qemu-devel] [PATCH 07/14] scsi-disk: add dpofua property |
| Date: | Fri, 04 May 2012 18:32:15 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120412 Thunderbird/11.0.1 |
Am 04.05.2012 10:45, schrieb Paolo Bonzini:
Linux expects REQ_FUA to be advertised only if WRITE+FUA is faster than
WRITE+SYNCHRONIZE CACHE, so we should not set the DPOFUA bit. However,
it is useful to have it for testing purposes, so add a qdev property to
set it.
Signed-off-by: Paolo Bonzini<address@hidden>
---
hw/scsi-disk.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
index e04b469..e0f1821 100644
--- a/hw/scsi-disk.c
+++ b/hw/scsi-disk.c
@@ -62,6 +62,7 @@ typedef struct SCSIDiskReq {
} SCSIDiskReq;
#define SCSI_DISK_F_REMOVABLE 0
+#define SCSI_DISK_F_DPOFUA 1
ERROR: code indent should never use tabs #24: FILE: hw/scsi-disk.c:65: +#define SCSI_DISK_F_DPOFUA^I1$ total: 1 errors, 0 warnings, 31 lines checked0007-scsi-disk-add-dpofua-property.patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
| [Prev in Thread] | Current Thread | [Next in Thread] |