Juan Quintela [Mon, 3 Aug 2009 12:46:37 +0000 (14:46 +0200)]
Fold BLUEZ_LIBS into libs_softmmu
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:36 +0000 (14:46 +0200)]
Fold XEN_LIBS into libs_softmmu
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:35 +0000 (14:46 +0200)]
Fold VNC_SASL_LIBS into libs_softmmu
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:34 +0000 (14:46 +0200)]
Fold VNC_TLS_LIBS into libs_softmmu
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:33 +0000 (14:46 +0200)]
Fold CURSES_LIBS into libsoftmmu_libs
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:32 +0000 (14:46 +0200)]
Test if we need -lutil in ,/configure
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:31 +0000 (14:46 +0200)]
files are only compiled when CONFIG_ADLIB is defined
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:30 +0000 (14:46 +0200)]
Move sound library selection to sound selection
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:29 +0000 (14:46 +0200)]
move coreaudio libraries to coreaudio selection
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:28 +0000 (14:46 +0200)]
gcc generates the right dependency for this file
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:27 +0000 (14:46 +0200)]
Add SDL_LIBS to libs_softmmu
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:26 +0000 (14:46 +0200)]
Add libs_softmmu variable
It is used only for softmmu variables
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:25 +0000 (14:46 +0200)]
move SDL_LIBS Win32 hack to configure
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:24 +0000 (14:46 +0200)]
Refactor HELPER_CFLAGS
Calculate its value in ./configure.
Put together all its uses
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:23 +0000 (14:46 +0200)]
move common QEMU_CFLAGS to configure
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:22 +0000 (14:46 +0200)]
split QEMU_CFLAGS very long line
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:21 +0000 (14:46 +0200)]
Rename CPPFLAGS to QEMU_CFLAGS
Now we have to variables: QEMU_CFLAGS: flags without which we can't compile
CFLAGS: "-g -O2"
We can now run:
make CFLAGS="-fbar" foo.o
make CFLAGS="" foo.o
make CFLAGS="-O3" foo.o
And it all should work.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:20 +0000 (14:46 +0200)]
We set -Werror through configure now
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:19 +0000 (14:46 +0200)]
Move to configure CONFIG_WIN32 libraries needed always
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:18 +0000 (14:46 +0200)]
Move to configure CONFIG_SOLARIS libraries needed always
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:17 +0000 (14:46 +0200)]
CLOCKLIBS was used for all binaries
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:16 +0000 (14:46 +0200)]
PTHREADLIBS was used for all binaries
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:15 +0000 (14:46 +0200)]
We want to pass LIB through configuration files now
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:14 +0000 (14:46 +0200)]
We use -lz for all binaries
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:13 +0000 (14:46 +0200)]
reindent Operating System selection configure
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:12 +0000 (14:46 +0200)]
refactor $cpu selection in various places
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:11 +0000 (14:46 +0200)]
refactor sparc_cpu code to be in a single place
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:10 +0000 (14:46 +0200)]
move sparc_cpu arg parsing to the begining
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:09 +0000 (14:46 +0200)]
refactor kqemu selection for both mingw32
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:08 +0000 (14:46 +0200)]
This variables can't be set here
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:07 +0000 (14:46 +0200)]
move mingw32 code after selection of OS
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:06 +0000 (14:46 +0200)]
__sparc_*__ is defined through -D__sparc_*__
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:05 +0000 (14:46 +0200)]
Add CURL_CFLAGS
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:04 +0000 (14:46 +0200)]
remove unused temporal files
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:03 +0000 (14:46 +0200)]
create compile_object/compile_prog functions
Instead of repeating the code through the file, create this two functions and
call them in all $cc invocations.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:02 +0000 (14:46 +0200)]
move EXTRA_CFLAGS/LDFLAGS to the very beginning
Now, we compile all the tests with the values passed through the command
line.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:01 +0000 (14:46 +0200)]
Remove OS_{CFLAGS, LDFLAGS} and ARCH_{LDFLAGS, CFLAGS}
Fold its values into LDFLAGS and CFLAGS
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:46:00 +0000 (14:46 +0200)]
We want to add options at the beggining, not at the end of variables
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:45:59 +0000 (14:45 +0200)]
move general CFLAGS/LDFLAGS definitions after last $cc run
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:45:58 +0000 (14:45 +0200)]
move checks for bswap32/bswap_32 sooner than starting of printing variables
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:45:57 +0000 (14:45 +0200)]
remove not needed rt variable
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:45:56 +0000 (14:45 +0200)]
move check_linker_flags sooner than starting of printing variables
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:45:55 +0000 (14:45 +0200)]
move cpu command line setting to the beggining
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:45:54 +0000 (14:45 +0200)]
Use CFLAGS from enviroment, ARCH_CFLAGS hasn't been defined yet
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:45:53 +0000 (14:45 +0200)]
oss variable don't exist anymore
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Juan Quintela [Mon, 3 Aug 2009 12:45:52 +0000 (14:45 +0200)]
strip binary is not used anywhere
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Stefano Stabellini [Mon, 3 Aug 2009 15:14:39 +0000 (16:14 +0100)]
vga: do not resize the screen on hw_invalidate
Hi all,
currently vga always resizes the screen when vga_hw_invalidate is called
while this is not required and all the other graphic emulators don't.
This patch fixes it, making vga invalidate behaviour consistent with the
other emulated devices.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Stefano Stabellini [Mon, 3 Aug 2009 15:10:43 +0000 (16:10 +0100)]
fix sdl window resize
Hi all,
this patch fixes the sdl window resize event handler so that it doesn't
require the emulated graphic card (or console.c) to call
qemu_console_resize.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Stefano Stabellini [Mon, 3 Aug 2009 09:56:01 +0000 (10:56 +0100)]
variable timer intervals
This patch introduces dynamic timer intervals: we slow down the refresh
rate when there in no much activity but we get back to a fast refresh
rate when the activity resume.
Please note that qemu_timer_expired is not an inline function any more
because I needed to call it from vnc.c however I don't think this change
should have any serious consequence.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Stefano Stabellini [Mon, 3 Aug 2009 09:54:32 +0000 (10:54 +0100)]
single vnc server surface
This patch removes the server surface from VncState and adds a single
server surface to VncDisplay for all the possible clients connected.
Each client maintains a different dirty bitmap in VncState.
The guest surface is moved to VncDisplay as well because we don't need
to track guest updates in more than one place.
This patch has been updated to handle CopyRect correctly and efficiently.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Stefano Stabellini [Mon, 3 Aug 2009 09:54:05 +0000 (10:54 +0100)]
a single vnc timer to refresh the screen
This patch removes the timer per vnc client connected and adds a single
timer to update all the possible clients.
We call vga_hw_update only once in the timer handler.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Alexander Graf [Sat, 1 Aug 2009 09:48:31 +0000 (11:48 +0200)]
Fix checksum writing in signboot.sh
The printf command takes an octal value after \, so we have to convert
our decimal representation to octal first and then write it.
This unbreaks extboot signing. Multiboot wasn't affected yet because
the checksum was < 8.
Spotted and first patch by Glauber Costa <glommer@redhat.com>.
Printf idea by Paolo Bonzini <bonzini@gnu.org>.
Signed-off-by: Alexander Graf <agraf@suse.de>
CC: Glauber Costa <glommer@redhat.com>
CC: Paolo Bonzini <bonzini@gnu.org>
CC: Jan Ondrej <ondrejj@salstar.sk>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Stefan Weil [Fri, 31 Jul 2009 19:45:56 +0000 (21:45 +0200)]
Add new block driver for the VDI format (only aio supported)
This is a new block driver written from scratch
to support the VDI format in QEMU.
VDI is the native format used by Innotek / SUN VirtualBox.
Latest changes:
* stripped down version
(code for synchronous operations and experimental code removed)
* don't open VDI snapshot images (with uuid_link or uuid_parent)
* modified vdi_aio_cancel
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Stefan Weil [Fri, 31 Jul 2009 19:30:45 +0000 (21:30 +0200)]
Win32: Fix default prefix
The old code resulted in wrong escape sequences:
#define CONFIG_QEMU_SHAREDIR "c:\Program Files\Qemu"
gcc warnings:
vl.c:5708:20: warning: unknown escape sequence '\P'
vl.c:5708:20: warning: unknown escape sequence '\Q'
Windows can handle slash (/) path separators,
and QEMU already adds directories using slash,
so there is no need to fight with the correct number
of backslashes.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:30:18 +0000 (12:30 +0200)]
qdev/isa: convert fdc.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:30:17 +0000 (12:30 +0200)]
qdev/isa: make pc use qdev for i8042 setup.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:30:16 +0000 (12:30 +0200)]
qdev/isa: make the piix isa bridge register an isa bus.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:30:15 +0000 (12:30 +0200)]
qdev/isa: add qdev support to i8042 (aka ps/2 kbd+mouse).
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:30:14 +0000 (12:30 +0200)]
qdev/isa: add isa bus support to qdev.
Pretty simple and straigt forward.
IRQs modeled simliar to sysbus.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:25:41 +0000 (12:25 +0200)]
qdev-ify virtio-blk.
First user of the new drive property. With this patch applied host
and guest config can be specified separately, like this:
-drive if=none,id=disk1,file=/path/to/disk.img
-device virtio-blk-pci,drive=disk1
You can set any property for virtio-blk-pci now. You can set the pci
address via addr=. You can switch the device into 0.10 compat mode
using class=0x0180. As this is per device you can have one 0.10 and one
0.11 virtio block device in a single virtual machine.
Old syntax continues to work. Internally it does the same as the two
lines above though. One side effect this has is a different
initialization order, which might result in a different pci address
being assigned by default.
Long term plan here is to have this working for all block devices, i.e.
once all scsi is properly qdev-ified you will be able to do something
like this:
-drive if=none,id=sda,file=/path/to/disk.img
-device lsi,id=lsi,addr=<pciaddr>
-device scsi-disk,drive=sda,bus=lsi.0,lun=<n>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:25:40 +0000 (12:25 +0200)]
qdev/prop: add drive property.
Adds a (host) drive property, intended to be used by virtual disk
backend drivers.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:25:39 +0000 (12:25 +0200)]
add -drive if=none
This adds a host drive, but doesn't implicitly add a guest drive for it.
First step in splitting host and guest configuration, check the
following patches to see how this can be used ...
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:25:38 +0000 (12:25 +0200)]
constify drive_get_by_id arg
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:25:37 +0000 (12:25 +0200)]
QemuOpts: switch over -device.
Make -device switch use the QemuOpts framework.
Everything should continue to work like it did before.
New: "-set device.$id.$property=$value" works.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:25:36 +0000 (12:25 +0200)]
QemuOpts: add -set option
One use case will be file for drives (no filename quoting issues), i.e.
-drive id=test,if=virtio
-set drive.test.file=/vmdisk/test-virtio.img
It will work for any other option (assuming handled by QemuOpts) though.
Except for id= for obvious reasons ;).
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:25:35 +0000 (12:25 +0200)]
QemuOpts: create qemu-config.h
Move drive option description there.
Rename it, give it a qemu_ prefix.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:25:34 +0000 (12:25 +0200)]
QemuOpts: make the drive id actually show up in "info block".
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:25:33 +0000 (12:25 +0200)]
QemuOpts: qemu_opts_parse: fix id= parsing
We can't use get_param_value(), it can't handle parameters without
'=' in there. Examples not working because of that:
-device foo,id=bar
-device file=/path/image,format=qcow2,snapshot,id=disk0
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann [Fri, 31 Jul 2009 10:25:32 +0000 (12:25 +0200)]
QemuOpts: add some functions
qemu_opt_foreach: loop over all QemuOpts entries.
qemu_opts_id: return QemuOpts id.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Laurent Desnogues [Thu, 30 Jul 2009 17:23:49 +0000 (19:23 +0200)]
Fix symfind.
this patch fixes an issue in symfind.
Assume you have the following symbols:
Address Size
0045bca0 00000080 T s0
0045bd20 00000112 T s1
You'll notice that s1 is s0 + size.
So the current symfind will find that address
0045bd20 belongs to s0
instead of s1.
Laurent
Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Christoph Egger [Thu, 30 Jul 2009 13:33:57 +0000 (15:33 +0200)]
configure: let it find xen headers and libs
Attached patch lets configure find xen headers and libs
with --extra-cflags and --extra-ldlfags option.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Christoph Egger [Thu, 30 Jul 2009 13:28:45 +0000 (15:28 +0200)]
tolower -> qemu_tolower
Use qemu_tolower() instead of tolower().
Fixes warning on NetBSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
malc [Sun, 9 Aug 2009 23:40:16 +0000 (03:40 +0400)]
Do not try to invoke shebang scripts directly (NFS issues)
Signed-off-by: malc <av1474@comtv.ru>
Blue Swirl [Sun, 9 Aug 2009 08:42:19 +0000 (08:42 +0000)]
Use qemu_irq for system_powerdown
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Sun, 9 Aug 2009 07:27:29 +0000 (07:27 +0000)]
Sparc32: use qemu_irq for system_powerdown
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Sat, 8 Aug 2009 21:43:12 +0000 (21:43 +0000)]
Sparc32: move sparc32_dma init to sun4m.c
Also connect ESP and Lance reset signals to DMA.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Sat, 8 Aug 2009 21:04:18 +0000 (21:04 +0000)]
Sparc32: remove VRAM and NVRAM sizes from hwdef
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Sat, 8 Aug 2009 20:55:37 +0000 (20:55 +0000)]
Sparc32: remove IRQ numbers from hwdef
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Sat, 8 Aug 2009 20:36:08 +0000 (20:36 +0000)]
Sparc32: move intbit_to_level table back to slavio_intctl.c
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Sat, 8 Aug 2009 20:24:47 +0000 (20:24 +0000)]
Sparc32: move device instantiation to sun4m.c
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Sat, 8 Aug 2009 20:08:15 +0000 (20:08 +0000)]
Sparc32: Refactor slavio timer
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Sat, 8 Aug 2009 10:47:15 +0000 (10:47 +0000)]
ppc_newworld: configure screen size from QEMU command line options
Use the FW_CFG interface to send user requested screen size and depth to
OpenBIOS like
7f1aec5f93382eef75920899f4065613aeaf02a2 for ppc_oldworld.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Sat, 8 Aug 2009 10:44:56 +0000 (10:44 +0000)]
Sparc64: configure screen size from QEMU command line options
Use the FW_CFG interface to send user requested screen size and depth to
OpenBIOS like
7f1aec5f93382eef75920899f4065613aeaf02a2 for ppc_oldworld.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Laurent Vivier [Sat, 8 Aug 2009 10:19:24 +0000 (10:19 +0000)]
ppc_oldworld: configure screen size from qemu command line options
This patch uses the FW_CFG interface to send user requested screen size
and depth to openbios.
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Igor Kovalenko [Mon, 3 Aug 2009 19:15:02 +0000 (23:15 +0400)]
Sparc64: replace tsptr with helper routine
tl and tsptr of members sparc64 cpu state must be changed
simultaneously to keep trap state window in sync with current
trap level. Currently translation of store to tl does not change
tsptr, which leads to corrupt trap state on corresponding
trap level.
This patch removes tsptr from sparc64 cpu state and replaces
all uses with call to helper routine.
Changes v0->v1:
- reimplemented helper routine with tcg generator
- on cpu reset trap type and pstate are populated with power-on reset
values, including tl=maxtl
Signed-off-by: igor.v.kovalenko@gmail.com
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Nathan Froyd [Mon, 3 Aug 2009 15:43:29 +0000 (08:43 -0700)]
linux-user: make FUTEX_* calls honor timeout parameter
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: malc <av1474@comtv.ru>
Nathan Froyd [Mon, 3 Aug 2009 15:43:28 +0000 (08:43 -0700)]
enable NPTL for ppc-linux-user targets in configure
Enabling support for ppc64-linux-user should be easy enough to do later.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: malc <av1474@comtv.ru>
Nathan Froyd [Mon, 3 Aug 2009 15:43:27 +0000 (08:43 -0700)]
linux-user: handle POWERPC_EXCP_STCX
We handle conditional stores as an exception so we can ensure that no
other thread is changing memory out from underneath us.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: malc <av1474@comtv.ru>
Nathan Froyd [Mon, 3 Aug 2009 15:43:26 +0000 (08:43 -0700)]
target-ppc: add exceptions for conditional stores
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: malc <av1474@comtv.ru>
Nathan Froyd [Mon, 3 Aug 2009 15:43:25 +0000 (08:43 -0700)]
target-ppc: retain l{w,d}arx loaded value
We do this so we can check on the corresponding stc{w,d}x. whether the
value has changed. It's a poor man's form of implementing atomic
operations and is valid only for NPTL usermode Linux emulation.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: malc <av1474@comtv.ru>
Nathan Froyd [Mon, 3 Aug 2009 15:43:24 +0000 (08:43 -0700)]
target-ppc: add cpu_set_tls
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: malc <av1474@comtv.ru>
Nathan Froyd [Mon, 3 Aug 2009 15:43:23 +0000 (08:43 -0700)]
target-ppc: fix cpu_clone_regs
We only need to make sure that the clone syscall looks like it
succeeded, not clobber 60% of the register set.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: malc <av1474@comtv.ru>
Blue Swirl [Sat, 1 Aug 2009 10:29:42 +0000 (10:29 +0000)]
Fix Sparse warning about missing prototype
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Sat, 1 Aug 2009 10:13:44 +0000 (10:13 +0000)]
Fix Sparse warning about "expression using sizeof on a function"
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Sat, 1 Aug 2009 10:13:43 +0000 (10:13 +0000)]
Add missing "static"
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Sat, 1 Aug 2009 10:13:20 +0000 (10:13 +0000)]
More NULL pointer fixes
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Fri, 31 Jul 2009 21:16:51 +0000 (21:16 +0000)]
Fix Sparse warnings: "Using plain integer as NULL pointer"
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Fri, 31 Jul 2009 20:23:28 +0000 (20:23 +0000)]
PPC: convert Uni-north to qdev: also fixes Mac99 machine crash
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl [Fri, 31 Jul 2009 20:23:02 +0000 (20:23 +0000)]
PPC: convert Grackle to qdev
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Paul Brook [Fri, 31 Jul 2009 12:18:32 +0000 (13:18 +0100)]
Option rom makefile fixes
Fix toplevel option rom makefile rules.
Signed-off-by: Paul Brook <paul@codesourcery.com>