X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fatapi.h;h=fe29a2ddba4d3ee18a589fd32feb0583a2b37e44;hp=0cc9f269bc78fb93f39d6c55e0b9b9fdbf32791c;hb=366a20deaf086107d75a2004fec076db4705e7c2;hpb=4d1d8fadad33de7d3ebce2083d9782048f78b44e diff --git a/palacios/src/devices/atapi.h b/palacios/src/devices/atapi.h index 0cc9f26..fe29a2d 100644 --- a/palacios/src/devices/atapi.h +++ b/palacios/src/devices/atapi.h @@ -239,9 +239,11 @@ static int atapi_read10(struct guest_info * core, static void atapi_req_sense(struct ide_internal * ide, struct ide_channel * channel) { struct ide_drive * drive = get_selected_drive(channel); + drive->cd_state.sense.read_len=0xa; + memcpy(drive->data_buf, drive->cd_state.sense.buf, sizeof(drive->cd_state.sense.buf)); - atapi_setup_cmd_resp(ide, channel, 18); + atapi_setup_cmd_resp(ide, channel, sizeof(drive->cd_state.sense.buf)); }