From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44532 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7Sy7-0007nU-9m for qemu-devel@nongnu.org; Wed, 06 Apr 2011 09:40:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7Sy6-0003EK-0g for qemu-devel@nongnu.org; Wed, 06 Apr 2011 09:40:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7Sy5-0003Dj-EO for qemu-devel@nongnu.org; Wed, 06 Apr 2011 09:40:21 -0400 From: Amit Shah Date: Wed, 6 Apr 2011 19:10:03 +0530 Message-Id: Subject: [Qemu-devel] [PATCH 0/2] Correct transitions for cd change state List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu list Cc: Kevin Wolf , Gleb Natapov , Juan Quintela , Stefan Hajnoczi , Markus Armbruster , Amit Shah Hello, These two patches fix the cd media size change bugs. The test scenario is: 1. create an iso image from a file 2. create a second iso image from a bigger file 3. mount 1st cd in guest 4. unmount it 5. change cd via qemu monitor 6. mount 2nd cd 7. copy file on cd to local disk -- shows errors. I've not handled save/load state in these patches. There's no harm in always letting one extra 'cd not present' event being sent to the guest, so things should continue working fine across migrations. Please apply. Amit Shah (2): cdrom: Allow the TEST_UNIT_READY command after a cdrom change cdrom: Make disc change event visible to guests hw/ide/core.c | 49 ++++++++++++++++++++++++++++++++++++++++++------- hw/ide/internal.h | 1 + 2 files changed, 43 insertions(+), 7 deletions(-) -- 1.7.4