summaryrefslogtreecommitdiff
path: root/sys/dev/pv
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pv')
-rw-r--r--sys/dev/pv/hvs.c2
-rw-r--r--sys/dev/pv/vioblk.c4
-rw-r--r--sys/dev/pv/xbf.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pv/hvs.c b/sys/dev/pv/hvs.c
index a6d1c5864d9..271d7270455 100644
--- a/sys/dev/pv/hvs.c
+++ b/sys/dev/pv/hvs.c
@@ -600,7 +600,7 @@ fixup_inquiry(struct scsi_xfer *xs, struct hvs_srb *srb)
!is_inquiry_valid(inq) && datalen >= 4 &&
(inq->version == 0 || inq->response_format == 0)) {
inq->version = SCSI_REV_SPC3;
- inq->response_format = 2;
+ inq->response_format = SID_SCSI2_RESPONSE;
} else if (datalen >= SID_INQUIRY_HDR + SID_SCSI2_ALEN) {
/*
* Upgrade SPC2 to SPC3 if host is Win8 or WS2012 R2
diff --git a/sys/dev/pv/vioblk.c b/sys/dev/pv/vioblk.c
index f399474f05c..dc68145ea50 100644
--- a/sys/dev/pv/vioblk.c
+++ b/sys/dev/pv/vioblk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vioblk.c,v 1.28 2020/09/02 22:00:26 krw Exp $ */
+/* $OpenBSD: vioblk.c,v 1.29 2020/09/03 12:41:29 krw Exp $ */
/*
* Copyright (c) 2012 Stefan Fritsch.
@@ -574,7 +574,7 @@ vioblk_scsi_inq(struct scsi_xfer *xs)
inqd.device = T_DIRECT;
inqd.version = SCSI_REV_SPC3;
- inqd.response_format = 2;
+ inqd.response_format = SID_SCSI2_RESPONSE;
inqd.additional_length = 32;
inqd.flags |= SID_CmdQue;
bcopy("VirtIO ", inqd.vendor, sizeof(inqd.vendor));
diff --git a/sys/dev/pv/xbf.c b/sys/dev/pv/xbf.c
index 87d49cfe962..b2f5a760b55 100644
--- a/sys/dev/pv/xbf.c
+++ b/sys/dev/pv/xbf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xbf.c,v 1.46 2020/09/02 21:16:29 krw Exp $ */
+/* $OpenBSD: xbf.c,v 1.47 2020/09/03 12:41:29 krw Exp $ */
/*
* Copyright (c) 2016, 2017 Mike Belopuhov
@@ -836,7 +836,7 @@ xbf_scsi_inquiry(struct scsi_xfer *xs)
}
inq.version = SCSI_REV_SPC3;
- inq.response_format = 2;
+ inq.response_format = SID_SCSI2_RESPONSE;
inq.additional_length = 32;
inq.flags |= SID_CmdQue;
bcopy("Xen ", inq.vendor, sizeof(inq.vendor));