qemu
15 years agoIntegrator/CP core qdev conversion
Paul Brook [Thu, 14 May 2009 21:35:07 +0000 (22:35 +0100)]
Integrator/CP core qdev conversion

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoPL181 qdev conversion
Paul Brook [Thu, 14 May 2009 21:35:07 +0000 (22:35 +0100)]
PL181 qdev conversion

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoPL031 qdev conversion
Paul Brook [Thu, 14 May 2009 21:35:07 +0000 (22:35 +0100)]
PL031 qdev conversion

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoStellaris ethernet qdev conversion
Paul Brook [Thu, 14 May 2009 21:35:07 +0000 (22:35 +0100)]
Stellaris ethernet qdev conversion

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoVirtio-net qdev conversion
Paul Brook [Thu, 14 May 2009 21:35:07 +0000 (22:35 +0100)]
Virtio-net qdev conversion

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoPCI network qdev conversion
Paul Brook [Thu, 14 May 2009 21:35:07 +0000 (22:35 +0100)]
PCI network qdev conversion

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoLSI SCSI qdev conversion
Paul Brook [Thu, 14 May 2009 21:35:07 +0000 (22:35 +0100)]
LSI SCSI qdev conversion

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoPL050 qdev conversion
Paul Brook [Thu, 14 May 2009 21:35:07 +0000 (22:35 +0100)]
PL050 qdev conversion

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoPL011 qdev conversion
Paul Brook [Thu, 14 May 2009 21:35:07 +0000 (22:35 +0100)]
PL011 qdev conversion

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoPL110 qdev conversion
Paul Brook [Thu, 14 May 2009 21:35:07 +0000 (22:35 +0100)]
PL110 qdev conversion

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoqdev scsi bus infrastructure
Paul Brook [Thu, 14 May 2009 21:35:07 +0000 (22:35 +0100)]
qdev scsi bus infrastructure

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoPCI qdev support
Paul Brook [Thu, 14 May 2009 21:35:07 +0000 (22:35 +0100)]
PCI qdev support

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoqdev child bus support
Paul Brook [Thu, 14 May 2009 21:35:06 +0000 (22:35 +0100)]
qdev child bus support

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoBasic qdev infrastructure.
Paul Brook [Thu, 14 May 2009 21:35:06 +0000 (22:35 +0100)]
Basic qdev infrastructure.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoMove block drivers into their own directory
Anthony Liguori [Sat, 9 May 2009 22:14:19 +0000 (17:14 -0500)]
Move block drivers into their own directory

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoConvert block infrastructure to use new module init functionality
Anthony Liguori [Sat, 9 May 2009 22:03:42 +0000 (17:03 -0500)]
Convert block infrastructure to use new module init functionality

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoConstructor support
Anthony Liguori [Thu, 14 May 2009 18:29:53 +0000 (19:29 +0100)]
Constructor support

Allow devices/drivers to register themselves via constructors.
Destructors are not needed (can be registered from a constructor)
and "priority" has been renamed and changed to an enum for clarity.

Signed-off-by: Paul Brook <paul@codesourcery.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoAdd a --disable-docs to configure to allow doc build to be disabled
Anthony Liguori [Thu, 14 May 2009 13:25:04 +0000 (08:25 -0500)]
Add a --disable-docs to configure to allow doc build to be disabled

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoRemove duplicate block objects.
Paul Brook [Wed, 13 May 2009 23:51:33 +0000 (00:51 +0100)]
Remove duplicate block objects.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoRemove any pretense that there can be more than one AudioState
malc [Wed, 13 May 2009 23:11:35 +0000 (03:11 +0400)]
Remove any pretense that there can be more than one AudioState

15 years agoRemove redundant pcnet.o
Paul Brook [Wed, 13 May 2009 21:35:13 +0000 (22:35 +0100)]
Remove redundant pcnet.o

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoAdd tool_osdep.c
Paul Brook [Wed, 13 May 2009 21:21:47 +0000 (22:21 +0100)]
Add tool_osdep.c

osdep.c is built in both as a toplevel target independant object, and
as a per-target object because of kqemu dependencies.  Under some
circumstances make picks up the wrong one.

