Enable qcow in the device models.
PATCH 4/10 Enable qcow in the device models.
Enable qcow in the device models.
This saves disk space when dealing with large guest images.
Signed-off-by Nitin Kamble <[email protected]>
Signed-off-by Arun Sharma <[email protected]>
diff -r 5d58883fc7b8 -r 499ac8e8df00 tools/ioemu/block.c
tools/ioemu/block.c +1 -0
@@ -544,5 +544,6 @@void bdrv_init (void ) {bdrv_register (&bdrv_raw); +bdrv_register (&bdrv_qcow);bdrv_register (&bdrv_cloop); }
tools/ioemu/target-i386-dm/Makefile +2 -2
@@ -245,8 +245,8 @@ # must use static linking to avoid leaving stuff in virtual address space VL_OBJS=vl.o exec.o monitor.o osdep.o block.o readline.o pci.o console.o -#VL_OBJS+=block-cow.o block-qcow.o block-vmdk.o block-cloop.o -VL_OBJS+= block-cloop.o +VL_OBJS+=block-cow.o block-qcow.o block-vmdk.o block-cloop.o aes.o +#VL_OBJS+= block-cloop.o SOUND_HW = sb16.o AUDIODRV = audio.o noaudio.o wavaudio.o
tools/ioemu/aes.c new file +1317 -0
1,317 lines not on this page · raw message
tools/ioemu/aes.h new file +26 -0
@@ -0,0 +1,26 @@ +#ifndef QEMU_AES_H +#define QEMU_AES_H + +#define AES_MAXNR 14 +#define AES_BLOCK_SIZE 16 + +struct aes_key_st { +uint32_t rd_key[4 *(AES_MAXNR +1 )]; +int rounds; +}; +typedef struct aes_key_st AES_KEY ; + +int AES_set_encrypt_key (const unsigned char *userKey,const int bits, +AES_KEY *key); +int AES_set_decrypt_key (const unsigned char *userKey,const int bits, +AES_KEY *key); + +void AES_encrypt (const unsigned char *in,unsigned char *out, +const AES_KEY *key); +void AES_decrypt (const unsigned char *in,unsigned char *out, +const AES_KEY *key); +void AES_cbc_encrypt (const unsigned char *in,unsigned char *out, +const unsigned long length,const AES_KEY *key, +unsigned char *ivec,const int enc); + +#endif