aio update for composite and partition block drivers and a fix for -kernel boot
RFC PATCH 1/1 aio update for composite and partition block drivers and a fix for -kernel boot
block-composite now fully supports AIO.
block-partition's MBR geometry has been fixed, linux fdisk no longer complains about a mismatch between logical and physical geometry.
Pretty much the only thing remaining is to clean up the syntax.
I've also included a second patch that fixes -kernel boot so a supporting -hda is no longer required. (This has been moved to -fda instead, additionally the block-ram driver is used if the floppy disk is booted up empty and automatically unloaded after the kernel has started booting.)
Makefile +1 -1
@@ -37,7 +37,7 @@ recurse-all: $(patsubst %,subdir-%, $(TARGET_DIRS)) -qemu-img$(EXESUF): qemu-img.c cutils.c block.c block-raw.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c block-vpc.c block-vvfat.c block-qcow2.c +qemu-img$(EXESUF): qemu-img.c cutils.c block.c block-raw.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c block-vpc.c block-vvfat.c block-qcow2.c block-composite.c block-ram.c block-partition.c $(CC) -DQEMU_TOOL $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) $(LDFLAGS) $(BASE_LDFLAGS) -o $@ $^ -lz $(LIBS) dyngen$(EXESUF): dyngen.c
Makefile.target +1 -1
@@ -322,7 +322,7 @@ # must use static linking to avoid leaving stuff in virtual address space VL_OBJS=vl.o osdep.o readline.o monitor.o pci.o console.o loader.o isa_mmio.o VL_OBJS+=cutils.o -VL_OBJS+=block.o block-raw.o +VL_OBJS+=block.o block-raw.o block-composite.o block-ram.o block-partition.o VL_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o block-qcow2.o ifdef CONFIG_WIN32 VL_OBJS+=tap-win32.o
block-composite.c +552 -0
552 lines not on this page · raw message
block-partition.c +417 -0
417 lines not on this page · raw message
block-ram.c +109 -0
109 lines not on this page · raw message
block.c +3 -0
@@ -1241,6 +1241,9 @@bdrv_register (&bdrv_vpc);bdrv_register (&bdrv_vvfat);bdrv_register (&bdrv_qcow2); +bdrv_register (&bdrv_composite); +bdrv_register (&bdrv_ram); +bdrv_register (&bdrv_partition); } void *qemu_aio_get(BlockDriverState *bs, BlockDriverCompletionFunc *cb,
block_composite.h +54 -0
54 lines not on this page · raw message
vl.h +3 -0
@@ -557,6 +557,9 @@extern BlockDriver bdrv_vpc;extern BlockDriver bdrv_vvfat;extern BlockDriver bdrv_qcow2; +extern BlockDriver bdrv_composite; +extern BlockDriver bdrv_ram; +extern BlockDriver bdrv_partition; typedef struct BlockDriverInfo { /* in bytes, 0 if irrelevant */
pc.c +48 -7
88 lines not on this page · raw message