From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQGlB-0000Bf-Im for qemu-devel@nongnu.org; Mon, 22 Oct 2012 08:05:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQGl5-00031O-Rq for qemu-devel@nongnu.org; Mon, 22 Oct 2012 08:05:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQGl5-00030K-Ja for qemu-devel@nongnu.org; Mon, 22 Oct 2012 08:05:27 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9MC5LNx001724 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 22 Oct 2012 08:05:21 -0400 Message-ID: <5085367E.7010308@redhat.com> Date: Mon, 22 Oct 2012 14:05:18 +0200 From: Kevin Wolf MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/1] atapi: make change media detection for guests easier List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Hrdina Cc: qemu-devel@nongnu.org Am 04.10.2012 16:16, schrieb Pavel Hrdina: > If you have a guest with a media in the cdrom and you change it, > the windows and the linux guests cannot properly recognize this > media change. > For this purpose we have to pretend for some time (2s), that we > don't have any media inserted. This used to work with the existing code, by exposing an intermediate "no medium" state for exactly one request. Do you know since when this is broken? Is it a qemu regression, or does it happen only with newer Windows and Linux versions? If possible at all, I'd prefer not to use a timer here. Also I'm relatively sure that your code will break when migrating during the 2s of "no medium". Kevin