The 'LUN encoding in CDB' feature of UefiScsiLib violates the SBC-3 and
causes actual breakage on SCSI disks with nonzero LUNs that are emulated
by QEMU.

The first patch makes this (very small) part of UefiScsiLib dependent on
a new MdePkg Feature PCD, and keeps the default behavior intact.

The second patch turns off the 'LUN encoding in CDB' feature for
OvmfPkg.

The third patch does the same for ArmVirtualizationQemu.

Public branch:
https://github.com/lersek/edk2/commits/bz1166971_rdwrvr_cdb_lun_encode

RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1166971

Thanks,
Laszlo

Laszlo Ersek (3):
  MdePkg: UefiScsiLib: turn 'LUN encoding in CDB' into an explicit
    feature
  OvmfPkg: turn off 'LUN encoding in CDB' SCSI feature
  ArmPlatformPkg: ArmVirtualizationQemu: turn off 'LUN encoding in CDB'
    SCSI feature

 MdePkg/Library/UefiScsiLib/UefiScsiLib.inf               |  2 ++
 MdePkg/Library/UefiScsiLib/UefiScsiLib.c                 | 16 ++++++++++++----
 .../ArmVirtualizationPkg/ArmVirtualizationQemu.dsc       |  2 ++
 MdePkg/MdePkg.dec                                        |  9 +++++++++
 OvmfPkg/OvmfPkgIa32.dsc                                  |  1 +
 OvmfPkg/OvmfPkgIa32X64.dsc                               |  1 +
 OvmfPkg/OvmfPkgX64.dsc                                   |  1 +
 7 files changed, 28 insertions(+), 4 deletions(-)

-- 
1.8.3.1


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to