qapi: First integration of qapi definitions.

Brings headers (and some sources) related to the QEMU object
model up to date with regards to upstream. Note that this misses
several implementation files which are currently not used.

Also misses qemu/cpu.h since it defines CPUState in a completely
different way than our current sources.

Change-Id: I8ece10ff9fcab28cb2e7de3493be21b793b3c98a
diff --git a/blockdev.c b/blockdev.c
index 08fdf57..d39453f 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -592,7 +592,7 @@
     bdrv_flags = bdrv_is_read_only(bs) ? 0 : BDRV_O_RDWR;
     bdrv_flags |= bdrv_is_snapshot(bs) ? BDRV_O_SNAPSHOT : 0;
     if (bdrv_open(bs, filename, bdrv_flags, drv) < 0) {
-        qerror_report(QERR_OPEN_FILE_FAILED, filename);
+        qerror_report(QERR_IO_ERROR);
         return -1;
     }
     return monitor_read_bdrv_key_start(mon, bs, NULL, NULL);