Re: CD-ROM size not updated when switching CD-ROM images.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I code, therefore I am


--- On Wed, 10/20/10, David Ahern <dsahern@xxxxxxxxx> wrote:

> From: David Ahern <dsahern@xxxxxxxxx>
> Subject: Re: CD-ROM size not updated when switching CD-ROM images.
> To: "Alex Davis" <alex14641@xxxxxxxxx>
> Cc: "Stefan Hajnoczi" <stefanha@xxxxxxxxx>, kvm@xxxxxxxxxxxxxxx
> Date: Wednesday, October 20, 2010, 12:44 PM
> 
> 
> 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) 
This had no effect.

>or modify
> qemu to close and
> reopen the cdrom device.
QEMU already does this.

> 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@xxxxxxxxxxxxxxx
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > 
> 


      
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux