From: Avi Kivity <avi@redhat.com>
To: Jordan Justen <jljusten@gmail.com>
Cc: Markus Armbruster <armbru@redhat.com>,
qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v8 0/2] PC system flash support
Date: Tue, 29 Nov 2011 11:38:32 +0200 [thread overview]
Message-ID: <4ED4A818.1030702@redhat.com> (raw)
In-Reply-To: <CAFe8ug87gCTKSS=eM7QXMTLpTqBfNgSqTLStcfTdwooaVKfiFw@mail.gmail.com>
On 11/29/2011 09:03 AM, Jordan Justen wrote:
> On Mon, Nov 28, 2011 at 02:28, Avi Kivity <avi@redhat.com> wrote:
> > On 11/28/2011 04:26 AM, Jordan Justen wrote:
> >> Enable flash emulation in a PC system using pflash_cfi01.
> >
> > The new memory layout should be made conditional on the machine type (-M
> > pc-1.1 or later) to allow migration from/to pc-1.0 and earlier.
> >
> > Memory layout in this context are the names of memory ranges given to
> > memory_region_init_ram(), sizes, and locations. Also, the flash
> > interface should not be there for older machines.
>
> Is this the right way to go about it?
> 1. Create a new pc-sysfw qdev
> 2. Use a flash property in pc_piix.c to selectively enable the flash
>
> Or, is there an easier or better way to say pc > pc-1.0?
No idea, copying some qdev people.
> How do I enable "migration from/to pc-1.0 and earlier"? It seems like
> some code will need to shuttle the data (rom <=> pflash). Can you
> point me an an example?
It should be completely transparent, so long as you instantiate a ROM
for <= pc-1.0 (say based on a property) and flash for >= pc-1.1.
One way to verify is to to 'info qdev' and 'info mtree' with qemu-1.0
and qemu-1.1 -M pc-1.0, and see that you get the same results.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2011-11-29 9:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 2:26 [Qemu-devel] [PATCH v8 0/2] PC system flash support Jordan Justen
2011-11-28 2:26 ` [Qemu-devel] [PATCH v8 1/2] pflash: Support read-only mode Jordan Justen
2011-11-28 2:26 ` [Qemu-devel] [PATCH v8 2/2] pc: Support system flash memory with pflash Jordan Justen
2011-11-28 10:28 ` [Qemu-devel] [PATCH v8 0/2] PC system flash support Avi Kivity
2011-11-29 7:03 ` Jordan Justen
2011-11-29 9:38 ` Avi Kivity [this message]
2011-11-29 20:51 ` Jordan Justen
2011-12-01 9:43 ` Avi Kivity
2011-11-30 8:04 ` Markus Armbruster
2011-11-30 8:38 ` Markus Armbruster
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=4ED4A818.1030702@redhat.com \
--to=avi@redhat.com \
--cc=armbru@redhat.com \
--cc=jljusten@gmail.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).