Riku Voipio [Thu, 30 Apr 2009 12:18:15 +0000 (15:18 +0300)]
changelog update
Juha Riihimäki [Tue, 21 Apr 2009 10:08:22 +0000 (13:08 +0300)]
fix omap_dss for upstream merge
Riku Voipio [Mon, 20 Apr 2009 14:41:08 +0000 (17:41 +0300)]
merge fallout
Riku Voipio [Mon, 20 Apr 2009 14:35:29 +0000 (17:35 +0300)]
Merge branch 'linux-user-for-upstream' into master-merge2
Conflicts:
linux-user/main.c
Riku Voipio [Mon, 20 Apr 2009 14:31:58 +0000 (17:31 +0300)]
Revert "Fix and cleanup IPCOP_shm* ipc calls handling"
This reverts commit
58dfbf5143162fe32ca2b797828cce7b8ff89b53.
Conflicts:
linux-user/syscall.c
Riku Voipio [Mon, 20 Apr 2009 14:29:52 +0000 (17:29 +0300)]
Revert "Implement shm* syscalls"
This reverts commit
e26c5cda9be8993bd375819b30969a6ea61bfc6c.
Riku Voipio [Mon, 20 Apr 2009 14:27:28 +0000 (17:27 +0300)]
Merge branch 'upstream' into master-test
Big, bad, merge
Conflicts:
hw/smc91c111.c
hw/usb-ohci.c
linux-user/main.c
linux-user/syscall.c
Riku Voipio [Mon, 20 Apr 2009 14:18:33 +0000 (17:18 +0300)]
Revert "Fix and cleanup IPCOP_sem* ipc calls handling"
This reverts commit
fc83fe5d8b1be1d9216ecdccaea1734c6def194c.
Riku Voipio [Mon, 20 Apr 2009 14:18:26 +0000 (17:18 +0300)]
Revert "Implement sem* syscalls"
This reverts commit
3c4348ceb09a514552062e77abfea8a6f92059c1.
Riku Voipio [Mon, 20 Apr 2009 14:17:59 +0000 (17:17 +0300)]
Revert "Added posix message queue syscalls except mq_notify"
This reverts commit
2a1300c5bccb658f621096dc1615473de7ef449b.
Riku Voipio [Mon, 20 Apr 2009 14:17:52 +0000 (17:17 +0300)]
Revert "Format mq_open strace arguments"
This reverts commit
05b5a02bf74b782c43a2bb796a75391bcd9f9fb9.
Riku Voipio [Mon, 20 Apr 2009 14:17:41 +0000 (17:17 +0300)]
Revert "More strace formatting for posix message queues syscalls"
This reverts commit
7625e83747e42aa50f231f5f96aa3c58bf8f0803.
Riku Voipio [Mon, 20 Apr 2009 14:16:23 +0000 (17:16 +0300)]
Revert "atfile wrapper support for sb2"
This reverts commit
d5b6bc55090bcd2c46d9c960db8428057da16168.
Conflicts:
configure
linux-user/syscall.c
Riku Voipio [Mon, 20 Apr 2009 14:13:03 +0000 (17:13 +0300)]
Revert "linux-user: unix sockets - fix running dbus"
This reverts commit
7479ae68f8e5bea85885faca651b8d9096f106c3.
Riku Voipio [Mon, 20 Apr 2009 14:11:51 +0000 (17:11 +0300)]
Revert "Revived GUEST_BASE support for usermode emulation targets."
This reverts commit
2d2bfb213eb1baabb111e64b0a6d936d5909faa7.
Conflicts:
configure
debian/changelog
linux-user/main.c
Riku Voipio [Mon, 20 Apr 2009 14:09:57 +0000 (17:09 +0300)]
Revert "Strace is now working again with GUEST_BASE support."
This reverts commit
4866cf6bfb937b0052eb3de4f7a9978afeb25bcf.
Riku Voipio [Mon, 20 Apr 2009 14:09:30 +0000 (17:09 +0300)]
Revert "linux-user: added ELF coredump support for ARM target"
This reverts commit
df9fc8189f1f7a1e510db98d89af1491feb5cb56.
Riku Voipio [Mon, 20 Apr 2009 14:09:22 +0000 (17:09 +0300)]
Revert "linux-user: Added ELF coredump support for x86 and x86_64 targets"
This reverts commit
a1947ff31251f29b188bf2eb936c5c7a50aadca6.
Riku Voipio [Mon, 20 Apr 2009 14:09:13 +0000 (17:09 +0300)]
Revert "Fix compilation in etch"
This reverts commit
5801bdf0cc35ea8d6e6428a6f540182e94bf1646.
Riku Voipio [Mon, 20 Apr 2009 14:08:20 +0000 (17:08 +0300)]
Revert "Fix getcwd syscall return value"
This reverts commit
20f37bde068184789fdfe81664dbff815652e636.
Riku Voipio [Mon, 20 Apr 2009 13:04:15 +0000 (16:04 +0300)]
fix fcntl
Riku Voipio [Mon, 20 Apr 2009 13:03:53 +0000 (16:03 +0300)]
fix termios
Riku Voipio [Sun, 29 Mar 2009 18:46:34 +0000 (21:46 +0300)]
Revived GUEST_BASE support for usermode emulation targets.
From: Mika Westerberg <mika.westerberg@iki.fi>
- Now GUEST_BASE is dynamic and can be set from command line.
- Qemu checks /proc/sys/vm/mmap_min_addr and sets GUEST_BASE
if needed.
- Code generation supports GUEST_BASE for i386 and x86_64 hosts.
Mika Westerberg [Tue, 7 Apr 2009 13:57:29 +0000 (16:57 +0300)]
linux-user: strace now handles guest strings correctly
- to not to break strace with GUEST_BASE is set:
- Strace now can load and print guest strings correctly.
- Added printing support for commonly used flags in some syscalls
(e.g open, creat, mmap etc.)
Mika Westerberg [Tue, 7 Apr 2009 06:57:59 +0000 (09:57 +0300)]
linux-user: added x86 and x86_64 support for ELF coredump
Mika Westerberg [Tue, 7 Apr 2009 06:57:11 +0000 (09:57 +0300)]
linux-user: implemented 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 exceptions
though).
Riku Voipio: added support for rlimit
Riku Voipio [Fri, 3 Apr 2009 07:42:00 +0000 (10:42 +0300)]
Implement shm* syscalls and fix 64/32bit errors
Verified with ltp shm* tests. Following test still
fails
shmt09 3 FAIL
No regressions were observed on either 64bit or 32bit
IA hosts.
Patch based on original patches by:
Kirill A. Shutemov <kirill@shutemov.name>
- Implement shm* syscalls
- Fix and cleanup IPCOP_shm* ipc calls handling
Depends on "Rewrite mmap_find_vma()" patch.
Various whitespace uglifications applied to minimize
patch size.
Kirill A. Shutemov [Mon, 13 Oct 2008 07:54:58 +0000 (10:54 +0300)]
Rewrite mmap_find_vma() to work fine on 64-bit hosts with 32-bit targets
qemu's page table can be incomple if /proc/self/maps is unavailable or
host allocating a memory with mmap(), so we can't use it to find free
memory area.
New version mmap_find_vma() uses mmap() without MAP_FIXED to find free
memory.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Riku Voipio [Mon, 20 Apr 2009 11:41:49 +0000 (14:41 +0300)]
release w16
blueswir1 [Sun, 19 Apr 2009 10:25:05 +0000 (10:25 +0000)]
Build system: Fix dependency of qemu.1
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7190
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 19 Apr 2009 10:18:01 +0000 (10:18 +0000)]
kqemu: merge CONFIG_KQEMU and USE_KQEMU
Basically a recursive ":%s/USE_KQEMU/CONFIG_KQEMU/g".
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7189
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 19 Apr 2009 09:15:50 +0000 (09:15 +0000)]
Adds SM501 usb host emulation feature.
It makes usb keyboard available for sh4/r2d system emulation.
The changes for "hw/usb-ohci.c" are as follows.
- 'localmem_base' is introduced as OHCIState struct member.
SM501 has a local memory, and it is used to pass and receive data with
OHCI driver. OHCI driver accesses it with SH4 physical memory address,
and SM501 accesses it with SM501 local address. 'localmem_base' holds
where the SM501 local memory is mapped into SH4 physical address space.
- Memory access functions modified to adjust address with 'localmem_base'.
The functions are, ohci_read_*(), ohci_put_*(), and ohci_copy_*().
- ohci_read_hcca() and ohci_put_hcca() are introduced for more consistent
implementation.
For other source files, it does,
- introduces usb_ohci_init_sm501().
- adds irq argument for SM501 initialization, to emulate USB interrupts.
Signed-off-by: Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7188
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 19 Apr 2009 08:52:17 +0000 (08:52 +0000)]
linux-user: Linux kernel's fchmodat and faccessat have three args (no 4th arg)
In Linux kernel, fchmodat() and faccessat() take tree args.
4th value <int flags> is only processed by libc.
Signed-off-by: Takashi YOSHII <takasi-y@ops.dti.ne.jp>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7187
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sun, 19 Apr 2009 00:26:31 +0000 (00:26 +0000)]
Fix indices in Menelaus save/load.
Version increase won't be helpful here. Spotted by Sergei Steshenko / Blau
Wirbel.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7186
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 18 Apr 2009 19:25:43 +0000 (19:25 +0000)]
kqemu: only compile kqemu.o if actually needed
kqemu.o is compiled even if kqemu support is disabled. This is useless
(kqemu.o should provide nothing that is actually used in that case) and
slightly confusing. So introduce CONFIG_KQEMU for optionally compiling
kqemu.o.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7185
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 18 Apr 2009 16:16:12 +0000 (16:16 +0000)]
linux-user: fix IPCOP_sem* and implement sem*
Fix and cleanup IPCOP_sem* ipc calls handling and
implement sem* syscalls.
Riku:
1) Uglify whitespace so that diff gets smaller and easier
to review
2) use __get_user in target_to_host_sembuf
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7184
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Sat, 18 Apr 2009 15:36:23 +0000 (15:36 +0000)]
qemu-io: Verify read data by patterns (Kevin Wolf)
This patch adds a -P option to read and readv which allows to compare the read
data to a given pattern. This can be used to verify data written by write -P.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7182
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Sat, 18 Apr 2009 15:36:19 +0000 (15:36 +0000)]
qemu-io: Fix handling of bdrv_is_allocated() return value (Kevin Wolf)
bdrv_is_allocated() returns a boolean which indicates if the offset is
allocated, not 0 on success and everything else is an error.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7181
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Sat, 18 Apr 2009 15:36:15 +0000 (15:36 +0000)]
monitor: Update command help (Jan Kiszka)
Align some monitor help texts to the related command parameter
definitions. host_net_add is skipped intentionally, will be slightly
reworked in a separate patch later.
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@7180
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Sat, 18 Apr 2009 15:36:11 +0000 (15:36 +0000)]
x86: Enhanced dump of segment registers (Jan Kiszka)
Parse the descriptor flags that segment registers refer to and show the
result in a more human-friendly format. The output of info registers eg.
then looks like this:
[...]
ES =007b
00000000 ffffffff 00cff300 DPL=3 DS [-WA]
CS =0060
00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
SS =0068
00000000 ffffffff 00c09300 DPL=0 DS [-WA]
DS =007b
00000000 ffffffff 00cff300 DPL=3 DS [-WA]
FS =0000
00000000 00000000 00000000
GS =0033
b7dd66c0 ffffffff b7dff3dd DPL=3 DS [-WA]
LDT=0000
00000000 00000000 00008200 DPL=0 LDT
TR =0080
c06da700 0000206b 00008900 DPL=0 TSS32-avl
[...]
Changes in this version:
- refactoring so that only a single helper is used for dumping the
segment descriptor cache
- tiny typo fixed that broke 64-bit segment type names
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@7179
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Sat, 18 Apr 2009 15:36:06 +0000 (15:36 +0000)]
a couple of qemu-io fixes (Christoph Hellwig)
Fix two stupid bugs that I forgot to push out:
- qiov->size already is in bytes, no need to shift it
- actually use the supplied patter in the writev command
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7178
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Sat, 18 Apr 2009 15:36:02 +0000 (15:36 +0000)]
buildsytem: consistently use install (Christoph Egger)
attached patch makes qemu use install consistently.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7177
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 18 Apr 2009 07:32:41 +0000 (07:32 +0000)]
Use ANSI prototypes to please sparse
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7176
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 18 Apr 2009 07:29:59 +0000 (07:29 +0000)]
Add 'static' to avoid a sparse warning
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7175
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 18 Apr 2009 07:29:30 +0000 (07:29 +0000)]
Move bootp_filename to avoid a sparse warning
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7174
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 21:01:11 +0000 (21:01 +0000)]
Fix non-ACPI Timer Interrupt Routing (Beth Kon)
Replicate ACPI irq0->inti2 override in mp table for non-acpi case.
v1 -> v2 adds comment suggested by Ryan.
Signed-off-by: Beth Kon <eak@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7169
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 20:50:58 +0000 (20:50 +0000)]
hpet: Fix emulation of HPET_TN_SETVAL (Jan Kiszka)
While Intel's spec is not that clear here, latest changes to Linux' HPET
code (commit
c23e253e67c9d8a91a0ffa33c1f571a17f0a2403, "x86: hpet: stop
HPET_COUNTER when programming periodic mode") strongly suggest that
HPET_TN_SETVAL rather means: Set _both_ the comparator value and
register.
With this patch applied, I'm again able to boot 2.6.30-rc kernels as
they no longer panic like this (which was due to the comparator
register remaining 0):
ENABLING IO-APIC IRQs
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
..MP-BIOS bug: 8254 timer not connected to IO-APIC
...trying to set up timer (IRQ0) through the 8259A ...
..... (found apic 0 pin 2) ...
....... failed.
...trying to set up timer as Virtual Wire IRQ...
..... failed.
...trying to set up timer as ExtINT IRQ...
..... failed :(.
Kernel panic - not syncing: IO-APIC + timer doesn't work! [...]
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@7168
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 20:50:54 +0000 (20:50 +0000)]
kvm: Fix cpuid initialization (Jan Kiszka)
Fix (more or less) spurious guest boot failures due to corrupted cpuid
states. The reason was insufficient initialization of cpuid entries
before passing them to the kernel.
At this chance also fix improper entry pointer progression and simplify
the code a bit.
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@7167
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 20:44:06 +0000 (20:44 +0000)]
qcow2 corruption: Fix alloc_cluster_link_l2 (Kevin Wolf)
This patch fixes a qcow2 corruption bug introduced in SVN Rev 5861. L2 tables
are big endian, so entries must be converted before being passed to functions.
This bug is easy to trigger. The following script will create and destroy a
qcow2 image (the header is gone after three loop iterations):
#!/bin/bash
qemu-img create -f qcow2 test.qcow 1M
for i in $(seq 1 10); do
qemu-system-x86_64 -hda test.qcow -monitor stdio > /dev/null 2>&1 <<EOF
savevm test-$i
quit
EOF
done
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7165
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Fri, 17 Apr 2009 20:01:12 +0000 (20:01 +0000)]
Make the sed script also work with OpenBSD and OpenSolaris seds
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7164
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 18:59:56 +0000 (18:59 +0000)]
qemu: Add support for SMBIOS command line otions (Alex Williamson)
Create a new -smbios option (x86-only) to allow binary SMBIOS entries
to be passed through to the BIOS or modify the default values of
individual fields of type 0 and 1 entries on the command line.
Binary SMBIOS entries can be generated as follows:
dmidecode -t 1 -u | grep $'^\t\t[^"]' | xargs -n1 | \
perl -lne 'printf "%c", hex($_)' > smbios_type_1.bin
These can then be passed to the BIOS using this switch:
-smbios file=smbios_type_1.bin
Command line generation supports the following syntax:
-smbios type=0[,vendor=str][,version=str][,date=str][,release=%d.%d]
-smbios type=1[,manufacturer=str][,product=str][,version=str][,serial=str]
[,uuid=$(uuidgen)][,sku=str][,family=str]
For instance, to add a serial number to the type 1 table:
-smbios type=1,serial=
0123456789
Interface is extensible to support more fields/tables as needed.
aliguori: remove texi formatting from help output
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@7163
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 18:58:14 +0000 (18:58 +0000)]
qemu: Add prototype and make qemu_uuid_parse() non-static (Alex Williamson)
SMBIOS parameters can also provide a UUID outside of vl.c.
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@7162
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 17:11:12 +0000 (17:11 +0000)]
Free VLANClientState using qemu_free() (Mark McLoughlin)
It's allocated using qemu_mallocz(), so ...
The name and model strings are strdup() allocated, so free()
is still appropriate for them.
Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7151
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 17:11:08 +0000 (17:11 +0000)]
Introduce VLANClientState::cleanup() (Mark McLoughlin)
We're currently leaking memory and file descriptors on device
hot-unplug.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7150
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 17:11:03 +0000 (17:11 +0000)]
Use NICInfo::model for eepro100 savevm ID string (Mark McLoughlin)
NICInfo::model will always be identical to the device name strings
we're currently passing to nic_init(). Just re-use NICInfo::model.
This makes it clear why we use vc->model for unregister_savevm()
in a subsequent patch.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7149
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 17:10:59 +0000 (17:10 +0000)]
Add unregister_savevm() (Mark McLoughlin)
Currently there's no way to unregister a savevm callback, so
e.g. if a NIC is hot-unplugged and a savevm is issued, we'll
segfault.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7148
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 17:10:56 +0000 (17:10 +0000)]
Remove NICInfo from e1000 and mipsnet state (Mark McLoughlin)
NICInfo isn't used after initialization, so remove it from the driver
state structures.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7147
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 17:10:51 +0000 (17:10 +0000)]
Remove some useless malloc() checking (Mark McLoughlin)
Now that we abort() on malloc, neither qemu_find_vlan() nor
net_tap_fd_init() can fail.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7146
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 17:10:47 +0000 (17:10 +0000)]
Don't fail PCI hotplug if no NIC model is supplied (Mark McLoughlin)
It's perfectly fine to not supply a NIC model when adding
a new NIC - we supply the default model to pci_nic_init()
and it uses that if one wasn't explicitly supplied.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7145
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 17:10:43 +0000 (17:10 +0000)]
Fix error handling in net_client_init() (Mark McLoughlin)
We weren't freeing the name string everywhere.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7144
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 17:10:39 +0000 (17:10 +0000)]
struct iovec is now universally available (Mark McLoughlin)
struct iovec is now defined in qemu-common.h if needed, so we don't need
the tap code to handle !defined(HAVE_IOVEC).
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7143
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 17:10:34 +0000 (17:10 +0000)]
Remove stray GSO code from virtio_net (Mark McLoughlin)
Obviously merged from kvm-userspace accidentally.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7142
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 14:26:41 +0000 (14:26 +0000)]
vga: Cleanup dirty logging (Jan Kiszka)
In theory, there are no more quirks in the KVM slot management that
requires dirty log start/stop all over the place. We just have to start
the logging each time the mapping may have changed. This patch drops
vga_dirty_log_stop for both standard and cirrus VGA. It also reverts
#6851 as it was obviously a tribute to the old slot system.
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@7141
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 14:26:37 +0000 (14:26 +0000)]
vga: Fix inconsistent tracking of map_addr (Jan Kiszka)
Only track video RAM mapping in map_addr and use the correct RAM size.
Furthermore, make sure the reset the address in case unmapping took
place via PCI reconfiguration.
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@7140
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 14:26:33 +0000 (14:26 +0000)]
kvm: improve handling of overlapping slots (Jan Kiszka)
This reworks the slot management to handle more patterns of
cpu_register_physical_memory*, finally allowing to reset KVM guests (so
far address remapping on reset broke the slot management).
We could actually handle all possible ones without failing, but a KVM
kernel bug in older versions would force us to track all previous
fragmentations and maintain them (as that bug prevents registering
larger slots that overlap also deleted ones). To remain backward
compatible but avoid overly complicated workarounds, we apply a simpler
workaround that covers all currently used patterns.
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@7139
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 14:26:29 +0000 (14:26 +0000)]
kvm: Add sanity checks to slot management (Jan Kiszka)
Fail loudly if we run out of memory slot.
Make sure that dirty log start/stop works with consistent memory regions
by reporting invalid parameters. This reveals several inconsistencies in
the vga code, patch to fix them follows later in this series.
And, for simplicity reasons, also catch and report unaligned memory
regions passed to kvm_set_phys_mem (KVM works on page basis).
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@7138
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 14:26:25 +0000 (14:26 +0000)]
kvm: Cleanup unmap condition in kvm_set_phys_mem (Jan Kiszka)
Testing for TLB_MMIO on unmap makes no sense as A) that flag belongs to
CPUTLBEntry and not to io_memory slots or physical addresses and B) we
already use a different condition before mapping. So make this test
consistent.
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@7137
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 14:26:21 +0000 (14:26 +0000)]
kvm: Apply SMM-already-initialized workaround on reset (Jan Kiszka)
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@7136
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 17 Apr 2009 14:26:17 +0000 (14:26 +0000)]
kvm: Sync CPU state on reset (Jan Kiszka)
Make sure KVM gets informed about the reset CPU state.
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@7135
c046a42c-6fe2-441c-8c8c-
71466251a162
Riku Voipio [Fri, 17 Apr 2009 13:59:10 +0000 (16:59 +0300)]
Fix getcwd syscall return value
Riku Voipio [Fri, 17 Apr 2009 13:58:17 +0000 (16:58 +0300)]
remove linux-user test
Juha Riihimäki [Thu, 16 Apr 2009 11:02:08 +0000 (14:02 +0300)]
disable omap3 dss dsi bta receive for now
Juha Riihimäki [Thu, 16 Apr 2009 11:01:18 +0000 (14:01 +0300)]
add dummy read support for non-existent power domain reg
Juha Riihimäki [Thu, 16 Apr 2009 11:00:15 +0000 (14:00 +0300)]
increase the twl4030 conversion dummy results
too small value will put us in the wrong path...
Juha Riihimäki [Thu, 16 Apr 2009 07:50:08 +0000 (10:50 +0300)]
add support for omap3 dss dsi bta send/receive
Juha Riihimäki [Thu, 16 Apr 2009 07:24:06 +0000 (10:24 +0300)]
add support for omap3 usbhost power domain control
Juha Riihimäki [Thu, 16 Apr 2009 07:21:42 +0000 (10:21 +0300)]
add support for omap3 cam power domain control
Juha Riihimäki [Thu, 16 Apr 2009 07:19:03 +0000 (10:19 +0300)]
add support for omap3 neon power domain control
Juha Riihimäki [Thu, 16 Apr 2009 07:14:50 +0000 (10:14 +0300)]
fix omap3 iva2 power domain control
Juha Riihimäki [Thu, 16 Apr 2009 07:13:36 +0000 (10:13 +0300)]
add support for omap3 iva2 power domain control
Juha Riihimäki [Thu, 16 Apr 2009 06:51:00 +0000 (09:51 +0300)]
add support for omap3 sgx power domain control
Juha Riihimäki [Thu, 16 Apr 2009 06:48:13 +0000 (09:48 +0300)]
add support for omap3 dss power domain control
also fix omap3 per power domain control prepwstst register write
Juha Riihimäki [Thu, 16 Apr 2009 06:43:37 +0000 (09:43 +0300)]
add support for omap3 per power domain control
Juha Riihimäki [Thu, 16 Apr 2009 06:17:51 +0000 (09:17 +0300)]
add support for omap3 core power domain control
Juha Riihimäki [Thu, 16 Apr 2009 06:16:18 +0000 (09:16 +0300)]
change twl4030 to report POR reset reason initially
Juha Riihimäki [Wed, 15 Apr 2009 11:45:43 +0000 (14:45 +0300)]
add support for omap3 mpu power domain control
Juha Riihimäki [Wed, 15 Apr 2009 10:35:03 +0000 (13:35 +0300)]
workaround for invalid omap3 cm_clksel_core register values
Juha Riihimäki [Wed, 8 Apr 2009 10:16:18 +0000 (13:16 +0300)]
make musb report errors in stderr instead of stdout
aurel32 [Fri, 17 Apr 2009 13:50:32 +0000 (13:50 +0000)]
linux-user: fix inotify syscalls
Configure test was broken, so the breakage of the #ifdef'd
code was not noticed.
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7134
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 17 Apr 2009 13:17:26 +0000 (13:17 +0000)]
Revert "target-mips: fix call to check_*() functions"
This reverts commit r7127, r7132 is a better fix for that.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7133
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 17 Apr 2009 13:11:42 +0000 (13:11 +0000)]
target-mips: simplify exception generation
There is no need to exit the tb after a call to helper_raise_exception
as it already calls cpu_loop_exit().
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7132
c046a42c-6fe2-441c-8c8c-
71466251a162
Riku Voipio [Fri, 17 Apr 2009 08:24:45 +0000 (11:24 +0300)]
Merge commit 'juri/juha-devel'
pbrook [Thu, 16 Apr 2009 15:17:02 +0000 (15:17 +0000)]
Translate signal values in exit status.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7131
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 16 Apr 2009 14:17:14 +0000 (14:17 +0000)]
linux-user: fix getcwd syscall
The patch called "prefer glibc over direct syscalls" (commit 7118) has
replaced the getcwd syscall with a call to the glibc. With this change,
the syscall is returning -1 in error case and 0 otherwise.
This is problematic as the sys_getcwd syscall should return the number
of bytes written to the buffer including the '\0'.
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Acked-By: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7130
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 16 Apr 2009 12:57:58 +0000 (12:57 +0000)]
target-ppc: mark a few helpers TCG_CALL_CONST and/or TCG_CALL_PURE
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7129
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 16 Apr 2009 12:57:50 +0000 (12:57 +0000)]
target-mips: fix revision r7126
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7128
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 16 Apr 2009 11:51:19 +0000 (11:51 +0000)]
target-mips: fix call to check_*() functions
check_*() functions may in fine call generate_exception(), which ends
by a call to tcg_gen_exit_tb(). As a consequence, we have to make sure
that no TCG temp variables are crossing a check_*() function.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7127
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 16 Apr 2009 11:51:11 +0000 (11:51 +0000)]
target-mips: optimize gen_flt3_ldst()
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7126
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 16 Apr 2009 11:51:03 +0000 (11:51 +0000)]
target-mips: optimize gen_flt_ldst()
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7125
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Thu, 16 Apr 2009 10:56:43 +0000 (10:56 +0000)]
Stop translation after a syscall instruciton.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7124
c046a42c-6fe2-441c-8c8c-
71466251a162