From: Erik van der Kouwe Date: Mon, 29 Nov 2010 21:38:52 +0000 (-0600) Subject: This patch implements the "Check power mode" IDE command which allows the latest... X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=6c082361b3513b82d68f1eb41debc1e42ff0a8de;p=palacios.git This patch implements the "Check power mode" IDE command which allows the latest OpenBSD to boot, so we can boot two of the BSDs now. --- diff --git a/palacios/src/devices/ide.c b/palacios/src/devices/ide.c index 8ff8ef7..4c06677 100644 --- a/palacios/src/devices/ide.c +++ b/palacios/src/devices/ide.c @@ -967,6 +967,15 @@ static int write_cmd_port(struct guest_info * core, ushort_t port, void * src, u channel->status.error = 0; break; + case 0xe5: // Check power mode + drive->sector_count = 0xff; /* 0x00=standby, 0x80=idle, 0xff=active or idle */ + channel->status.busy = 0; + channel->status.ready = 1; + channel->status.write_fault = 0; + channel->status.data_req = 0; + channel->status.error = 0; + break; + case 0xc4: // read multiple sectors drive->hd_state.cur_sector_num = drive->hd_state.mult_sector_num; default: