Not marking this as an RFC because I want to commit itif everyone is happy with it. Otherwise please treat it like an RFC. I don't mind too much if you think we shouldn't do this, it's just an option for which I wanted to try what it would look like.
Kevin Wolf (5): ide: Split atapi.c out ide/atapi: Factor some commands out ide/atapi: Use table instead of switch for commands ide/atapi: Replace bdrv_get_geometry calls by s->nb_sectors ide/atapi: Introduce NEED_DISK flag for commands Makefile.objs | 2 +- hw/ide/atapi.c | 1132 +++++++++++++++++++++++++++++++++++++++++++++++++++++ hw/ide/core.c | 1065 +------------------------------------------------- hw/ide/internal.h | 14 +- 4 files changed, 1147 insertions(+), 1066 deletions(-) create mode 100644 hw/ide/atapi.c -- 1.7.2.3