[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Fix IDE FDC emulation for no media
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] Fix IDE FDC emulation for no media |
Date: |
Tue, 24 Apr 2012 10:06:59 +0100 |
On Mon, Apr 23, 2012 at 5:06 PM, Pavel Hrdina <address@hidden> wrote:
> Hi,
> this is the patch to fix incorrect handling of IDE floppy drive controller
> emulation
s/IDE//
It's unrelated to IDE.
> @@ -937,6 +940,9 @@ static int fdctrl_media_changed(FDrive *drv)
>
> if (!drv->bs)
> return 0;
> + /* This is needed for driver to detect there is no media in drive */
> + if (!bdrv_is_inserted(drv->bs))
> + return 1;
> if (drv->media_changed) {
> drv->media_changed = 0;
> ret = 1;
Why isn't the BlockDevOps.change_media_cb() mechanism enough to report
disk changes correctly?
Stefan
Re: [Qemu-devel] [PATCH] Fix IDE FDC emulation for no media, Markus Armbruster, 2012/04/26