On 18/04/2019 00.01, Stephen Checkoway wrote: > During a sector erase (but not a chip erase), the embeded erase program > can be suspended. Once suspended, the sectors not selected for erasure > may be read and programmed. Autoselect mode is allowed during erase > suspend mode. Presumably, CFI queries are similarly allowed so this > commit allows them as well. > > Since guest firmware can use status bits DQ7, DQ6, DQ3, and DQ2 to > determine the current state of sector erasure, these bits are properly > implemented. > > Signed-off-by: Stephen Checkoway <stephen.checko...@oberlin.edu> > --- > hw/block/pflash_cfi02.c | 153 ++++++++++++++++++++++++++++++++++---- > tests/pflash-cfi02-test.c | 112 ++++++++++++++++++++++++++++ > 2 files changed, 251 insertions(+), 14 deletions(-)
Acked-by: Thomas Huth <th...@redhat.com>