Bug 1436562
Summary: | [QEMU] scsi-generic: make up opt xfer len if not reported by backend | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Xueqiang Wei <xuwei> |
Component: | qemu-kvm-rhev | Assignee: | Fam Zheng <famz> |
Status: | CLOSED ERRATA | QA Contact: | Xueqiang Wei <xuwei> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.4 | CC: | chayang, coli, famz, juzhang, knoel, michen, mkalinin, mrezanin, mtessun, royoung, sfroemer, virt-maint |
Target Milestone: | rc | Keywords: | ZStream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-rhev-2.9.0-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-02 04:35:59 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1436582 |
Description
Xueqiang Wei
2017-03-28 08:11:30 UTC
Merged for upstream QEMU 2.9: commit bed58b4443b001227b953dca80ce76fa76ea0fc1 Author: Fam Zheng <famz> Date: Mon Mar 27 22:26:25 2017 +0800 scsi-generic: Fill in opt_xfer_len in INQUIRY reply if it is zero When opt_xfer_len is zero, Linux ignores max_xfer_len erroneously. While that obviously should be fixed, we do older guests a favor to always filling in a value. Signed-off-by: Fam Zheng <famz> Message-Id: <20170327142625.1249-1-famz> Signed-off-by: Paolo Bonzini <pbonzini> Reproducer steps for reference: 1. On host, find a LUN that doesn't set opt_xfer_len in INQUIRY reply (check with "sg_inq -p 0xb0 /dev/sdX"). Such as the Emulex one in comment 0. 2. Passthrough the disk to guest as scsi-block. 3. Check that both max_xfer_len and opt_xfer_len are reported. According to https://bugzilla.redhat.com/show_bug.cgi?id=1418065#c85, verify this bug. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 |