qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH] floppy: save and restore DIR register


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH] floppy: save and restore DIR register
Date: Fri, 25 Mar 2011 12:56:53 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

On 03/25/2011 07:27 AM, Jason Wang wrote:
We need to keep DIR register unchanged across migration, but currently it
depends on the media_changed flags from block layer and we do not save/restore
it which could let the guest driver think the floppy have changed after
migration. To fix this, a new filed media_changed in FDrive strcutre was
introduced in order to save and restore the it from block layer through
pre_save/post_load callbacks.

I guess you can avoid saving if the media changed flag is zero, too (which should be the common case after the guest has booted, right?).

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]