block: m25p80: Support read only bdrvs.
commit999e5aa5cec71d7138c4b5271092f59ca85f9f6b
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Thu, 19 Jun 2014 01:36:37 +0000 (18 18:36 -0700)
committerStefan Hajnoczi <stefanha@redhat.com>
Sat, 21 Jun 2014 08:40:14 +0000 (21 16:40 +0800)
tree0ac62b583727594c4100bd697de19e694cf3c0a8
parentfc1084aad72297cb6dbccf4c78473b5390ff6c87
block: m25p80: Support read only bdrvs.

By just never doing write-backs. This is completely invisible to the
guest, as the entire storage area is implemented as device state (at
realize time the entire drive is read in).

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/m25p80.c