]> git.ipfire.org Git - thirdparty/qemu.git/commit
pc_sysfw: allow flash (-pflash) memory to be used with KVM
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 29 May 2013 08:27:27 +0000 (01:27 -0700)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 29 May 2013 13:15:36 +0000 (08:15 -0500)
commitdafb82e0fc89b631d25f8def649fbfd14fec3db2
treea566255617ec760af75548ac2851a0447451888a
parent235e8982ad393e5611cb892df54881c872eea9e1
pc_sysfw: allow flash (-pflash) memory to be used with KVM

When pc-sysfw.rom_only == 0, flash memory will be
usable with kvm. In order to enable flash memory mode,
a pflash device must be created. (For example, by
using the -pflash command line parameter.)

Usage of a flash memory device with kvm requires
KVM_CAP_READONLY_MEM, and kvm will abort if
a flash device is used with an older kvm which does
not support this capability.

If a flash device is not used, then qemu/kvm will
operate in the original rom-mode.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1369816047-16384-5-git-send-email-jordan.l.justen@intel.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/block/pc_sysfw.c