From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUqvj-0005Nd-VP for qemu-devel@nongnu.org; Sun, 27 Nov 2011 21:26:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUqvj-0002GA-7a for qemu-devel@nongnu.org; Sun, 27 Nov 2011 21:26:51 -0500 Received: from mga11.intel.com ([192.55.52.93]:46974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUqvj-0002Fx-3K for qemu-devel@nongnu.org; Sun, 27 Nov 2011 21:26:51 -0500 From: Jordan Justen Date: Sun, 27 Nov 2011 18:26:36 -0800 Message-Id: <1322447198-6328-1-git-send-email-jordan.l.justen@intel.com> Subject: [Qemu-devel] [PATCH v8 0/2] PC system flash support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jordan Justen Enable flash emulation in a PC system using pflash_cfi01. v8: * Cleanup two chunks of debug code (printf messages) * Fix comment in pc.h (pcflash.c => pc_sysfw.c) 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 to 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 | 194 ++++++++++++++++++++++++++++++++++++ hw/pflash_cfi01.c | 44 ++++++--- hw/pflash_cfi02.c | 83 ++++++++------- vl.c | 2 +- 11 files changed, 284 insertions(+), 104 deletions(-) create mode 100644 hw/pc_sysfw.c