qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jordan Justen <jordan.l.justen@intel.com>
To: qemu-devel@nongnu.org
Cc: Jordan Justen <jordan.l.justen@intel.com>
Subject: [Qemu-devel] [PATCH v7 0/2] PC system flash support
Date: Wed,  2 Nov 2011 21:19:21 -0700	[thread overview]
Message-ID: <1320293963-14629-1-git-send-email-jordan.l.justen@intel.com> (raw)

Enable flash emulation in a PC system using pflash_cfi01.

v7:
* Do not add system firmware to qemu roms
* If kvm is enabled, copy pflash drive contents into a
  read-only ram region, since kvm cannot currently execute
  code from a pflash device.
* Rename pcflash.c to pc_sysfw.c

v6:
* Rebase for memory API
* pflash_cfi01: Set error in status register when a write or
  erase is attempted in read-only mode.
* Add system firmware to qemu roms

v5:
* Enable pflash read-only mode
* Enable -drive with if=pflash to define system firmware image

v4:
* Rebase

v3:
* Fix code style issues
* Add additional comments

v2:
* Convert debug printf to DPRINTF

Jordan Justen (2):
  pflash: Support read-only mode
  pc: Support system flash memory with pflash

 Makefile.target                    |    1 +
 blockdev.c                         |    3 +-
 default-configs/i386-softmmu.mak   |    1 +
 default-configs/x86_64-softmmu.mak |    1 +
 hw/boards.h                        |    1 +
 hw/pc.c                            |   55 +---------
 hw/pc.h                            |    3 +
 hw/pc_sysfw.c                      |  196 ++++++++++++++++++++++++++++++++++++
 hw/pflash_cfi01.c                  |   44 ++++++---
 hw/pflash_cfi02.c                  |   83 ++++++++-------
 vl.c                               |    2 +-
 11 files changed, 286 insertions(+), 104 deletions(-)
 create mode 100644 hw/pc_sysfw.c

             reply	other threads:[~2011-11-03  4:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-03  4:19 Jordan Justen [this message]
2011-11-03  4:19 ` [Qemu-devel] [PATCH v7 1/2] pflash: Support read-only mode Jordan Justen
2011-11-03  4:19 ` [Qemu-devel] [PATCH v7 2/2] pc: Support system flash memory with pflash Jordan Justen
2011-11-07 22:56   ` Jordan Justen
     [not found] ` <CAEH94Lhf-r4HGHq=vVLERauuR=yGNf-v8AnB2heyYy8wyZozoQ@mail.gmail.com>
     [not found]   ` <1320338977.4420.648.camel@jljusten-desk2>
     [not found]     ` <CAEH94LjpkGeBAf8jB3_npuXGGQ9hqPRofGKT5F_aZWsQH77+-A@mail.gmail.com>
     [not found]       ` <CAFe8ug_PpsA6_b0f=2-dSKNSwM_hB6CNp7YBp2yKiEQk4vqgjw@mail.gmail.com>
     [not found]         ` <CAEH94LiTErxTqGAh9NtMcDkJZHX6k1+3mtssndUXp3_Nxc98mg@mail.gmail.com>
     [not found]           ` <CAFe8ug_Gf=Xp=uCQhHxWvw1HHUtMVTzd8F+zX4Sv6UjTVLkmgg@mail.gmail.com>
     [not found]             ` <CAEH94LhVab=CPuTG_Ydkxj+DLLSm3Njci_gBeFZWKyFN8caa9A@mail.gmail.com>
2011-11-05 21:30               ` [Qemu-devel] [PATCH v7 0/2] PC system flash support Jordan Justen
2011-11-06  4:10                 ` Zhi Yong Wu
2011-11-07  5:09 ` Zhi Yong Wu

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=1320293963-14629-1-git-send-email-jordan.l.justen@intel.com \
    --to=jordan.l.justen@intel.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).