From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: CD-ROM size not updated when switching CD-ROM images. Date: Wed, 20 Oct 2010 10:44:15 -0600 Message-ID: <4CBF1C5F.1070406@gmail.com> References: <511807.4805.qm@web50208.mail.re2.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Stefan Hajnoczi , kvm@vger.kernel.org To: Alex Davis Return-path: Received: from mail-pz0-f46.google.com ([209.85.210.46]:46674 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754098Ab0JTQoU (ORCPT ); Wed, 20 Oct 2010 12:44:20 -0400 Received: by pzk3 with SMTP id 3so737609pzk.19 for ; Wed, 20 Oct 2010 09:44:19 -0700 (PDT) In-Reply-To: <511807.4805.qm@web50208.mail.re2.yahoo.com> Sender: kvm-owner@vger.kernel.org List-ID: On 10/19/10 18:03, Alex Davis wrote: >> You ejected the CD-ROM on the QEMU side, the guest doesn't >> necessarily >> know about the medium change. What happens when you >> use "eject >> /dev/sr0" inside the guest instead? > I get a 'no medium found' error from the 'dd..' command. After > going into the the monitor, ejecting and reloading the disk, > I still get the size of the first disk in the guest. As I recall the old data is coming from the host page cache; it is not seeing the media change. Try dropping the cache in the host on a media change (echo 3 > /proc/sys/vm/drop_caches) or modify qemu to close and reopen the cdrom device. David >> >> I don't know how CD-ROM media change works on real >> hardware, but that >> is the behavior that QEMU should be following. >> >> Stefan > > > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >