Riku Voipio [Tue, 10 Feb 2009 17:00:33 +0000 (19:00 +0200)]
Remove extra build-deps
to allow building in etch
Riku Voipio [Tue, 10 Feb 2009 16:59:55 +0000 (18:59 +0200)]
sb1 linking hack
due to linking reordering, libsb needs to be linked here
Riku Voipio [Tue, 10 Feb 2009 14:11:11 +0000 (16:11 +0200)]
Merge branch 'debian-packaging' of ssh://voipio@juri/home/voipio/qemu into debian-packaging
Conflicts:
linux-user/main.c
make drop-ld-preload default (this is for sb1, sigh)
Riku Voipio [Tue, 10 Feb 2009 12:57:23 +0000 (14:57 +0200)]
hack --sbox-call more
sb1 braindamage. drop-ld-preload is default, and sbox-call
is inverse to --argv0
Riku Voipio [Tue, 10 Feb 2009 12:57:23 +0000 (14:57 +0200)]
hack --sbox-call more
sb1 braindamage.
Riku Voipio [Tue, 10 Feb 2009 12:56:12 +0000 (14:56 +0200)]
Add default interp_path
These should be handled by sb1/sb2, but doesn't hurt
setting here. Also fix build-dep.
Riku Voipio [Mon, 9 Feb 2009 15:18:13 +0000 (17:18 +0200)]
Add build-dep on scratchbox-core
Riku Voipio [Fri, 6 Feb 2009 17:22:55 +0000 (19:22 +0200)]
Create debian packaging
Roughly based on debian and sb1 qemu packaging
Riku Voipio [Mon, 2 Feb 2009 08:43:11 +0000 (10:43 +0200)]
linux-user: Remove incorrect break;
Reported-By: Laurent Desnogues <laurent.desnogues@gmail.com>
Lauro Ramos Venancio [Fri, 30 Jan 2009 16:42:56 +0000 (18:42 +0200)]
implement CLONE_CHILD_CLEARTID
LauroV:
I know that the clone implementation is far from the perfection and it
is very hard to implement all the clone flags using a high level API
(pthread).
This patch doesn't break seriously the host libc/libpthread. Pthread
uses the tid_address only for pthread_join. So, actually, this patch
breaks the host pthread_join (and pthread_timedjoin_np), but it makes
the emulated pthread_join work. As the qemu doesn't use pthread_join, I
think it worth to apply this patch.
Riku:
Without this patch, even the simplest threaded apps fail to run.
Riku Voipio [Wed, 28 Jan 2009 16:28:27 +0000 (18:28 +0200)]
linux-user: unix sockets - fix running dbus
dbus sends too short (according to man 7 unix) addrlen for it's
unix socket. I've been told that happens with other applications
as well. Linux kernel doesn't appear to mind, so I guess
we whould be tolerant as well. Expand sockaddr with +1 to fit
the \0 of the pathname passed.
(scratchbox1 qemu had a very different workaround for the same issue).
Riku Voipio [Wed, 28 Jan 2009 12:24:02 +0000 (14:24 +0200)]
flush stdout after printing usage()
fixes qemu-arm|grep cpu - without fflush() getting
output from qemu is a bit random.
Riku Voipio [Tue, 20 Jan 2009 15:46:18 +0000 (17:46 +0200)]
linux-user: identify running binary in /proc/self/exe
Some applications like to test /proc/self/exe to find
out who they are. Fake the result of readlink() for
them. Use realpath() to return full path to binary
(which the links /proc/self/exe are)
Riku Voipio [Mon, 26 Jan 2009 16:17:10 +0000 (18:17 +0200)]
Revert "linux-user: identify running binary in /proc/self/exe"
This reverts commit
3404bf398cd7af2591a8dccb470ddd8a87d86472.
Riku Voipio [Mon, 26 Jan 2009 15:56:14 +0000 (17:56 +0200)]
atfile wrapper support for sb2
Mika Westerberg [Fri, 16 Jan 2009 13:22:52 +0000 (15:22 +0200)]
linux-user: break recursion loop on symlink to . or ..
This patch corrects bug in qemu where it contructs its
internal paths and ends up in recursion loop when filesystem
contains symlink that points to dot '.'.
(Riku: some whitespace fudging to minize diff - the whole
file needs reindenting...)
Riku Voipio [Fri, 16 Jan 2009 13:18:04 +0000 (15:18 +0200)]
fix accept(2) with NULL peer
Based on scratchbox2 patch by Mika Westerberg
Riku Voipio [Wed, 14 Jan 2009 16:05:27 +0000 (18:05 +0200)]
Add legacy shwitch for -sbox-call
From: Toni Timonen
The --sbox-call means that the name of the binary and every argument,
including argv[0], is given in command line. In some cases this can't
really be resolved from the actual binary called, so it is being
preserved. This is used from -misc-runner.
Toni:
"If I remember correctly, the first argument after --sbox-call (that is
the actual binary name) is used to locate the actual binary that is
being called, but rest of the arguments are given to the elf (eg. we
skipped the program name, but kept the argv[0]; in scratchbox these
two can be different in quite many cases)."
Riku Voipio [Wed, 14 Jan 2009 15:59:24 +0000 (17:59 +0200)]
Add support for passing contents of argv0
From: Mika Westerberg
Added switch -0 (zero) which can be used to pass argv[0] to
target process.
Riku Voipio [Wed, 14 Jan 2009 15:36:03 +0000 (17:36 +0200)]
linux-user: Add generic env variable handling
Adds support for qemu to modify target process environment
variables using -E and -U commandline switches.
From: Mika Westerberg
Riku Voipio [Fri, 9 Jan 2009 15:46:16 +0000 (17:46 +0200)]
linux-user: identify running binary in /proc/self/exe
Some applications like to test /proc/self/exe to find
out whoe they are. Fake the result of readlink() for
them.
Riku Voipio [Fri, 9 Jan 2009 15:38:44 +0000 (17:38 +0200)]
linux-user: return EINVAL on incorrect sockaddr
From: Lauro Ramos Venancio <lauro.venancio@gmail.com>
Fixes ltp test accept01
Riku Voipio [Fri, 9 Jan 2009 15:08:21 +0000 (17:08 +0200)]
linux-user: don't crash with null name
path() may be called with null string, don't bother trying to
remap in that case.
Riku Voipio [Wed, 14 Jan 2009 14:58:37 +0000 (16:58 +0200)]
fix read() and acct() on NULL arguments
Riku Voipio [Fri, 9 Jan 2009 14:51:54 +0000 (16:51 +0200)]
linux-user: do not segfault on unkown -d option
From: Guillem Jover <guillem@debian.org>
The qemu user emulators (qemu-i386, qemu-ppc, etc) segfault when given
an unknown debug log item. For example, "qemu-ppc -d foo" segfaults.
Closes: #338289
Riku Voipio [Fri, 9 Jan 2009 14:44:45 +0000 (16:44 +0200)]
linux-user: Change cpu default
No reason to default to arm9.
Lionel Landwerlin [Sat, 20 Dec 2008 20:20:15 +0000 (21:20 +0100)]
More strace formatting for posix message queues syscalls
Signed-off-by: Lionel Landwerlin <lionel.landwerlin@openwide.fr>
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Lionel Landwerlin [Sat, 20 Dec 2008 18:15:58 +0000 (19:15 +0100)]
Format mq_open strace arguments
Signed-off-by: Lionel Landwerlin <lionel.landwerlin@openwide.fr>
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Riku Voipio [Wed, 14 Jan 2009 14:56:33 +0000 (16:56 +0200)]
Added posix message queue syscalls except mq_notify
From: Lionel Landwerlin <lionel.landwerlin@openwide.fr>
Signed-off-by: Lionel Landwerlin <lionel.landwerlin@openwide.fr>
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Kirill A. Shutemov [Mon, 13 Oct 2008 08:15:30 +0000 (11:15 +0300)]
shmat(): use mmap_find_vma to find free memory area
This patch depends on new implementation of mmap_find_vma().
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Kirill A. Shutemov [Tue, 30 Sep 2008 12:25:54 +0000 (15:25 +0300)]
Implement shm* syscalls
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Kirill A. Shutemov [Tue, 30 Sep 2008 12:20:09 +0000 (15:20 +0300)]
Fix and cleanup IPCOP_shm* ipc calls handling
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Kirill A. Shutemov [Sun, 28 Sep 2008 18:29:28 +0000 (21:29 +0300)]
Implement sem* syscalls
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Kirill A. Shutemov [Sun, 21 Sep 2008 22:06:35 +0000 (01:06 +0300)]
Fix and cleanup IPCOP_sem* ipc calls handling
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
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>
Kirill A. Shutemov [Thu, 2 Oct 2008 13:39:43 +0000 (16:39 +0300)]
Fix fstatat64()/newfstatat() syscall implementation
There are two different syscall names for the same goal.
On systems with sizeof(long) == 64 it calls newfstatat.
On systems with sizeof(long) == 32 it calls fstatat64.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
malc [Tue, 13 Jan 2009 23:12:34 +0000 (23:12 +0000)]
Do not rely on __powerpc__ being defined as a feature test macro
__powerpc__ is not defined on AIX and Darwin, Makefile.target adds
it to CPPFLAGS for target specific code which cache-utils are not.
Since there's not common definition which can safely be used on all
platforms use HOST_PPC provided by config-host.h
The problem was originally reported by C. W. Betts
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6292
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 13 Jan 2009 21:09:18 +0000 (21:09 +0000)]
Make virtio_net_init() return void (Mark McLoughlin)
All PCI NIC init functions return void and nothing uses the
return value from virtio_net_init().
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@6291
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Tue, 13 Jan 2009 20:08:43 +0000 (20:08 +0000)]
sun4c/sun4d: also swap the CharDriverState of escc_init()
Forgotten in r6284
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6290
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 13 Jan 2009 20:06:26 +0000 (20:06 +0000)]
Update bochs bios
They have applied all of our patches and they have an additional HPET fix.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6289
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Tue, 13 Jan 2009 19:48:42 +0000 (19:48 +0000)]
Fix 64 bit issue in slirp
Signed-off-by: Gleb Natapov <gleb@redhat.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6288
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 13 Jan 2009 19:47:10 +0000 (19:47 +0000)]
Make pci_nic_init() use qemu_setup_nic_model() (Mark McLoughlin)
Add a table of PCI NIC models to pass to qemu_setup_nic_model().
While we're at it, also add a corresponding table of NIC init
functions.
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@6287
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 13 Jan 2009 19:39:36 +0000 (19:39 +0000)]
Check NIC model in some NIC init functions (Mark McLoughlin)
Some NIC init functions are only called when that model is
the only valid model. In that case, it makes sense to use
qemu_check_nic_model() from the NIC init function itself.
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@6286
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 13 Jan 2009 19:15:55 +0000 (19:15 +0000)]
Fix tap downscript argument (Mark McLoughlin)
Kill off the hack that parses info_str for the tap interface
name to pass as the argument to the downscript and, instead,
just explicitly keep a copy of the string for later.
As reported by John Wong, this commit:
Add qemu_format_nic_info_str()
changed the invocation of downscript from e.g.
/path/kvm-ifdown "tap0"
to:
/path/kvm-ifdown "tap0,script=/path/kvm-ifup,downscript=/path/kvm-ifdown"
This fix restores the original behavior.
Reported-by: John Wong <johnw@wonghome.net>
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@6285
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Tue, 13 Jan 2009 19:08:18 +0000 (19:08 +0000)]
ESCC: swap the two CharDriverState arguments
Swap the two CharDriverState arguments so that the first argument
corresponds to the channel A and the second argument to the channel B.
Modify hw/sun4m.c accordingly.
This fixes the order of the serial ports on the PPC machines.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6284
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Tue, 13 Jan 2009 19:08:10 +0000 (19:08 +0000)]
target-ppc: define max amount of memory for G3 beige
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6283
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Tue, 13 Jan 2009 19:07:59 +0000 (19:07 +0000)]
target-ppc: fix comment about boot device in ppc_oldworld.c
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6282
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 13 Jan 2009 19:03:57 +0000 (19:03 +0000)]
Add qemu_check_nic_model() and qemu_check_nic_model_list() (Mark McLoughlin)
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@6281
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Tue, 13 Jan 2009 16:28:01 +0000 (16:28 +0000)]
Fix gdbserver number of registers (Tristan Gingold)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6280
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 13 Jan 2009 15:20:14 +0000 (15:20 +0000)]
RTL8139: Latch C+ mode state instead of inferring it from C+ Command register (Avi Kivity)
It was observed that Windows 2003 x64 hangs when shutting down if an
RTL8139 NIC and a USB device tablet are both present. What seems to be
happening is:
- the guest shuts down the transmitter and receiver
- time passes
- the guest requests a tally counter dump
As it happens, the tally counter command register overlaps the transmit
status register in C mode. Qemu determines whether the chip is in C or C+
mode by looking at the C+ transmit enable bit; as this is now unset, the
dump tally counter command is interpreted as a C mode transmit command. The
guest doesn't think so, however, and continues to poll for completion of the
tally counter dump command. This never occurs, so the guest hangs.
Fix by redefining C+ mode as "a write to the C+ command register has occurred
since the last reset". The data sheet is silent on the matter.
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@6279
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 13 Jan 2009 15:13:53 +0000 (15:13 +0000)]
Fix race in POSIX AIO emulation (Jan Kiszka)
When we cancel an AIO request that is already being processed by
aio_thread, qemu_paio_cancel should return QEMU_PAIO_NOTCANCELED as long
as aio_thread isn't done with this request. But as the latter currently
updates aiocb->ret after every block of the request, we may report
QEMU_PAIO_ALLDONE too early.
Futhermore, in case some zero-length request should have been queued,
aiocb->ret is never set to != -EINPROGRESS and callers like
raw_aio_cancel could get stuck in an endless loop.
Fix those issues by updating aiocb->ret _after_ the request has been
fully processed. This also simplifies the locking.
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@6278
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 12 Jan 2009 21:33:22 +0000 (21:33 +0000)]
target-alpha: get rid of tests on env->user_mode_only
Replace runtime checks on env->user_mode_only by compile time
checks on CONFIG_USER_ONLY.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6277
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 12 Jan 2009 21:33:13 +0000 (21:33 +0000)]
target-mips: get rid of tests on env->user_mode_only
Replace runtime checks on env->user_mode_only by compile time
checks on CONFIG_USER_ONLY.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6276
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 12 Jan 2009 21:33:02 +0000 (21:33 +0000)]
target-ppc: add altivec cache instructions
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6275
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Mon, 12 Jan 2009 21:12:22 +0000 (21:12 +0000)]
Fix TLB access (Jakub Jermar)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6274
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Mon, 12 Jan 2009 20:00:29 +0000 (20:00 +0000)]
Update Sparc32 and Sparc64 images
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6273
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Mon, 12 Jan 2009 17:51:06 +0000 (17:51 +0000)]
Fix some SLIRP warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6272
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Mon, 12 Jan 2009 17:40:23 +0000 (17:40 +0000)]
Use ESCC for PowerMac serial
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6271
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Mon, 12 Jan 2009 17:38:28 +0000 (17:38 +0000)]
Rename slavio_serial functions to escc, add clock rate and it_shift parameters
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6270
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Mon, 12 Jan 2009 17:33:30 +0000 (17:33 +0000)]
Rename slavio_serial to escc
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6269
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Mon, 12 Jan 2009 17:31:29 +0000 (17:31 +0000)]
Fix typo
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6268
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 10 Jan 2009 14:38:00 +0000 (14:38 +0000)]
Fix segfault
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6267
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 10 Jan 2009 11:33:32 +0000 (11:33 +0000)]
Add EBUS bridge
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6266
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Fri, 9 Jan 2009 20:53:30 +0000 (20:53 +0000)]
Fix APB
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6265
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 9 Jan 2009 20:06:44 +0000 (20:06 +0000)]
Update openbios-ppc to revision 373
Fix boot on CD-ROM.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6264
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 9 Jan 2009 20:05:10 +0000 (20:05 +0000)]
fix configuring kvm probe when using --kerneldir (Christian Ehrhardt)
There is already a variable kvm_cflags which gets the path of the kernel
includes when using --kerneldir. But eventually with newer kernels we all will
need arch/$arch/include too (my case was a incldue of asm/kvm.h which was not
found anymore). Headers in a full kernel source are not flattened to
one arch like they are if e.g. installed kernel headers are used.
To fix that, the includes added to cflags depending on --kerneldir should also
contian the arch includes. The patch adds a special check for x86 because its
source layout recently changed, all others directly use arch/$cpu/include if
existent.
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6263
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 9 Jan 2009 19:51:09 +0000 (19:51 +0000)]
Mark openbios-ppc as a binary file.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6262
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 9 Jan 2009 13:10:41 +0000 (13:10 +0000)]
mips, ppc: make sure nd->model is always defined
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6261
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 9 Jan 2009 11:01:31 +0000 (11:01 +0000)]
target-ppc: add an openbios-ppc image
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6260
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Fri, 9 Jan 2009 10:46:37 +0000 (10:46 +0000)]
Update to reflect the fact that AC97 will be built by default
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6259
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Fri, 9 Jan 2009 10:46:34 +0000 (10:46 +0000)]
More flexible audio card selection
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6258
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 9 Jan 2009 06:43:25 +0000 (06:43 +0000)]
target-ppc: revert part of commit r6254 committed accidentally
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6257
c046a42c-6fe2-441c-8c8c-
71466251a162
edgar_igl [Fri, 9 Jan 2009 00:48:28 +0000 (00:48 +0000)]
Make the set_link cmd handle multiple nics.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6256
c046a42c-6fe2-441c-8c8c-
71466251a162
edgar_igl [Fri, 9 Jan 2009 00:04:35 +0000 (00:04 +0000)]
ETRAX: Let the ethernet PHY report the current link-state.
* PHY reports correct link-state.
* Allow the board description to assign separate addresses to each PHY.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6255
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 8 Jan 2009 23:19:50 +0000 (23:19 +0000)]
Add v{add, sub}{s, u}{b, h, w}s instructions
Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6254
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 21:03:55 +0000 (21:03 +0000)]
Enable ac97 by default
ac97 has drivers for Vista 64-bit whereas sb16 and es1370 do not appear to. I
asked malc why it was disabled and he said it was because it was GPL. He did
not object to enabling it now that more QEMU code is GPL'd.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6253
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 21:03:07 +0000 (21:03 +0000)]
IDE: Return zero when reading error register with slave selected (Justin Chevrier)
During hardware detection Openserver issues commands to slaves on both primary
and secondary ports. We already return a zero for the status register in this
situation but after reading the status register the Openserver installer
proceeds to check the value of the error register. Currently we return the
existing value in the register. This confuses the installer and it tries to
access the slave units later on. When the command that gets issued later gets
ignored the installer freezes. The patch below returns zero when reading the
error register if a slave unit is selected. Openserver can now successfully be
installed using the emulated IDE hard drive.
Return zero when reading error register with slave selected
Signed-off-by: Justin Chevrier <theburner1@yahoo.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6252
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Thu, 8 Jan 2009 20:01:26 +0000 (20:01 +0000)]
Fix IDE debug
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6251
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 19:46:33 +0000 (19:46 +0000)]
Implement virtio_net link status (Mark McLoughlin)
Implement the VIRTIO_NET_F_STATUS feature by exposing the link status
through virtio_net_config::status.
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@6250
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 19:45:50 +0000 (19:45 +0000)]
Implement e1000 link status (Mark McLoughlin)
On link up or down we set the E1000_STATUS_LU ("link up") bit
in the status register and set the E1000_ICR_LSC ("link
status changed") bit in the interrupt cause register before
interrupting the guest.
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@6249
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 19:45:03 +0000 (19:45 +0000)]
Allow devices be notified of link status change (Mark McLoughlin)
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@6248
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 19:44:06 +0000 (19:44 +0000)]
Add 'set_link' monitor command (Mark McLoughlin)
Add a monitor command to setting a given network device's link status
to 'up' or 'down'.
Allows simulation of network cable disconnect.
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@6247
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 19:34:35 +0000 (19:34 +0000)]
qemu-nbd: fix options: -b (--bind) expects an argument (IFACE) (Uri Lublin)
Rebased for qemu tree.
Signed-off-by: Uri Lublin <uril@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6246
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 19:32:20 +0000 (19:32 +0000)]
qcow2: free old snapshots array upon creation of a new one (Uri Lublin)
Don't leak memory
Rebased for qemu tree.
Signed-off-by: Uri Lublin <uril@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6245
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 19:29:03 +0000 (19:29 +0000)]
qcow1: Fix compressed images (Kevin Wolf)
Revert r4673, the removed dead code wasn't dead in fact.
Additionally, change the misleading else which tricks the reader into
believing that allocate is a boolean to else if (allocate == 2).
Signed-off-by: Kevin Wolf <kwolf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6244
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 19:27:07 +0000 (19:27 +0000)]
Add support for vmchannel socket migration (Gleb Natapov)
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6243
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 19:26:22 +0000 (19:26 +0000)]
Add "restrict" and "ip" option to "user" net option (Gleb Natapov)
Expose new slirp capabilities to user through a command line options.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6242
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 19:24:00 +0000 (19:24 +0000)]
Add slirp_restrict option (Gleb Natapov)
Add "slirp firewall" to permit connection only to vmchannel addresses.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6241
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 19:18:21 +0000 (19:18 +0000)]
Redirect slirp traffic to/from qemu character device (Gleb Natapov)
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6240
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 8 Jan 2009 19:01:37 +0000 (19:01 +0000)]
Add model field to nic info (Mark McLoughlin)
The model type used to be printed as part of the nic info. It was removed when
the name type was added. This adds back a model field for those that were
using it previously.
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@6239
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 8 Jan 2009 18:54:57 +0000 (18:54 +0000)]
Add vspltis{b,h,w} instructions
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6238
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 8 Jan 2009 18:54:48 +0000 (18:54 +0000)]
Add vs{l,r} instructions
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6237
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 8 Jan 2009 18:54:38 +0000 (18:54 +0000)]
Add vcmpequ{b, h, w} and vcmpgt{s, u}{b, h, w} instructions
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6236
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 8 Jan 2009 18:54:26 +0000 (18:54 +0000)]
Add GEN_VXRFORM{,1} macros for subsequent instructions
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6235
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Thu, 8 Jan 2009 18:52:52 +0000 (18:52 +0000)]
Improve PCI debug support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6234
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 8 Jan 2009 18:48:12 +0000 (18:48 +0000)]
target-mips: CP0 Random register improvements
- Use a LFSR to generate the random value
- Make sure to not return the same value twice
Based on a patch by Hervé Poussineau.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6233
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 8 Jan 2009 16:01:33 +0000 (16:01 +0000)]
cmd646: correctly enable IDE channels
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6232
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 8 Jan 2009 16:01:23 +0000 (16:01 +0000)]
target-ppc: move OpenBIOS machines type to ppc.h from hw/ppc_oldworld.c
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6231
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 8 Jan 2009 16:01:13 +0000 (16:01 +0000)]
Some more updates for the g3bw -> g3beige change
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6230
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Wed, 7 Jan 2009 23:51:36 +0000 (23:51 +0000)]
update the documentation for the g3bw -> g3beige change
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6229
c046a42c-6fe2-441c-8c8c-
71466251a162