- 31 Jul, 2010 3 commits
-
-
Hervé Poussineau authored
Signed-off-by:
Hervé Poussineau <hpoussin@reactos.org> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Hervé Poussineau authored
Remove unused constant MIPS_FCR0 Signed-off-by:
Hervé Poussineau <hpoussin@reactos.org> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Hervé Poussineau authored
Add a macro to easily enable/disable debug prints Also fix wrong printf formatters Signed-off-by:
Hervé Poussineau <hpoussin@reactos.org> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
- 30 Jul, 2010 12 commits
-
-
Edgar E. Iglesias authored
Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Edgar E. Iglesias authored
Set high to a word aligned address beyond loaded image. Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Mike McCormack authored
This header is not present on my system and causes a build failure, but is also not used in these files, so remove it. Signed-off-by:
Mike McCormack <mikem@ring3k.org> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Amit Shah authored
When a 'cont' is issued on a VM that's just waiting for an incoming migration, the VM reboots and boots into the guest, possibly corrupting its storage since it could be shared with another VM running elsewhere. Ensure that a VM started with '-incoming' is only run when an incoming migration successfully completes. A new qerror, QERR_MIGRATION_EXPECTED, is added to signal that 'cont' failed due to no incoming migration has been attempted yet. Reported-by:
Laine Stump <laine@redhat.com> Signed-off-by:
Amit Shah <amit.shah@redhat.com> Reviewed-by:
Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Isaku Yamahata authored
Use PCI_DEVFN() where appropriate. The resulted stripped binary remains same with/without thie patch. Cc: Huacai Chen <zltjiangshi@gmail.com> Cc: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by:
Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Joel Schopp authored
We already set sockets to nonzero in the code above. So this if statement always evaluates true. Remove it. Signed-off-by:
Joel Schopp <jschopp@austin.ibm.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Joel Schopp authored
The variable len can get a negative return value from cvtnum, which we check for, but which is impossible with the current unsigned variable type. Currently the if(len < 0) check is pointless. This patch fixes that. Signed-off-by:
Joel Schopp <jschopp@austin.ibm.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Joel Schopp authored
Removing dead code. Above we already continued when rom->addr + valuegreaterthan0 < addr so this condition is always false. Signed-off-by:
Joel Schopp <jschopp@austin.ibm.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Alex Williamson authored
Forgot to check for and free these. Found-by:
Zachary Amsden <zamsden@redhat.com> Signed-off-by:
Alex Williamson <alex.williamson@redhat.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Amit Shah authored
Currently virtio-serial supports a maximum of 31 ports. Specifying the 'max_ports' parameter to be > 31 on the cmd line causes badness. Ensure we initialise virtio-serial only if max_ports is within the supported range. Signed-off-by:
Amit Shah <amit.shah@redhat.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
git://repo.or.cz/qemu/kevinAurelien Jarno authored
* 'for-anthony' of git://repo.or.cz/qemu/kevin: Fix -snapshot deleting images on disk change block: Use error codes from lower levels for error message block: default to 0 minimal / optiomal I/O size move 'unsafe' to end of caching modes in help virtio-blk: Create exit function to unregister savevm block migration: propagate return value when bdrv_write() returns < 0 ide/atapi: add support for GET EVENT STATUS NOTIFICATION
-
Aurelien Jarno authored
Commit 68a1c816 broke qemu on hosts not using guest base. It uses reserved_va unconditionally in mmap.c. To avoid to many #ifdef #endif blocks, define RESERVED_VA as either reserved_va or 0ul, and use it instead of reserved_va, similarly to what has been done with guest_base/GUEST_BASE.
-
- 29 Jul, 2010 15 commits
-
-
Richard Henderson authored
Cc: malc <av1474@comtv.ru> Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
malc <av1474@comtv.ru>
-
Edgar E. Iglesias authored
Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Edgar E. Iglesias authored
Verified on real HW. Signed-off-by:
Edgar E. Iglesias <edgar@axis.com>
-
Richard Henderson authored
This requires moving the PT_INTERP extraction and GUEST_BASE handling into load_elf_image. Key this off a non-null pointer argument to receive the interpreter name. Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Richard Henderson authored
Moving toward a single copy of the elf binary loading code. Fill in the details of the loaded image into a struct image_info. Adjust create_elf_tables to read from such structures instead of from a collection of passed arguments. Don't return error values from load_elf_interp; always exit(-1) with a message to stderr. Collect elf_interpreter handling in load_elf_binary to a common spot. Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Richard Henderson authored
At the bottom of the a.out support was the unimplemented load_aout_interp function. There were other portions of the support that didn't look right; when I went to look in the Linux kernel for clarification, I found that the support for such interpreters has been removed from binfmt_elf. There doesn't seem to be any reason to keep this broken support in qemu. Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Richard Henderson authored
There are no supported stack-grows-up targets. We were putting the guard page at the highest address, i.e. the bottom of the stack. Use the maximum of host and guest page size for the guard size. Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Richard Henderson authored
Validate more fields of the elf header. Extract those checks into two common functions to be used in both load_elf_interp and load_elf_binary. Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Richard Henderson authored
First, adjust load_symbols to accept a load_bias parameter. At the same time, read the entire section header table in one go, use pread instead f lseek+read for the symbol and string tables, and properly free allocated structures on error exit paths. Second, adjust load_elf_interp to compute load_bias. This requires finding out the built-in load addresses. Which allows us to honor a pre-linked interpreter image when possible, and eliminate the hard-coded INTERP_MAP_SIZE value. Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Richard Henderson authored
Remove ifdefs from code by defining empty inline functions when byte swapping isn't needed. Push loops over swapping arrays of structures into the swapping functions. Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Richard Henderson authored
The only consideration on this value is the target endianness. The existing defines were incorrect for alpha and sh4eb. Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Richard Henderson authored
Define BPRM_BUF_SIZE to 1k and read that amount initially. If the data we want from the binary is in this buffer, use it instead of reading from the file again. Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Richard Henderson authored
Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Richard Henderson authored
Moving some PPC AT_* constants from elfload.c at the same time. Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Richard Henderson authored
I caught padzero not properly initializing the .bss segment on a statically linked Alpha program. Rather than a minimal patch, replace the gross code with a single mmap+memset. Share more code between load_elf_interp and load_elf_binary. Legally, an ELF program need not have just a single .bss; and PT_LOAD segment can have memsz > filesz. Signed-off-by:
Richard Henderson <rth@twiddle.net> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
- 28 Jul, 2010 1 commit
-
-
Anthony Liguori authored
Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
- 27 Jul, 2010 4 commits
-
-
Blue Swirl authored
Fix mingw32 build errors like /src/qemu/ui/vnc-enc-tight.c: In function 'tight_detect_smooth_image24': /src/qemu/ui/vnc-enc-tight.c:119: error: 'uint' undeclared (first use in this function) Replace 'uint' with proper 'unsigned int'. Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Blue Swirl authored
Fix a warning with some GCCs: /src/qemu/ui/vnc-enc-tight.c: In function `send_sub_rect_nojpeg': /src/qemu/ui/vnc-enc-tight.c:1458: warning: `ret' might be used uninitialized in this function Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Blue Swirl authored
Fix the following warnings: /src/qemu/hw/ide/core.c: In function `ide_drive_pio_post_load': /src/qemu/hw/ide/core.c:2767: warning: comparison is always false due to limited range of data type /src/qemu/ui/vnc-enc-tight.c: In function `tight_detect_smooth_image': /src/qemu/ui/vnc-enc-tight.c:284: warning: comparison is always true due to limited range of data type /src/qemu/ui/vnc-enc-tight.c:297: warning: comparison is always true due to limited range of data type /src/qemu/ui/vnc-enc-tight.c: In function `tight_encode_indexed_rect16': /src/qemu/ui/vnc-enc-tight.c:456: warning: comparison is always false due to limited range of data type /src/qemu/ui/vnc-enc-tight.c: In function `tight_encode_indexed_rect32': /src/qemu/ui/vnc-enc-tight.c:457: warning: comparison is always false due to limited range of data type Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Anthony Liguori authored
Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
- 26 Jul, 2010 5 commits
-
-
Corentin Chary authored
vnc_jpeg and vnc_png are now "auto" by default, this means that if the dependencies are installed (libjpeg or libpng), then they will be enabled. vnc_thread is disabled by default. It should be enabled by default as soon as it's stable enougth. Signed-off-by:
Corentin Chary <corentincj@iksaif.net> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Corentin Chary authored
Split send_sub_rect in send_sub_rect_jpeg and send_sub_rect_nojpeg to remove all these #ifdef CONFIG_JPEG. Signed-off-by:
Corentin Chary <corentincj@iksaif.net> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Corentin Chary authored
rgb_prepare_row bpp depends on the server display surface, not the client. Signed-off-by:
Corentin Chary <corentincj@iksaif.net> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Corentin Chary authored
All vnc_write() calls must be locked (except the ones present before the protocol initialization). Signed-off-by:
Corentin Chary <corentincj@iksaif.net> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Corentin Chary authored
Implement a threaded VNC server using the producer-consumer model. The main thread will push encoding jobs (a list a rectangles to update) in a queue, and the VNC worker thread will consume that queue and send framebuffer updates to the output buffer. The threaded VNC server can be enabled with ./configure --enable-vnc-thread. If you don't want it, just use ./configure --disable-vnc-thread and a syncrhonous queue of job will be used (which as exactly the same behavior as the old queue). If you disable the VNC thread, all thread related code will not be built and there will be no overhead. Signed-off-by:
Corentin Chary <corentincj@iksaif.net> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-