From: Alex Davis Subject: Re: CD-ROM size not updated when switching CD-ROM images. Date: Wed, 20 Oct 2010 16:28:53 -0700 (PDT) Message-ID: <19578.21159.qm@web50204.mail.re2.yahoo.com> References: <4CBF1C5F.1070406@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Stefan Hajnoczi , kvm@vger.kernel.org To: David Ahern Return-path: Received: from nm10-vm0.bullet.mail.ac4.yahoo.com ([98.139.53.194]:32145 "HELO nm10-vm0.bullet.mail.ac4.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752105Ab0JTXbg convert rfc822-to-8bit (ORCPT ); Wed, 20 Oct 2010 19:31:36 -0400 In-Reply-To: <4CBF1C5F.1070406@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: I code, therefore I am --- On Wed, 10/20/10, David Ahern wrote: > From: David Ahern > Subject: Re: CD-ROM size not updated when switching CD-ROM images. > To: "Alex Davis" > Cc: "Stefan Hajnoczi" , kvm@vger.kernel.org > Date: Wednesday, October 20, 2010, 12:44 PM >=20 >=20 > On 10/19/10 18:03, Alex Davis wrote: >=20 > >> You ejected the CD-ROM on the QEMU side, the guest > doesn't > >> necessarily > >> know about the medium change.=A0 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,=20 > > I still get the size of the first disk in the guest. >=20 > 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)=20 This had no effect. >or modify > qemu to close and > reopen the cdrom device. QEMU already does this. > David >=20 >=20 > >> > >> I don't know how CD-ROM media change works on > real > >> hardware, but that > >> is the behavior that QEMU should be following. > >> > >> Stefan > >=20 > >=20 > >=A0 =A0 =A0=A0=A0 > > -- > > 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=A0 http://vger.kernel.org/majordomo-info.htm= l > >=20 >=20 =20