CD-ROM size not updated when switching CD-ROM images.
Sorry. Here's the thread this is all in reference to:
http://marc.info/?l=kvm&m=128847386629601&w=2
I code, therefore I am
Quoted 124 lines · Alex Davis
From: Alex Davis <[email protected]>
Subject: Re: CD-ROM size not updated when switching CD-ROM images.
To: [email protected]
Cc: [email protected]
Date: Saturday, October 30, 2010, 5:24 PM
Forwarding to linux-kernel.I code, therefore I am
--- On Sat, 10/30/10, Alex Davis <[email protected]>
Quoted 2 lines · wrote:
From: Alex Davis <[email protected]>
Subject: Re: CD-ROM size not updated when switchingCD-ROM images.
Quoted 2 lines
To: "David Ahern" <[email protected]>
Cc: "Stefan Hajnoczi" <[email protected]>,Quoted 8 lines
Date: Saturday, October 30, 2010, 4:32 PM
--- On Wed, 10/20/10, David Ahern <[email protected]>
Quoted 2 lines · wrote:
From: David Ahern <[email protected]>
Subject: Re: CD-ROM size not updated whenswitching
Quoted 10 lines
CD-ROM images.
Quoted 2 lines
To: "Alex Davis" <[email protected]>
Cc: "Stefan Hajnoczi" <[email protected]>,Quoted 6 lines
Date: Wednesday, October 20, 2010, 12:44 PM
Quoted 1 line · Alex Davis
Quoted 1 line
You ejected the CD-ROM on the QEMU side,
the
Quoted 4 lines
guest
Quoted 3 lines
doesn't
Quoted 2 lines
Quoted 2 lines
necessarily
know about the medium change.What
Quoted 5 lines
happens
Quoted 4 lines
when you
Quoted 3 lines
Quoted 2 lines
use "eject
/dev/sr0" inside the guest instead?I get a 'no medium found' error from the
'dd..'
Quoted 5 lines
Quoted 2 lines
command. After
Quoted 1 line
going into the the monitor, ejecting and
reloading the
Quoted 2 lines
disk,
Quoted 1 line
I still get the size of the first disk in
the
Quoted 3 lines
guest.
Quoted 2 lines
As I recall the old data is coming from the host
page
Quoted 2 lines
Quoted 2 lines
cache; it is not
seeing the media change. Try dropping the cachein the
Quoted 11 lines
host
Quoted 2 lines
on a media
change (echo 3 >/proc/sys/vm/drop_caches) ormodify
Quoted 4 lines
qemu to close and
reopen the cdrom device.David
I am able to reproduce this problem with just a plain kernel using the
ata_piixdriver, an initrd that juststarts a
Quoted 1 line
shell, and plain qemu. When the disk is changed via
the monitor,
Quoted 1 line
the guest invokes the error-handling code on the next
read of the
Quoted 1 line
CD-ROM, but the code path doesn't trigger the 'update
size' logic.
Quoted 1 line
I did an experiment where I placed the line
'
sdev->changed= 1'Quoted 1 line
in the
sr_openmethod insr.cof the guest > kernelsource, the
Quoted 1 line
size was updated, but I will look to see if there's
something in
Quoted 10 lines
qemu that can be changed to make it work properly.
Of course any input from the qemu/kvm developers is appreciated.
I code, therefore I am
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
I don't know how CD-ROM media change
works
Quoted 12 lines
on
Quoted 3 lines
real
Quoted 2 lines
Quoted 2 lines
hardware, but that
is the behavior that QEMU should befollowing.
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Stefan
--
To unsubscribe from this list: send theline
Quoted 9 lines
Quoted 5 lines
"unsubscribe kvm" in
Quoted 3 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html