]> xenbits.xensource.com Git - qemu-xen-4.1-testing.git/commit
fix cdrom eject, media change, stubdom fallback case
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 21 May 2009 17:45:39 +0000 (18:45 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 21 May 2009 17:45:39 +0000 (18:45 +0100)
commit16a3f599db2afcd87137294f8c497597ddcccde1
treeb476b1d47d5b9196f386d25a28c24b886f0f38de
parent9474d0dff1cec3f69b37b2f6309f1a193c8d4697
fix cdrom eject, media change, stubdom fallback case

this patch fixes few cdrom handling issues:

- when a cdrom medium event occurs and the new filename is NULL,
  we should eject the emulated cdrom instead of just ignoring the event;

- when a cdrom medium event occurs and we are in a stubdom, we have to
  pass the xenstore path of the frontend to bdrv_open instead of the
  filename;

- when we try and fail to open a cdrom (or disk) in a stubdom we should
  not fall back to the usual "non-stubdom" code path because is useless
  and wrong.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xenstore.c