Build the former as tool-osdep to avoid this conflict.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoInclude assert.h from qemu-common.h
Paul Brook [Wed, 13 May 2009 19:51:49 +0000 (20:51 +0100)]
Include assert.h from qemu-common.h

Include assert.h from qemu-common.h and remove other direct uses.
cpu-all.h still need to include it because of the dyngen-exec.h hacks

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoReplace gcc variadic macro extension with C99 version (missed one)
Blue Swirl [Wed, 13 May 2009 18:09:29 +0000 (18:09 +0000)]
Replace gcc variadic macro extension with C99 version (missed one)

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoReplace gcc variadic macro extension with C99 version
Blue Swirl [Wed, 13 May 2009 17:53:17 +0000 (17:53 +0000)]
Replace gcc variadic macro extension with C99 version

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoFix kqemu build failure.
Paul Brook [Wed, 13 May 2009 17:08:17 +0000 (18:08 +0100)]
Fix kqemu build failure.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoRemove vga_ram_size
Paul Brook [Wed, 13 May 2009 16:56:25 +0000 (17:56 +0100)]
Remove vga_ram_size

The vga_ram_size argument to machine init functions always has the same
value, and is ignored by many machines (including SPARC32 which has an
obsolete ifdef for VGA_RAM_SIZE).

Remove it and push VGA_RAM_SIZE into vga_int.h.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoFix typo that leads to out of bounds array access on big endian systems
malc [Wed, 13 May 2009 11:18:48 +0000 (15:18 +0400)]
Fix typo that leads to out of bounds array access on big endian systems

15 years agoETRAX: Correct setting of ethernet station address.
Edgar E. Iglesias [Wed, 13 May 2009 08:17:21 +0000 (10:17 +0200)]
ETRAX: Correct setting of ethernet station address.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>

15 years agoFollow coding conventions.
Paul Brook [Tue, 12 May 2009 14:38:55 +0000 (15:38 +0100)]
Follow coding conventions.

More structure renaming.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoCRIS: Fix bmi.
Edgar E. Iglesias [Tue, 12 May 2009 14:12:50 +0000 (16:12 +0200)]
CRIS: Fix bmi.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>

15 years agoPush AUD_init down to devices
Paul Brook [Tue, 12 May 2009 11:33:04 +0000 (12:33 +0100)]
Push AUD_init down to devices

Now we can safely call AUD_init multiple times we can push it down to
individual audio devices, rather than having to pass it from the board
init.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoMake AUD_init failure fatal
Paul Brook [Tue, 12 May 2009 11:02:38 +0000 (12:02 +0100)]
Make AUD_init failure fatal

Failure to initialize the audio subsystem is not handled consistently.
Where it is handled it has guest visible effects, which is wrong.
We already have a "nosound" audio driver as a last resort, so trying to
proceed without an audio backend seems pointless.

Also protect against multiple calls to AUD_init so that this can be
pushed down into individual devices.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoUpdate docs on dynamic condition code calculation
Blue Swirl [Sun, 10 May 2009 18:23:46 +0000 (18:23 +0000)]
Update docs on dynamic condition code calculation

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoConvert mulscc
Blue Swirl [Sun, 10 May 2009 07:43:21 +0000 (07:43 +0000)]
Convert mulscc

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoConvert udiv/sdiv
Blue Swirl [Sun, 10 May 2009 07:42:54 +0000 (07:42 +0000)]
Convert udiv/sdiv

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoConvert tagged ops
Blue Swirl [Sun, 10 May 2009 07:38:35 +0000 (10:38 +0300)]
Convert tagged ops

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoConvert subx
Blue Swirl [Sun, 10 May 2009 07:38:34 +0000 (10:38 +0300)]
Convert subx

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoConvert sub
Blue Swirl [Sun, 10 May 2009 07:38:34 +0000 (10:38 +0300)]
Convert sub

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoConvert logical operations and umul/smul
Blue Swirl [Sun, 10 May 2009 07:38:34 +0000 (10:38 +0300)]
Convert logical operations and umul/smul

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoConvert addx
Blue Swirl [Sun, 10 May 2009 07:19:22 +0000 (07:19 +0000)]
Convert addx

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoConvert add
Blue Swirl [Sun, 10 May 2009 07:19:17 +0000 (07:19 +0000)]
Convert add

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoUse dynamical computation for condition codes
Blue Swirl [Sun, 10 May 2009 07:19:11 +0000 (07:19 +0000)]
Use dynamical computation for condition codes

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoFollow coding conventions
Paul Brook [Sun, 10 May 2009 00:44:56 +0000 (01:44 +0100)]
Follow coding conventions

Remove explicit struct qualifiers and rename structure types.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoWorkaround compiler warnings at -O1
Paul Brook [Sat, 9 May 2009 22:21:39 +0000 (23:21 +0100)]
Workaround compiler warnings at -O1

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoFixe ARM NEON vrshl.
Paul Brook [Sat, 9 May 2009 22:12:06 +0000 (23:12 +0100)]
Fixe ARM NEON vrshl.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoAdd m68k_cpu_list()
Laurent Vivier [Sat, 9 May 2009 20:21:39 +0000 (22:21 +0200)]
Add m68k_cpu_list()

This patch adds to m68k target the missing m68k_cpu_list():

$ ./m68k-softmmu/qemu-system-m68k -cpu ?
m5206
m5208
cfv4e
any

Signed-off-by: Laurent Vivier <laurent@vivier.eu>

15 years agoFix in file qemu-sockets.c
vibi [Wed, 6 May 2009 09:57:03 +0000 (15:27 +0530)]
Fix in file qemu-sockets.c

1) Changed usage of malloc,free,strdup to qemu_malloc,qemu_free,qemu_strdup
  2) Some coding style fixes (based on CODING_STYLE document)
  3) Free struct addrinfo *res after failure of listen

Signed-off-by: vibi <vibi_sreenivasan@cms.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agovga: Replace VGA_COMMON with a structure
Avi Kivity [Sun, 3 May 2009 19:25:16 +0000 (22:25 +0300)]
vga: Replace VGA_COMMON with a structure

All VGA devices share a common field subset; currently they do so by
a macro which defines the common fields inline their state structures,
relying on the the common state being placed at offset 0 in the structure.
This makes refactoring the code difficult and requires a lot of error prone
casts.

Replace the macro by a new VGACommonState structure, and the casts by
regular field access and container_of() for upcasts.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoImprove block range checks
Kevin Wolf [Fri, 8 May 2009 12:47:24 +0000 (14:47 +0200)]
Improve block range checks

This patch makes the range checks for block requests more strict: It fixes a
potential integer overflow and checks for negative offsets. Also, it adds the
check for compressed writes.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoRemove noisy printf when KVM masks CPU features
Anthony Liguori [Fri, 8 May 2009 20:39:04 +0000 (15:39 -0500)]
Remove noisy printf when KVM masks CPU features

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agofix asynchronous ioctls
Christoph Hellwig [Tue, 28 Apr 2009 09:57:02 +0000 (11:57 +0200)]
fix asynchronous ioctls

posix_aio_read expect aio requests to return the number of bytes
requests to be successfull, so we need to fake this up for ioctls.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agokvm: Trim cpu features not supported by kvm
Avi Kivity [Sun, 3 May 2009 14:04:04 +0000 (17:04 +0300)]
kvm: Trim cpu features not supported by kvm

Remove cpu features that are not supported by kvm from the cpuid features
reported to the guest.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoFix x86 feature modifications for features that set multiple bits
Avi Kivity [Sun, 3 May 2009 14:04:03 +0000 (17:04 +0300)]
Fix x86 feature modifications for features that set multiple bits

QEMU allows adding or removing cpu features by using the syntax '-cpu +feature'
or '-cpu -feature'.  Some cpuid features cause more than one bit to be set or
cleared; but QEMU stops after just one bit has been modified, causing the
feature bits to be inconsistent.

Fix by allowing all feature bits corresponding to a given name to be set.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoMake x86 cpuid feature names available in file scope
Avi Kivity [Sun, 3 May 2009 14:04:02 +0000 (17:04 +0300)]
Make x86 cpuid feature names available in file scope

To be used later.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agokvm: Add support for querying supported cpu features
Avi Kivity [Sun, 3 May 2009 14:04:01 +0000 (17:04 +0300)]
kvm: Add support for querying supported cpu features

kvm does not support all cpu features; add support for dunamically querying
the supported feature set.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoIntroduce kvm_check_extension to check if KVM extensions are supported
Anthony Liguori [Fri, 8 May 2009 20:33:24 +0000 (15:33 -0500)]
Introduce kvm_check_extension to check if KVM extensions are supported

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoe1000: Do not reinit pci config space to 0
Amit Shah [Mon, 4 May 2009 12:32:04 +0000 (18:02 +0530)]
e1000: Do not reinit pci config space to 0

pci_register_device already mallocs the pci config space buffer filled
with zeroes.

Doing this again breaks some default config space writes like
setting the subsystem vendor id and subsystem device id.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoAIO deletion race fix
Alexander Graf [Wed, 6 May 2009 00:58:48 +0000 (02:58 +0200)]
AIO deletion race fix

When deleting an fd event there is a chance the object doesn't get
deleted, but only ->deleted set positive and deleted somewhere later.

Now, if we create a handler for the fd again before the actual
deletion occurs, we end up writing data into an object that has
->deleted set, which is obviously wrong.

I see two ways to fix this:

1. Don't return ->deleted objects in the search
2. Unset ->deleted in the search

This patch implements 1. which feels safer to do. It fixes AIO issues
I've seen with curl, as libcurl unsets fd event listeners pretty
frequently.

Signed-off-by: Alexander Graf <alex@csgraf.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoreset state for load_linux
Glauber Costa [Fri, 8 May 2009 05:22:13 +0000 (02:22 -0300)]
reset state for load_linux

The linux loader is just an option rom like any other, just with
some special requirements. Right now, our option rom resetting
mechanism is not being applied to it. As a result, users using
-kernel will not be able to successfully reboot their machines

This patch fixes it by saving all the data we generated in
the load_linux() function, to be used later by the option rom
resetting mechanism.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoregister reset handler for option_roms
Glauber Costa [Fri, 8 May 2009 05:22:12 +0000 (02:22 -0300)]
register reset handler for option_roms

Currently, boot options are not preserved across a system reset.
option roms can modify themselves, or can for instance restore the real
int 0x19 vector after they tried to boot from it.

To properly do that, we need a reset handler registered to deal with option
roms. This patch is based on current version on qemu-kvm.git

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoFix cluster freeing in qcow2
Gleb Natapov [Thu, 7 May 2009 08:31:44 +0000 (11:31 +0300)]
Fix cluster freeing in qcow2

Need to drop QCOW_OFLAG_COPIED from a cluster pointer before freeing it.

Add an explanation how thing meant to work.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoEnable power button even generation.
Anthony Liguori [Fri, 8 May 2009 15:13:01 +0000 (10:13 -0500)]
Enable power button even generation.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoDrop CONFIG_GDBSTUB
Jan Kiszka [Fri, 8 May 2009 07:01:00 +0000 (09:01 +0200)]
Drop CONFIG_GDBSTUB

This is no user-flippable switch, and no arch makes use of disabling
gdbstub support. So it's pointless to keep the related #ifdefs and
configure hunks around - and risking breakages like 711c410fdd again.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>

15 years agoRemove superfluous #includes.
Paul Brook [Fri, 8 May 2009 12:20:23 +0000 (13:20 +0100)]
Remove superfluous #includes.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoUse target_phys_addr_t, not target_ulong.
Paul Brook [Fri, 8 May 2009 12:19:44 +0000 (13:19 +0100)]
Use target_phys_addr_t, not target_ulong.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoReplace cpu_abort with hw_error
Paul Brook [Fri, 8 May 2009 01:35:15 +0000 (02:35 +0100)]
Replace cpu_abort with hw_error

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoFix disassembler memory accesses
Blue Swirl [Thu, 7 May 2009 17:14:07 +0000 (17:14 +0000)]
Fix disassembler memory accesses

Sparc disassembler wants to check previous addresses for some stuff
and this may actually cause faults to be generated to the guest if the
address is close to page start, because of the function used for the
memory access.

Fix by changing ldub_code to cpu_memory_rw_debug, which doesn't trigger
exceptions.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoSuppress make directory messages.
Paul Brook [Thu, 7 May 2009 01:00:31 +0000 (02:00 +0100)]
Suppress make directory messages.

We already print a directory prefix in non-verbose mode, so there's no
point printing a messages when recursive make enters/leaves a directory.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoFix PL110 framebuffer byteswapping in 32bpp mode.
Paul Brook [Wed, 6 May 2009 15:18:34 +0000 (16:18 +0100)]
Fix PL110 framebuffer byteswapping in 32bpp mode.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoETRAX: Simplify serport control logic.
Edgar E. Iglesias [Tue, 5 May 2009 11:13:18 +0000 (13:13 +0200)]
ETRAX: Simplify serport control logic.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>

15 years agoETRAX: Drop _t for the serial type.
Edgar E. Iglesias [Tue, 5 May 2009 10:50:45 +0000 (12:50 +0200)]
ETRAX: Drop _t for the serial type.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>

15 years agoETRAX: Use NULL for subwidth serport reg accesses.
Edgar E. Iglesias [Tue, 5 May 2009 10:48:54 +0000 (12:48 +0200)]
ETRAX: Use NULL for subwidth serport reg accesses.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>

15 years agoETRAX: Drop the _t for the internal PIC type.
Edgar E. Iglesias [Tue, 5 May 2009 10:41:35 +0000 (12:41 +0200)]
ETRAX: Drop the _t for the internal PIC type.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>

15 years agoETRAX: Simplify the interrupt controller model.
Edgar E. Iglesias [Tue, 5 May 2009 10:38:39 +0000 (12:38 +0200)]
ETRAX: Simplify the interrupt controller model.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>

15 years agoETRAX: Simplify interrupt signaling.
Edgar E. Iglesias [Tue, 5 May 2009 10:25:35 +0000 (12:25 +0200)]
ETRAX: Simplify interrupt signaling.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>

15 years agoFix compiler warnings in nwfpe code.
Paul Brook [Mon, 4 May 2009 14:19:04 +0000 (15:19 +0100)]
Fix compiler warnings in nwfpe code.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agotarget-mips: proper sign extension for 'SUBU rd, zero, rt'
Aurelien Jarno [Mon, 4 May 2009 07:54:57 +0000 (09:54 +0200)]
target-mips: proper sign extension for 'SUBU rd, zero, rt'

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

15 years agotarget-mips: fix comments about SUB/DSUB
Aurelien Jarno [Mon, 4 May 2009 07:36:22 +0000 (09:36 +0200)]
target-mips: fix comments about SUB/DSUB

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

15 years agoqemu-options.hx: fix description of cache=none suboption
Aurelien Jarno [Sun, 3 May 2009 21:29:14 +0000 (23:29 +0200)]
qemu-options.hx: fix description of cache=none suboption

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

15 years agoSuppress type mismatch warnings in VDE code.
Paul Brook [Sun, 3 May 2009 21:40:54 +0000 (22:40 +0100)]
Suppress type mismatch warnings in VDE code.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agominor fix of pci_register_bus()
Isaku Yamahata [Fri, 1 May 2009 09:33:53 +0000 (18:33 +0900)]
minor fix of pci_register_bus()

keep first_bus linked list correct.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>

15 years agouse PCI_HEADER_TYPE.
Isaku Yamahata [Sun, 3 May 2009 19:03:00 +0000 (19:03 +0000)]
use PCI_HEADER_TYPE.

use symbolic value instead of 0x0e and related value.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>

15 years agoFix typos in comments in exec.c
Stuart Brady [Sun, 3 May 2009 11:15:06 +0000 (12:15 +0100)]
Fix typos in comments in exec.c

This patch fixes several typos in comments in exec.c:

            longet -> longer
       recommanded -> recommended
        ajustments -> adjustments
   inconsistancies -> inconsistencies
           phsical -> physical
       positionned -> positioned
       succesfully -> successfully
      regon_offset -> region_offset

and also:

      start_region -> start_addr

Signed-off-by: Stuart Brady <stuart.brady@gmail.com>

15 years agoOptimize cmp x, 0 case
Blue Swirl [Sun, 3 May 2009 18:51:27 +0000 (18:51 +0000)]
Optimize cmp x, 0 case

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoReindent
Blue Swirl [Sun, 3 May 2009 18:51:22 +0000 (18:51 +0000)]
Reindent

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoHandle NULL bdrv.
Paul Brook [Sun, 3 May 2009 15:52:16 +0000 (16:52 +0100)]
Handle NULL bdrv.

Signed-off-by: Paul Brook <paul@codesourcery.com>

15 years agoImprove instruction name comments for easier searching
Blue Swirl [Sat, 2 May 2009 20:19:46 +0000 (20:19 +0000)]
Improve instruction name comments for easier searching

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoClarify: dmmuregs[1] is not a typo
Blue Swirl [Sat, 2 May 2009 19:52:32 +0000 (22:52 +0300)]
Clarify: dmmuregs[1] is not a typo

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoOptimize operations with immediate parameters
Blue Swirl [Sat, 2 May 2009 19:14:05 +0000 (19:14 +0000)]
Optimize operations with immediate parameters

15 years agoFix Sparc64 sign extension problems
Blue Swirl [Sat, 2 May 2009 18:58:57 +0000 (18:58 +0000)]
Fix Sparc64 sign extension problems

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

15 years agoFix hw/acpi.c build w/ DEBUG enabled
Alex Williamson [Wed, 14 May 2008 16:38:46 +0000 (10:38 -0600)]
Fix hw/acpi.c build w/ DEBUG enabled

Trivial build warning/fixes when the local DEBUG define is enabled.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoMake sure not to fall through on error in loadvm
Anthony Liguori [Fri, 1 May 2009 14:36:03 +0000 (09:36 -0500)]
Make sure not to fall through on error in loadvm

This is from the KVM tree

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoPci nic: pci_register_device can fail
Chris Wright [Mon, 21 Apr 2008 23:02:48 +0000 (16:02 -0700)]
Pci nic: pci_register_device can fail

The pci_register_device() call in PCI nic initialization routines can
fail.  Handle this failure and propagate a meaningful error message to
the user instead of generating a SEGV.

Cc: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoFix serial option with -drive
Anthony Liguori [Fri, 1 May 2009 14:26:16 +0000 (09:26 -0500)]
Fix serial option with -drive

This is from the KVM tree.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoBuild fix for !CONFIG_GDBSTUB case
Xiantao Zhang [Thu, 27 Nov 2008 09:23:27 +0000 (17:23 +0800)]
Build fix for !CONFIG_GDBSTUB case

Once CONFIG_GDBSTUB not configured, compile will generate error.

Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agosuport device driver initialization model
Glauber Costa [Thu, 23 Apr 2009 19:20:55 +0000 (15:20 -0400)]
suport device driver initialization model

According to PnP specification, Appendix B, Option ROMs
that support DDIM (device driver initialization model) should
have their memory space writeable.

KVM deviates from us here, by removing the IO_MEM_ROM flag,
to allow for PCI option ROMs (they require DDIM). However,
there's absolutely no reason we can't do the same.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agofix virtio_blk_inhdr comment
Christoph Hellwig [Thu, 23 Apr 2009 10:58:51 +0000 (12:58 +0200)]
fix virtio_blk_inhdr comment

The inhdr is at the end of the S/G list, not the beginning.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoqemu-io: Optionally verify only part of read data
Kevin Wolf [Thu, 23 Apr 2009 13:11:13 +0000 (15:11 +0200)]
qemu-io: Optionally verify only part of read data

There are reasonable test cases where a read must span areas that are not
uniformly filled with one pattern but contains several parts. This makes -P
useless for them currently.

Introducing additional options which determine the part of the read data that
should be verified with the given pattern allows to check such reads.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

15 years agoHardware watchdog
Richard W.M. Jones [Sat, 25 Apr 2009 12:56:19 +0000 (13:56 +0100)]
Hardware watchdog

Here is an updated hardware watchdog patch, which should fix
everything that was raised about the previous version ...

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>