qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stuart Brady <sdbrady@ntlworld.com>
To: "TAKEDA, toshiya" <t-takeda@m1.interq.or.jp>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] fdc: fix MAX_FD probelm
Date: Sun, 13 Sep 2009 18:13:07 +0100	[thread overview]
Message-ID: <20090913171307.GA17269@miranda.arrow> (raw)
In-Reply-To: <200909131542.AA00107@YOUR-BD18D6DD63.m1.interq.or.jp>

On Mon, Sep 14, 2009 at 12:42:32AM +0900, TAKEDA, toshiya wrote:
> Dear Stuart and members,
> 
> >I'm still slightly concerned that for machines with MAX_PHYSICAL_DRIVES
> >set to 2, guests would see drives 2 and 3 as present, but with no disk
> >inserted.  Previously, though, I expect they would have been mirrors of
> >drives 0 and 1, which is obviously worse!
> 
> FD_DOR_SELMASK is not affected by MAX_PHYSICAL_DRIVES and is fixed to 3,
> so I think drive 2 and 3 are not recognized as the mirror of 0 and 1.

Agreed.

(Just to clarify, my comment about mirrors of drives 2 and 3 was
referring to the old code, when FD_DOR_SELMASK was affected by MAX_FD.)

> Well, I also think it is better the user can select the physical drive
> number, not only 2 but 0, 1 and 3.
> But it will require the large scale patch, for example the block and
> qemu option commands.

The user should really be able to attach drives individually, and have
only drive 3 connected, if they want... but that's a separate problem.

> If this patch is acceptable for commit, I will reimplement PC-09 patch
> based on it and in this time I hope I can fix the sence interrupt status.

My only concern is that a guest OS might now reserve drive letters for
drives 2 and 3, whereas before, it might have ignored those drives
because it was not possible to select them.

In reality, it seems a greater concern that without this patch, a
guest OS might allow access to the mirrors of drives 0 and 1,
potentially causing filesystem corruption. :-(

Cheers,
-- 
Stuart Brady

  reply	other threads:[~2009-09-13 17:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-12 19:52 [Qemu-devel] [PATCH] fdc: fix MAX_FD probelm 武田 俊也
2009-09-13  0:10 ` Stuart Brady
2009-09-13 10:07   ` 武田 俊也
2009-09-13 14:44     ` Stuart Brady
2009-09-13 15:42       ` TAKEDA, toshiya
2009-09-13 17:13         ` Stuart Brady [this message]
2009-09-15 12:35           ` Natalia Portillo
2009-09-15 12:32         ` Natalia Portillo

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=20090913171307.GA17269@miranda.arrow \
    --to=sdbrady@ntlworld.com \
    --cc=qemu-devel@nongnu.org \
    --cc=t-takeda@m1.interq.or.jp \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).