I'm testing with qemu.git (HEAD aa29141d84d), procedure: 1. Start a VM with:
# qemu -hda disks/test.img -enable-kvm -m 1G -cdrom Fedora-14-x86_64-DVD.iso 2. Then inside the guest run: # eject /dev/sr0 && mount /dev/sr0 /mnt Results: Actual: The cdrom is successfully mounted Expected: The cdrom is not mounted (mount fails, medium not found) Git bisect tells the culprit is: 996faf1ad4a93342e381766d95686b16624f0dbd is the first bad commit commit 996faf1ad4a93342e381766d95686b16624f0dbd Author: Amit Shah <amit.s...@redhat.com> Date: Tue Apr 12 21:36:07 2011 +0530 atapi: GESN: implement 'media' subcommand