spapr_vscsi.c (84a5a8014801a83d1b8d15fa7f0fde03db081530) | spapr_vscsi.c (cb8d4c8f54b8271f642f02382eec29d468bb1c77) |
---|---|
1/* 2 * QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator 3 * 4 * PAPR Virtual SCSI, aka ibmvscsi 5 * 6 * Copyright (c) 2010,2011 Benjamin Herrenschmidt, IBM Corporation. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy --- 684 unchanged lines hidden (view full) --- 693} 694 695static void vscsi_inquiry_no_target(VSCSIState *s, vscsi_req *req) 696{ 697 uint8_t *cdb = req->iu.srp.cmd.cdb; 698 uint8_t resp_data[36]; 699 int rc, len, alen; 700 | 1/* 2 * QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator 3 * 4 * PAPR Virtual SCSI, aka ibmvscsi 5 * 6 * Copyright (c) 2010,2011 Benjamin Herrenschmidt, IBM Corporation. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy --- 684 unchanged lines hidden (view full) --- 693} 694 695static void vscsi_inquiry_no_target(VSCSIState *s, vscsi_req *req) 696{ 697 uint8_t *cdb = req->iu.srp.cmd.cdb; 698 uint8_t resp_data[36]; 699 int rc, len, alen; 700 |
701 /* We dont do EVPD. Also check that page_code is 0 */ | 701 /* We don't do EVPD. Also check that page_code is 0 */ |
702 if ((cdb[1] & 0x01) || cdb[2] != 0) { 703 /* Send INVALID FIELD IN CDB */ 704 vscsi_makeup_sense(s, req, ILLEGAL_REQUEST, 0x24, 0); 705 vscsi_send_rsp(s, req, CHECK_CONDITION, 0, 0); 706 return; 707 } 708 alen = cdb[3]; 709 alen = (alen << 8) | cdb[4]; --- 595 unchanged lines hidden --- | 702 if ((cdb[1] & 0x01) || cdb[2] != 0) { 703 /* Send INVALID FIELD IN CDB */ 704 vscsi_makeup_sense(s, req, ILLEGAL_REQUEST, 0x24, 0); 705 vscsi_send_rsp(s, req, CHECK_CONDITION, 0, 0); 706 return; 707 } 708 alen = cdb[3]; 709 alen = (alen << 8) | cdb[4]; --- 595 unchanged lines hidden --- |