All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Jason Wang <jasowang@redhat.com>
Cc: kwolf@redhat.com, Jes.Sorensen@redhat.com, qemu-devel@nongnu.org,
	quintela@redhat.com
Subject: [Qemu-devel] Re: [PATCH V3] floppy: save and restore DIR register
Date: Fri, 01 Apr 2011 09:15:09 +0200	[thread overview]
Message-ID: <4D957B7D.3060802@redhat.com> (raw)
In-Reply-To: <1301638940-22372-1-git-send-email-jasowang@redhat.com>

On 04/01/2011 08:22 AM, Jason Wang wrote:
> +
> +    if (drive->bs == NULL) {
> +        return 1;

Is it okay to return 1 here?  Have you tested the case when both the 
source and the target drives have no floppy?

(The "media_changed == 2" in my sample code was basically a way to save 
the "media present" state of the drive on the source).

> +    } else {
> +        drive->bs->media_changed = drive->media_changed;
> +        return 0;
> +    }

The code is also missing the case of a pc-0.14 machine.  The problem 
here is that the pc-0.15 machine hasn't been created yet, you get the 
honor. :(

Paolo

  parent reply	other threads:[~2011-04-01  7:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-01  6:22 [Qemu-devel] [PATCH V3] floppy: save and restore DIR register Jason Wang
2011-04-01  6:54 ` [Qemu-devel] " Jes Sorensen
2011-04-01  7:15 ` Paolo Bonzini [this message]
2011-04-01 10:03   ` Jason Wang
2011-04-01 11:22     ` Paolo Bonzini
2011-04-06  8:41     ` Juan Quintela
2011-04-06  9:18 ` Juan Quintela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D957B7D.3060802@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=Jes.Sorensen@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.