Juha Riihimäki [Mon, 30 Mar 2009 08:15:18 +0000 (11:15 +0300)]
save/load vmstate support in omap3 hsusb host & clean-ups
Juha Riihimäki [Mon, 30 Mar 2009 07:50:34 +0000 (10:50 +0300)]
add omap3 hsusb ohci support
Juha Riihimäki [Fri, 27 Mar 2009 18:50:56 +0000 (20:50 +0200)]
cocoa.m clean-up
Juha Riihimäki [Fri, 27 Mar 2009 18:39:05 +0000 (20:39 +0200)]
clean-up
Juha Riihimäki [Fri, 27 Mar 2009 11:36:23 +0000 (13:36 +0200)]
fix vmstate blockdriver to work with upstream changes
Juha Riihimäki [Fri, 27 Mar 2009 11:29:13 +0000 (13:29 +0200)]
Merge commit 'origin/upstream' into juha-devel
pbrook [Tue, 17 Mar 2009 12:19:58 +0000 (12:19 +0000)]
Fix ARM quadword VDUP (core register).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6857
c046a42c-6fe2-441c-8c8c-
71466251a162
Juha Riihimäki [Fri, 27 Mar 2009 10:04:13 +0000 (12:04 +0200)]
fix hw/beagle.c after merge
Juha Riihimäki [Fri, 27 Mar 2009 10:02:14 +0000 (12:02 +0200)]
Merge commit 'origin/riku-devel' into juha-devel
Juha Riihimäki [Fri, 27 Mar 2009 09:57:44 +0000 (11:57 +0200)]
vmstate save/load support in onenand.c
Juha Riihimäki [Fri, 27 Mar 2009 08:52:45 +0000 (10:52 +0200)]
support for booting from onenand on omap3
Juha Riihimäki [Fri, 27 Mar 2009 08:42:23 +0000 (10:42 +0200)]
less intrusive nand support in omap gpmc
Mika Westerberg [Thu, 26 Mar 2009 11:35:49 +0000 (13:35 +0200)]
linux-user: added ELF coredump support for ARM target
When target process is killed with signal (such signal that
should dump core) a coredump file is created. This file is
similar than coredump generated by Linux (there are few execption
though). Current version only supports ARM target coredumps
but it is easy to add support for other targets as it only needs
to define USE_ELF_COREDUMP and provide implementation for
elf_core_copy_regs() function.
See linux-user/elfload.c for more information.
Riku Voipio [Thu, 26 Mar 2009 12:49:56 +0000 (14:49 +0200)]
Update changelog
Riku Voipio [Thu, 26 Mar 2009 12:45:29 +0000 (14:45 +0200)]
Add package for system-qemu
Jussi Hakala [Mon, 23 Mar 2009 14:48:24 +0000 (16:48 +0200)]
sb1-qemu: create more scratchbox-like package
Riku Voipio [Thu, 26 Mar 2009 12:30:56 +0000 (14:30 +0200)]
Whitespace cleanup
By Jussi Hakala
Riku Voipio [Thu, 26 Mar 2009 12:29:07 +0000 (14:29 +0200)]
renovate debian/rules
Jussi Hakala [Tue, 24 Mar 2009 16:42:18 +0000 (18:42 +0200)]
revert to original implementation of sbox-call
Juha Riihimäki [Thu, 26 Mar 2009 10:37:03 +0000 (12:37 +0200)]
omap3 spi fifo behavior updates
Juha Riihimäki [Thu, 26 Mar 2009 08:52:35 +0000 (10:52 +0200)]
introduce flag to reduce number of mapped i/o regions
Riku Voipio [Wed, 25 Mar 2009 16:46:08 +0000 (18:46 +0200)]
Make it possible to attach smc91x to memory controllers
To register smc91x properly under omap gpmc, we need
to not to register the physical memory in smc91x
init itself. Add a new parameter phys_alloc and use
it everywhere.
Riku Voipio [Wed, 25 Mar 2009 16:45:09 +0000 (18:45 +0200)]
mcspi changes made us run out of iomem areas..
Riku Voipio [Tue, 24 Mar 2009 16:39:59 +0000 (18:39 +0200)]
Add smc support
Juha Riihimäki [Wed, 25 Mar 2009 10:48:41 +0000 (12:48 +0200)]
1st take on OMAP3 SPI FIFO + OMAP3 GPIO IRQ fix
Juha Riihimäki [Tue, 24 Mar 2009 07:33:54 +0000 (09:33 +0200)]
omap i2c code clean-up
Juha Riihimäki [Tue, 24 Mar 2009 06:29:01 +0000 (08:29 +0200)]
change unknown register read/writes to non-fatal
Juha Riihimäki [Mon, 23 Mar 2009 13:56:04 +0000 (15:56 +0200)]
initial SPI support for OMAP3
Juha Riihimäki [Mon, 23 Mar 2009 10:48:13 +0000 (12:48 +0200)]
Merge commit 'origin/master' into juha-devel
Conflicts:
hw/beagle.c
hw/omap3.c
hw/usb-musb.c
Juha Riihimäki [Mon, 23 Mar 2009 10:28:56 +0000 (12:28 +0200)]
fix OMAP3 uart init so it works with vmstate load/save
Juha Riihimäki [Mon, 23 Mar 2009 10:27:36 +0000 (12:27 +0200)]
introduce "vmstate" image format
this is needed to support vmstate load/save operations as it seems this is not working properly with the only other image format that supports vmstates (qcow2)
Juha Riihimäki [Mon, 23 Mar 2009 10:25:17 +0000 (12:25 +0200)]
vmstate load/save support for Triton2 & OMAP3 USB
balrog [Sat, 21 Mar 2009 01:09:16 +0000 (01:09 +0000)]
Fix absolute mouse events generated by SDL frontend.
In r6839 ("DisplayAllocator interface") the "width" and "height" globals
stopped ever being assigned. Note that last time absolute input stopped
working was for the same reason.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6875
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 20 Mar 2009 18:26:16 +0000 (18:26 +0000)]
Move block dma helpers aiocb to store dma state (Avi Kivity)
Use the dedicated dma aiocb to store intermediate state for dma block
transactions.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6874
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 20 Mar 2009 18:26:12 +0000 (18:26 +0000)]
Use vectored aiocb storage to store vector translation state (Avi Kivity)
Now that we have a dedicated acb pool for vector translation acbs, we can
store the vector translation state in the acbs instead of in an external
structure.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6873
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 20 Mar 2009 18:26:07 +0000 (18:26 +0000)]
Implement cancellation method for dma async I/O (Avi Kivity)
Move the dma helpers to a private aio pool, and implement a cancellation
method for them. Should prevent issues when cancelling I/O while dma is
in progress.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6872
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 20 Mar 2009 18:26:03 +0000 (18:26 +0000)]
Convert vectored aio emulation to use a dedicated pool (Avi Kivity)
This allows us to remove a hack in the vectored aio cancellation code.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6871
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 20 Mar 2009 18:25:59 +0000 (18:25 +0000)]
Refactor aio callback allocation to use an aiocb pool (Avi Kivity)
Move the AIOCB allocation code to use a dedicate structure, AIOPool. AIOCB
specific information, such as the AIOCB size and cancellation routine, is
moved into the pool.
At present, there is exactly one pool per block format driver, maintaining
the status quo.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6870
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 20 Mar 2009 16:13:50 +0000 (16:13 +0000)]
virtio: Allow guest to defer VIRTIO_F_NOTIFY_ON_EMPTY (Alex Williamson)
There may be cases where the guest does not want the avail queue
interrupt, even when it's empty. For the virtio-net case, the
guest may use a different buffering scheme or decide polling for
used buffers is more efficient. This can be accomplished by simply
checking for whether the guest has acknowledged the existing notify
on empty flag.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6865
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 20 Mar 2009 16:13:47 +0000 (16:13 +0000)]
e1000: Fix RX descriptor low threshold interrupt logic (Alex Williamson)
The RXDMT0 interrupt is supposed to fire when the number of free
RX descriptors drops to some fraction of the total descriptors.
However in practice, it seems like we're adding this interrupt
cause on every RX. Fix the logic to treat (tail - head) as the
number of free entries rather than the number of used entries.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6864
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 20 Mar 2009 16:13:41 +0000 (16:13 +0000)]
x86: Add NULL check to lsl (Jan Kiszka)
According to the Intel specs, lsl performs a check against NULL for the
provided selector, just like lar does. helper_lar() includes the
corresponding code, helper_lsl() was lacking it so far.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6863
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 20 Mar 2009 15:59:24 +0000 (15:59 +0000)]
vnc: throttle screen updates. (Gerd Hoffmann)
This patch makes the vnc server code skip screen refreshes in case
there is data in the output buffer. This reduces the refresh rate to
throttle the bandwidth needed in case the network link is saturated.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6862
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 20 Mar 2009 15:59:18 +0000 (15:59 +0000)]
vnc: fix printf warnings showing up with VNC_DEBUG enabled. (Gerd Hoffmann)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6861
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 20 Mar 2009 15:59:14 +0000 (15:59 +0000)]
vnc: cleanup surface handling, fix screen corruption bug. (Gerd Hoffmann)
This patch killes the old_data hack in the qemu server and replaces
it with a clean separation of the guest-visible display surface and
the vnc server display surface. Both guest and server surface have
their own dirty bitmap for tracking screen updates.
Workflow is this:
(1) The guest writes to the guest surface. With shared buffers being
active the guest writes are directly visible to the vnc server code.
Note that this may happen in parallel to the vnc server code running
(today only in xenfb, once we have vcpu threads in qemu also for
other display adapters).
(2) vnc_update() callback tags the specified area in the guest dirty
map.
(3) vnc_update_client() will first walk through the guest dirty map. It
will compare guest and server surface for all regions tagged dirty
and in case the screen content really did change the server surface
and dirty map are updated.
Note: old code used old_data in a simliar way, so this does *not*
introduce an extra memcpy.
(4) Then vnc_update_cient() will send the updates to the vnc client
using the server surface and dirty map.
Note: old code used the guest-visible surface instead, causing
screen corruption in case of guest screen updates running in
parallel.
The separate dirty bitmap also has the nice effect that forced screen
updates can be done cleanly by simply tagging the area in both guest and
server dirty map. The old, hackish way was memset(old_data, 42, size)
to trick the code checking for screen changes.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6860
c046a42c-6fe2-441c-8c8c-
71466251a162
Riku Voipio [Thu, 19 Mar 2009 15:36:13 +0000 (17:36 +0200)]
packing update
Mika Westerberg [Thu, 19 Mar 2009 14:48:05 +0000 (16:48 +0200)]
linux-user: removed unnecessary MAX_SOCK_ADDR checks for socket syscalls
- This check is not needed because kernel will check whether given
buffer is too small and there is no upper limit for size of the buffer.
Riku Voipio [Tue, 17 Mar 2009 15:19:55 +0000 (17:19 +0200)]
Convert musb fifo to 8bit to allow 8/16/32bit access
MUSB allows reading and writing to the fifo in 32/16/8 bit
width. The Linux kernel does this sometimes, most usually at
the end of writing the packet to allow packet to end at a
odd bytecount.
Convert the fifo to 8bit allows removing lots of shifts
which shows that the fifo is more natural as 8bit.
Riku Voipio [Tue, 17 Mar 2009 15:15:05 +0000 (17:15 +0200)]
Make devices self-powered
Simplifies power budget negotiation.
Riku Voipio [Wed, 18 Mar 2009 12:44:41 +0000 (14:44 +0200)]
whitespace cleanup
Juha Riihimäki [Tue, 17 Mar 2009 14:03:41 +0000 (16:03 +0200)]
let beagleboard understand the -m switch
make it possible to define amount of SDRAM dynamically on commandline. however this patch will still put all the ram on cs0. also removed the unknown 80kb rom block and use only the publicly defined 32kb boot rom area.
Juha Riihimäki [Tue, 17 Mar 2009 11:24:43 +0000 (13:24 +0200)]
arm core emulation performance improvement
check for the simple variable first and only if that matches do the more complex check - should speed up data processing operations a little bit.
Juha Riihimäki [Tue, 17 Mar 2009 10:52:07 +0000 (12:52 +0200)]
omap3 prcm clean-up
Riku Voipio [Fri, 13 Mar 2009 15:23:33 +0000 (17:23 +0200)]
add some registers kernel reads to the readb func
Riku Voipio [Fri, 13 Mar 2009 15:12:33 +0000 (17:12 +0200)]
We want the level, not value for intr
Riku Voipio [Thu, 12 Mar 2009 16:19:37 +0000 (18:19 +0200)]
add trace
Juha Riihimäki [Fri, 13 Mar 2009 14:20:42 +0000 (16:20 +0200)]
OMAP3 DPLL5 clock fix and added the missing omap3_boot.c.
Riku Voipio [Thu, 12 Mar 2009 16:14:52 +0000 (18:14 +0200)]
Correct usb revision number
Match omap3530 ES 2.1. Debug more.
Juha Riihimäki [Thu, 12 Mar 2009 13:14:38 +0000 (15:14 +0200)]
[v2] fix ARMv7 data processing instructions
QEMU does not currently emulate the load/move operations to R15 (PC) correctly for ARMv7.
Correct behavior is similar to BX command. This should fix the behavior of all affected commands instead
of just MOV pc,xxx.
Juha Riihimäki [Thu, 12 Mar 2009 13:12:54 +0000 (15:12 +0200)]
Enhanced OMAP3 boot ROM emulation
Boot ROM emulation is no longer dependent on machine specifics (e.g. type of NAND device attached). Also a kind of stub ROM image is mapped at correct address at POR.
Juha Riihimäki [Wed, 11 Mar 2009 08:55:38 +0000 (10:55 +0200)]
OMAP3 clock adjustments & cleanups
Add support for OMAP3 SYS_CLK input selection reconfiguration support. In real life we would also need to support sys_boot pin 6 to choose between oscillator bypass mode (xtalin is square wave) or PRCM internal oscillator (xtalin). Current code is fixed to use the bypass mode with a default setting of 26MHz input. Also, added SYS_CLKOUT1 clock which was missing.
Juha Riihimäki [Thu, 19 Mar 2009 08:40:38 +0000 (10:40 +0200)]
add savevm support in several modules
malc [Thu, 19 Mar 2009 02:14:10 +0000 (02:14 +0000)]
Remove dead code
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6859
c046a42c-6fe2-441c-8c8c-
71466251a162
Juha Riihimäki [Wed, 18 Mar 2009 06:48:02 +0000 (08:48 +0200)]
Merge commit 'origin/riku-devel' into juha-devel
malc [Tue, 17 Mar 2009 16:05:50 +0000 (16:05 +0000)]
Fix VGA issue introduced by r6349
Thanks to Robert Riebisch for bisection
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6858
c046a42c-6fe2-441c-8c8c-
71466251a162
Riku Voipio [Tue, 17 Mar 2009 15:19:55 +0000 (17:19 +0200)]
Support byte and half-word reads
This method only works for reading the last half-word/byte from the fifo.
Incidentally it's the only one that the kernel does.
Proper fix is making the fifo byte-sized and reading it 1-4bytes at a time.
Riku Voipio [Tue, 17 Mar 2009 15:15:05 +0000 (17:15 +0200)]
Make devices self-powered
Simplifies power budget negotiation.
Juha Riihimäki [Tue, 17 Mar 2009 14:03:41 +0000 (16:03 +0200)]
let beagleboard understand the -m switch
make it possible to define amount of SDRAM dynamically on commandline. however this patch will still put all the ram on cs0. also removed the unknown 80kb rom block and use only the publicly defined 32kb boot rom area.
pbrook [Tue, 17 Mar 2009 12:19:58 +0000 (12:19 +0000)]
Fix ARM quadword VDUP (core register).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6857
c046a42c-6fe2-441c-8c8c-
71466251a162
Juha Riihimäki [Tue, 17 Mar 2009 11:24:43 +0000 (13:24 +0200)]
arm core emulation performance improvement
check for the simple variable first and only if that matches do the more complex check - should speed up data processing operations a little bit.
Juha Riihimäki [Tue, 17 Mar 2009 10:52:07 +0000 (12:52 +0200)]
omap3 prcm clean-up
blueswir1 [Mon, 16 Mar 2009 16:33:01 +0000 (16:33 +0000)]
Delete some unused macros detected with -Wp,-Wunused-macros use
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6856
c046a42c-6fe2-441c-8c8c-
71466251a162
Juha Riihimäki [Mon, 16 Mar 2009 12:04:40 +0000 (14:04 +0200)]
[v2] fix ARMv7 data processing instructions
This should fix the behavior of all affected commands instead of just MOV pc,xxx.
blueswir1 [Fri, 13 Mar 2009 21:16:24 +0000 (21:16 +0000)]
Make the ELF loader aware of backwards compatibility
Most 64 bit architectures I'm aware of support running 32 bit code
of the same architecture as well.
So x86_64 can run i386 code easily and ppc64 can run ppc code.
Unfortunately, the current checks are pretty strict. So you can only
load e.g. an x86_64 elf binary on qemu-system-x86_64, but no i386 one.
This can get really annoying. I first encountered this issue with
my multiboot patch, where qemu-system-x86_64 was unable to load an
i386 elf binary because the elf loader rejected it.
The same thing happened again on PPC64 now. The firmware we're loading
is a PPC32 elf binary, as it's shared with PPC32. But the platform is
PPC64.
Right now there is a hack for this in the ppc cpu.h definition, that
simply sets the type to PPC32 in system emulation mode. While that
works fine for the firmware, it's no good if you also want to load a
PPC64 kernel with -kernel.
So in order to solve this mess, I figured the easiest way is to make
the elf loader aware of platforms that are backwards compatible. For
now I was only sure that x86_64 does i386 and ppc64 does ppc32, but
maybe there are other combinations too.
This patch is a prerequisite for having a working -kernel option on
PPC64.
Signed-off-by: Alexander Graf <alex@csgraf.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6855
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 13 Mar 2009 18:10:13 +0000 (18:10 +0000)]
temporarily disable logging around pci config writes (Avi Kivity)
A pci config write may remap the vga linear frame buffer, confusing the
memory slot dirty logging logic.
Fixed Windows with -vga std.
Signed-off-by: Avi Kivity <avi@redhat.com>
Sigend-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6852
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 13 Mar 2009 18:09:59 +0000 (18:09 +0000)]
stop dirty logging while updating cirrus bank memory (Glauber Costa)
Otherwise, slot tracking gets confused.
This fixes a screen corruption bug with Ubuntu guest installation.
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6851
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 13 Mar 2009 16:27:31 +0000 (16:27 +0000)]
Add missing file
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6850
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 13 Mar 2009 16:22:41 +0000 (16:22 +0000)]
Update changelog
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6849
c046a42c-6fe2-441c-8c8c-
71466251a162
Riku Voipio [Fri, 13 Mar 2009 15:23:33 +0000 (17:23 +0200)]
add some registers kernel reads to the readb func
Riku Voipio [Fri, 13 Mar 2009 15:12:33 +0000 (17:12 +0200)]
We want the level, not value for intr
aliguori [Fri, 13 Mar 2009 15:04:02 +0000 (15:04 +0000)]
qemu:virtio-net: Check return size on the correct sg list (Alex Williamson)
When checking that the size of the control virtqueue return field
is sufficient, use the correct sg list.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6845
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 13 Mar 2009 15:03:58 +0000 (15:03 +0000)]
make qemu_announce_self handle non contiguous net tables (Marcelo Tosatti)
With hotplug nd_table might contain holes.
Noticed by Eduardo Habkost.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6844
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 13 Mar 2009 15:03:27 +0000 (15:03 +0000)]
Replace asprintf() with snprintf() in vnc.c ("Daniel P. Berrange")
As previously discussed, this patch removes the non-portable use of
asprintf(), replacing it with malloc+snprintf instead
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6843
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 13 Mar 2009 15:02:28 +0000 (15:02 +0000)]
monitor: Provide empty command as final history entry (Jan Kiszka)
Provide an empty line as last entry in command line history, just like
bash e.g. does.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6842
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 13 Mar 2009 15:02:23 +0000 (15:02 +0000)]
Add and use remaining #defines for PCI device IDs (Stuart Brady)
This patch adds and uses #defines for the remaining hardcoded PCI
device IDs. It also moves definitions taken from linux/pci_ids.h
into a separate header (hw/pci_ids.h), removes the 'RTL' from
PCI_DEVICE_ID_REALTEK_RTL8029, and renames PCI_DEVICE_ID_FSL_E500
to PCI_DEVICE_ID_MPC8533E to match Linux's definition.
Changes in v2:
* Don't use C99-style comments
* Move definitions from linux/pci_ids.h into a separate header
* Rename PCI_DEVICE_ID_FSL_E500 to PCI_DEVICE_ID_MPC8533E
Signed-off-by: Stuart Brady <stuart.brady@gmail.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6841
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 13 Mar 2009 15:02:18 +0000 (15:02 +0000)]
remove is_graphic_console from vga.c (Stefano Stabellini)
Hi all,
since vga_draw_graphic is only called by vga_hw_update when the console
associated with the graphic card is active, we don't need to check if
the current console is active using is_graphic_console.
I suspect I introduced these checks when the console switching mechanism
didn't work as it does now.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6840
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 13 Mar 2009 15:02:13 +0000 (15:02 +0000)]
DisplayAllocator interface (Stefano Stabellini)
Hi all,
this patch adds a DisplayAllocator interface that allows display
frontends (sdl in particular) to provide a preallocated display buffer
for the graphical backend to use.
Whenever a graphical backend cannot use
qemu_create_displaysurface_from because its own internal pixel format
cannot be exported directly (text mode or graphical mode with color
depth 8 or 24), it creates another display buffer in memory using
qemu_create_displaysurface and does the conversion.
This new buffer needs to be blitted into the sdl surface buffer every time
we need to update portions of the screen.
We can avoid this using the DisplayAllocator interace: sdl provides its
own implementation of qemu_create_displaysurface, giving back the sdl
surface buffer directly (as we used to do before the DisplayState
changes).
Since the buffer returned by sdl could be in bgr format we need to put
back in the handlers of that case.
This approach is good if the two following conditions are true:
1) the sdl surface is a software surface that resides in main memory;
2) the host display color depth is either 16 or 32 bpp.
If first condition is false we can have bad performances using sdl
and vnc together.
If the second condition is false performances are certainly not going to
improve but they shouldn't get worse either.
The first condition is always true, at least on linux/X11 systems; but I
believe is true also on other platforms.
The second condition is true in the vast majority of the cases.
This patch should also have the good side effect of solving the sdl
2D slowness malc was reporting on MacOS, because SDL_BlitSurface is not
going to be called anymore when the guest is in text mode or 24bpp.
However the root problem is still present so I suspect we may
still see some slowness on MacOS when the guest is in 32 or 16 bpp.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6839
c046a42c-6fe2-441c-8c8c-
71466251a162
Riku Voipio [Fri, 13 Mar 2009 14:46:58 +0000 (16:46 +0200)]
Merge branch 'juha-devel' of ssh://voipio@juri/home/voipio/qemu into riku-devel
Riku Voipio [Thu, 12 Mar 2009 16:19:37 +0000 (18:19 +0200)]
add trace
Juha Riihimäki [Fri, 13 Mar 2009 14:20:42 +0000 (16:20 +0200)]
OMAP3 DPLL5 clock fix and added the missing omap3_boot.c.
aurel32 [Fri, 13 Mar 2009 09:35:55 +0000 (09:35 +0000)]
tcg/x86_64: add bswap16_i{32,64} and bswap32_i64 ops
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6838
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 13 Mar 2009 09:35:49 +0000 (09:35 +0000)]
tcg/x86: add bswap16_i32 ops
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6837
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 13 Mar 2009 09:35:41 +0000 (09:35 +0000)]
target-i386: use the new bswap* TCG ops
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6836
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 13 Mar 2009 09:35:34 +0000 (09:35 +0000)]
target-ppc: use the new bswap* TCG ops
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6835
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 13 Mar 2009 09:35:26 +0000 (09:35 +0000)]
tcg: update README wrt recent bswap changes
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6834
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 13 Mar 2009 09:35:19 +0000 (09:35 +0000)]
tcg: add _tl aliases to bswap16/32/64 TCG ops
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6833
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 13 Mar 2009 09:35:12 +0000 (09:35 +0000)]
tcg: add bswap16_i64 and bswap32_i64 TCG ops
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6832
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 13 Mar 2009 09:35:03 +0000 (09:35 +0000)]
tcg: optimize tcg_gen_bswap16_i32
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6831
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 13 Mar 2009 09:34:56 +0000 (09:34 +0000)]
tcg: allow bswap16_i32 to be implemented by TCG backends
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6830
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 13 Mar 2009 09:34:48 +0000 (09:34 +0000)]
tcg: rename bswap_i32/i64 functions
Rename bswap_i32 into bswap32_i32 and bswap_i64 into bswap64_i64
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6829
c046a42c-6fe2-441c-8c8c-
71466251a162
Juha Riihimäki [Fri, 13 Mar 2009 07:58:54 +0000 (09:58 +0200)]
[v2] ARMv7 mov pc,xxx fix