Statistics
| Branch: | Revision:

root @ 25e5e4c7

# Date Author Comment
03396148 06/11/2012 10:12 pm Michael Tokarev

allow qemu_iovec_from_buffer() to specify offset from which to start copying

Similar to
qemu_iovec_memset(QEMUIOVector *qiov, size_t offset,
int c, size_t bytes);
the new prototype is:
qemu_iovec_from_buf(QEMUIOVector *qiov, size_t offset,...

1b093c48 06/11/2012 10:12 pm Michael Tokarev

consolidate qemu_iovec_copy() and qemu_iovec_concat() and make them consistent

qemu_iovec_concat() is currently a wrapper for
qemu_iovec_copy(), use the former (with extra
"0" arg) in a few places where it is used.

Change skip argument of qemu_iovec_copy() from...

d5e6b161 06/11/2012 10:12 pm Michael Tokarev

change qemu_iovec_to_buf() to match other to,from_buf functions

It now allows specifying offset within qiov to start from and
amount of bytes to copy. Actual implementation is just a call
to iov_to_buf().

Signed-off-by: Michael Tokarev <>

3e80bf93 06/11/2012 10:12 pm Michael Tokarev

rename qemu_sendv to iov_send, change proto and move declarations to iov.h

Rename arguments and use size_t for sizes instead of int,
from
int
qemu_sendv(int sockfd, struct iovec *iov,
int len, int iov_offset)
to
ssize_t
iov_send(int sockfd, struct iovec *iov,...

e3e87df4 06/11/2012 10:12 pm Michael Tokarev

export iov_send_recv() and use it in iov_send() and iov_recv()

Rename do_sendv_recvv() to iov_send_recv(), change its last arg
(do_send) from int to bool, export it in iov.h, and made the two
callers of it (iov_send() and iov_recv()) to be trivial #defines...

2fc8ae1d 06/11/2012 10:12 pm Michael Tokarev

cleanup qemu_co_sendv(), qemu_co_recvv() and friends

The same as for non-coroutine versions in previous
patches: rename arguments to be more obvious, change
type of arguments from int to size_t where appropriate,
and use common code for send and receive paths (with...

25e5e4c7 06/11/2012 10:12 pm Michael Tokarev

rewrite iov_send_recv() and move it to iov.c

Make it much more understandable, add a missing
iov_cnt argument (number of iovs in the iov), and
add comments to it.

The new implementation has been extensively tested
by splitting a large buffer into many small...

3d9b4925 06/11/2012 10:07 pm Michael Tokarev

consolidate qemu_iovec_memset{,_skip}() into single function and use existing iov_memset()

This patch combines two functions into one, and replaces
the implementation with already existing iov_memset() from
iov.c.

The new prototype of qemu_iovec_memset():...

2278a69e 06/07/2012 08:09 pm Michael Tokarev

rewrite iov_* functions

This changes implementations of all iov_*
functions, completing the previous step.

All iov_* functions now ensure that this offset
argument is within the iovec (using assertion),
but lets to specify `bytes' value larger than
actual length of the iovec - in this case they...

dcf6f5e1 06/07/2012 07:43 pm Michael Tokarev

change iov_* function prototypes to be more appropriate

Reorder arguments to be more natural, readable and
consistent with other iov_* functions, and change
argument names, from:
iov_from_buf(iov, iov_cnt, buf, iov_off, size)
to
iov_from_buf(iov, iov_cnt, offset, buf, bytes)...

45270ad8 06/07/2012 07:43 pm Michael Tokarev

virtio-serial-bus: use correct lengths in control_out() message

Original code has one thing to process (cur_len), requests to
convert from iovec to buf another thing (len which is actually max_len),
and processes something else (copied). Whole thing is very difficult...

083dbf48 06/07/2012 11:12 am Peter A. G. Crosthwaite

target-microblaze: fix swx build breakage

The lazy initialisation of r_check was throwing an error on --enable-debug.
Removed the lazy initialisation of r_check and swx_addr.

Signed-off-by: Peter A. G. Crosthwaite <>
Signed-off-by: Edgar E. Iglesias <>

34941700 06/06/2012 03:57 pm Anthony Liguori

Merge remote-tracking branch 'qmp/queue/qmp' into staging

  • qmp/queue/qmp: (29 commits)
    Add 'query-events' command to QMP to query async events
    qapi: convert netdev_del
    qapi: convert netdev_add
    net: net_client_init(): use error_set()
    net: purge the monitor object from all init functions...
e1ae9a7a 06/06/2012 12:55 pm Anthony Liguori

Merge remote-tracking branch 'afaerber-or/qom-cpu-3' into staging

  • afaerber-or/qom-cpu-3: (74 commits)
    Kill off cpu_state_reset()
    linux-user: Use cpu_reset() after cpu_init() / cpu_copy()
    bsd-user: Use cpu_reset() in after cpu_init()
    leon3: Store SPARCCPU in ResetData...
6e72ae46 06/06/2012 12:23 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

  • qemu-kvm/uq/master:
    kvm: Fix build for non-CAP_IRQ_ROUTING targets
d3d3bef0 06/06/2012 11:41 am Jan Kiszka

kvm: Fix build for non-CAP_IRQ_ROUTING targets

A type definition and a KVMState field initialization escaped the
required wrapping with KVM_CAP_IRQ_ROUTING. Also, we need to provide a
dummy kvm_irqchip_release_virq as virtio-pci references (but does not
use) it....

721589dd 06/05/2012 04:05 am Anthony Liguori

Revert "Revert "rtl8139: do the network/host communication only in normal operating mode""

This reverts commit 9c92bf7f6c3f675e60b8ba8a5287bb88ea1eac36.

Per Jason's request.

Signed-off-by: Anthony Liguori <>

c356a1bc 06/05/2012 12:00 am Andreas Färber

cpu-exec: Use cpu_reset() in cpu_exec() for TARGET_PPC

CPUState will be needed for all targets in the future, so place it into
the main variable declaration block.

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

e59be77a 06/05/2012 12:00 am Andreas Färber

target-sparc: Let cpu_sparc_init() return SPARCCPU

Make include paths for cpu-qom.h consistent, so that SPARCCPU can be
used in cpu.h.

Turn cpu_init macro into a static inline function returning
CPUSPARCState for backwards compatibility.

Signed-off-by: Andreas Färber <>...

8968f588 06/05/2012 12:00 am Andreas Färber

sun4m: Use cpu_sparc_init() to obtain SPARCCPU

Needed for {main,secondary}_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

5414dec6 06/05/2012 12:00 am Andreas Färber

sun4m: Pass SPARCCPU to {main,secondary}_cpu_reset()

We can now use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

8ebdf9dc 06/05/2012 12:00 am Andreas Färber

sun4u: Use cpu_sparc_init() to obtain SPARCCPU

This prepares using it in sun4uv_init().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

f9d1465f 06/05/2012 12:00 am Andreas Färber

sun4u: Let cpu_devinit() return SPARCCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

403d7a2d 06/05/2012 12:00 am Andreas Färber

sun4u: Store SPARCCPU in ResetData

We can now use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

60ad0733 06/05/2012 12:00 am Andreas Färber

leon3: Use cpu_sparc_init() to obtain SPARCCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

c537d79c 06/05/2012 12:00 am Andreas Färber

leon3: Store SPARCCPU in ResetData

Allows us to use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

fdcb4fb6 06/05/2012 12:00 am Andreas Färber

bsd-user: Use cpu_reset() in after cpu_init()

Eliminates cpu_state_reset() usage.

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

ff18b762 06/05/2012 12:00 am Andreas Färber

linux-user: Use cpu_reset() after cpu_init() / cpu_copy()

Eliminates cpu_state_reset() usage.

Signed-off-by: Andreas Färber <>

b7e516ce 06/05/2012 12:00 am Andreas Färber

Kill off cpu_state_reset()

In commit 1bba0dc932e8826a7d030df3767daf0bc339f9a2 cpu_reset()
was renamed to cpu_state_reset(), to allow introducing a new cpu_reset()
that would operate on QOM objects.

All callers have been updated except for one in target-mips, so drop all...

05769733 06/05/2012 12:00 am Andreas Färber

spapr: Use cpu_ppc_init() to obtain PowerPCCPU

Needed for spapr_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

5b2038e0 06/05/2012 12:00 am Andreas Färber

spapr: Pass PowerPCCPU to spapr_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

322164e0 06/05/2012 12:00 am Andreas Färber

ppc440_bamboo: Use cpu_ppc_init() to obtain PowerPCCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

182fbbf2 06/05/2012 12:00 am Andreas Färber

ppc440_bamboo: Pass PowerPCCPU to main_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

57274713 06/05/2012 12:00 am Andreas Färber

ppc4xx_devs: Use cpu_ppc_init() to obtain PowerPCCPU

Needed for ppc4xx_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

90cb09d9 06/05/2012 12:00 am Andreas Färber

ppc4xx_devs: Pass PowerPCCPU to ppc4xx_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

8f8204ec 06/05/2012 12:00 am Andreas Färber

ppc_newworld: Use cpu_ppc_init() to obtain PowerPCCPU

Needed for ppc_core99_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

6680988c 06/05/2012 12:00 am Andreas Färber

ppc_newworld: Pass PowerPCCPU to ppc_core99_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

72c33dd7 06/05/2012 12:00 am Andreas Färber

ppc_oldworld: Use cpu_ppc_init() to obtain PowerPCCPU

Needed for ppc_heathrow_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

cd79664f 06/05/2012 12:00 am Andreas Färber

ppc_oldworld: Pass PowerPCCPU to ppc_heathrow_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

a9bf3df0 06/05/2012 12:00 am Andreas Färber

ppc_prep: Use cpu_ppc_init() to obtain PowerPCCPU

Needed for ppc_prep_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

5c3e735f 06/05/2012 12:00 am Andreas Färber

ppc_prep: Pass PowerPCCPU to ppc_prep_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

d1d4938b 06/05/2012 12:00 am Andreas Färber

virtex_ml507: Use cpu_ppc_init() to obtain PowerPCCPU

Needed to change ppc440_init_xilinx() return type.

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

68281699 06/05/2012 12:00 am Andreas Färber

virtex_ml507: Let ppc440_init_xilinx() return PowerPCCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

f8031482 06/05/2012 12:00 am Andreas Färber

virtex_ml507: Pass PowerPCCPU to main_cpu_reset()

Allows us to call cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

fd2f410b 06/05/2012 12:00 am Andreas Färber

r2d: Use cpu_sh4_init() to obtain SuperHCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>

868bac81 06/05/2012 12:00 am Andreas Färber

r2d: Store SuperHCPU in ResetData

Allows us to use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Signed-off-by: Andreas Färber <>

3bd4122e 06/05/2012 12:00 am Andreas Färber

target-mips: Use cpu_reset() in cpu_mips_init()

Commit 0f71a7095db6bc055bc5bb520d85ea650cca8a33 (target-mips: QOM'ify
CPU) hooked up cpu_state_reset() to CPUClass::reset(). Dropping the
introduction of subclasses for 1.1, due to mips_def_t the reset code...

fca1be7c 06/05/2012 12:00 am Andreas Färber

target-mips: Use cpu_reset() in do_interrupt()

Signed-off-by: Andreas Färber <>

30bf942d 06/05/2012 12:00 am Andreas Färber

target-mips: Let cpu_mips_init() return MIPSCPU

Turn cpu_init macro into a static inline function returning CPUMIPSState
for backwards compatibility.

Signed-off-by: Andreas Färber <>

f0f80366 06/05/2012 12:00 am Andreas Färber

mips_fulong2e: Use cpu_mips_cpu() to obtain MIPSCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>

800cf598 06/05/2012 12:00 am Andreas Färber

mips_fulong2e: Pass MIPSCPU to main_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>

6bd8da65 06/05/2012 12:00 am Andreas Färber

mips_jazz: Use cpu_mips_init() to obtain MIPSCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Hervé Poussineau <>

f37f435a 06/05/2012 12:00 am Andreas Färber

mips_jazz: Pass MIPSCPU to main_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Hervé Poussineau <>

7688b134 06/05/2012 12:00 am Andreas Färber

mips_malta: Use cpu_mips_init() to obtain MIPSCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>

1004ee8d 06/05/2012 12:00 am Andreas Färber

mips_malta: Pass MIPSCPU to main_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>

7ee274c1 06/05/2012 12:00 am Andreas Färber

mips_mipssim: Use cpu_mips_init() to obtain MIPSCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>

2d44fc8e 06/05/2012 12:00 am Andreas Färber

mips_mipssim: Store MIPSCPU in ResetData

Allows us to use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Signed-off-by: Andreas Färber <>

9ac67e21 06/05/2012 12:00 am Andreas Färber

mips_r4k: Use cpu_mips_init() to obtain MIPSCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>

fa156e51 06/05/2012 12:00 am Andreas Färber

mips_r4k: Store MIPSCPU in ResetData

Allows us to use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Signed-off-by: Andreas Färber <>

397b457d 06/05/2012 12:00 am Andreas Färber

target-ppc: Let cpu_ppc_init() return PowerPCCPU

Adapt e500 mpc8544ds machine accordingly.

Turn cpu_init() into a static inline function returning CPUPPCState for
backwards compatibility.

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

38f92da6 06/05/2012 12:00 am Andreas Färber

ppce500_mpc8544ds: Pass PowerPCCPU to mpc8544ds_cpu_reset[_sec]

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

eded1267 06/05/2012 12:00 am Andreas Färber

xtensa_lx60: Pass XtensaCPU to lx60_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Max Filippov <>

dd10ce6d 06/05/2012 12:00 am Andreas Färber

target-cris: Reindent cpu_cris_init()

Judging by TCG variable initialization it used 8-char tabs; use 4 spaces
instead. Also remove trailing whitespace.

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

9fca5636 06/05/2012 12:00 am Andreas Färber

target-cris: Let cpu_cris_init() return CRISCPU

Turn cpu_init macro into a static inline function returning CPUCRISState
for backwards compatibility.

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

ddeb9ae5 06/05/2012 12:00 am Andreas Färber

axis_dev88: Use cpu_cris_init() to obtain CRISCPU

Needed for cris_load_image().

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

5935664f 06/05/2012 12:00 am Andreas Färber

cris-boot: Pass CRISCPU to cris_load_image()

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

1584aafd 06/05/2012 12:00 am Andreas Färber

cris-boot: Pass CRISCPU to main_cpu_reset().

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

b33ab1f7 06/05/2012 12:00 am Andreas Färber

target-microblaze: Let cpu_mb_init() return MicroBlazeCPU

Since qemu_init_vcpu() is no-op for CONFIG_USER_ONLY drop the env
variable that is now unused there.

Turn cpu_init macro into a static inline function returning CPUMBState
for backwards compatibility....

a9480e5d 06/05/2012 12:00 am Andreas Färber

petalogix_ml605: Use cpu_mb_init() to obtain MicroBlazeCPU

Needed for microblaze_load_kernel().

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

3ed60733 06/05/2012 12:00 am Andreas Färber

petalogix_s3adsp1800_mmu: Use cpu_mb_init() to obtain MicroBlazeCPU

Needed for microblaze_load_kernel().

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

bf494367 06/05/2012 12:00 am Andreas Färber

microblaze_boot: Pass MicroBlazeCPU to microblaze_load_kernel()

Allows us to use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Also pass it through to its reset callbacks, while at it.

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

232fc23b 06/05/2012 12:00 am Andreas Färber

target-i386: Pass X86CPU to do_cpu_{init,sipi}()

Allows to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Reviewed-by: Igor Mammedov <>

b47ed996 06/05/2012 12:00 am Andreas Färber

target-i386: Let cpu_x86_init() return X86CPU

Turn cpu_init macro into a static inline function returning CPUX86State
for backwards compatibility.

Signed-off-by: Andreas Färber <>
Reviewed-by: Igor Mammedov <>

608911ac 06/05/2012 12:00 am Andreas Färber

pc: Use cpu_x86_init() to obtain X86CPU

Needed for pc_cpu_reset().

Also change return type to X86CPU.

Signed-off-by: Andreas Färber <>
Reviewed-by: Igor Mammedov <>

e5fe7a34 06/05/2012 12:00 am Andreas Färber

pc: Pass X86CPU to pc_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Reviewed-by: Igor Mammedov <>

445e9571 06/05/2012 12:00 am Andreas Färber

target-sh4: Let cpu_sh4_init() return SuperHCPU

Turn cpu_init macro into a static inline function returning
CPUSH4State for backwards compatibility.

Signed-off-by: Andreas Färber <>

5f4ef08b 06/05/2012 12:00 am Andreas Färber

omap: Use cpu_arm_init() to store ARMCPU in omap_mpu_state_s

Fix tab indentations of comments, add braces, use cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Peter Maydell <>

0f37c99b 06/05/2012 12:00 am Andreas Färber

armv7m: Use cpu_arm_init() to obtain ARMCPU

Needed for armv7m_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Peter Maydell <>

31363f12 06/05/2012 12:00 am Andreas Färber

armv7m: Pass ARMCPU to armv7m_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Peter Maydell <>

351d5666 06/05/2012 12:00 am Andreas Färber

arm_boot: Pass ARMCPU to do_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Peter Maydell <>

0347d689 06/05/2012 12:00 am Andreas Färber

target-lm32: Let cpu_lm32_init() return LM32CPU

Make the include paths for cpu-qom.h consistent to allow using LM32CPU
in cpu.h.

Turn cpu_init macro into a static inline function returning CPULM32State
for backwards compatibility.

Signed-off-by: Andreas Färber <>...

47dc4fa2 06/05/2012 12:00 am Andreas Färber

lm32_boards: Use cpu_lm32_init() to obtain LM32CPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Michael Walle <>

b1435596 06/05/2012 12:00 am Andreas Färber

lm32_boards: Store LM32CPU in ResetInfo

Allows us to use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Michael Walle <>

1328cc01 06/05/2012 12:00 am Andreas Färber

milkymist: Use cpu_lm32_init() to obtain LM32CPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Michael Walle <>

f6932a86 06/05/2012 12:00 am Andreas Färber

milkymist: Store LM32 in ResetInfo

Allows us to use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Michael Walle <>

15be3171 06/05/2012 12:00 am Andreas Färber

target-xtensa: Let cpu_xtensa_init() return XtensaCPU

Make the include paths for cpu-qom.h consistent to allow using XtensaCPU
in cpu.h.

Turn cpu_init macro into a static inline function returning
CPUXtensaState for backwards compatibility.

Signed-off-by: Andreas Färber <>...

06d26274 06/05/2012 12:00 am Andreas Färber

xtensa_sim: Use cpu_xtensa_init() to obtain XtensaCPU

Needed for sim_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Max Filippov <>

11e7bfd7 06/05/2012 12:00 am Andreas Färber

xtensa_sim: Pass XtensaCPU to sim_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Max Filippov <>

adbb0f75 06/05/2012 12:00 am Andreas Färber

xtensa_lx60: Use cpu_xtensa_init() to obtain XtensaCPU

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Max Filippov <>

df90dadb 06/05/2012 12:00 am Andreas Färber

target-arm: Use cpu_reset() in cpu_arm_init()

Commit 3c30dd5a68e9fee6af67cfd0d14ed7520820f36a (target-arm: Move reset
handling to arm_cpu_reset) QOM'ified CPU reset. Complete it by replacing
cpu_state_reset() with cpu_reset().

Signed-off-by: Andreas Färber <>...

43824588 06/05/2012 12:00 am Andreas Färber

pxa2xx: Use cpu_arm_init() and store ARMCPU

Also use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Peter Maydell <>

60d5666f 06/04/2012 07:49 pm Luiz Capitulino

qemu-config: introduce qemu_find_opts_err()

This is like qemu_find_opts(), except that it takes an Error argument.

This new function allows for a incremental conversion of code using
qemu_find_opts().

Signed-off-by: Luiz Capitulino <>...

42dcc547 06/04/2012 07:49 pm Luiz Capitulino

net: purge the monitor object from all init functions

The only backend that really uses it is the socket one, which calls
monitor_get_fd(). But it can use 'cur_mon' instead.

Signed-off-by: Luiz Capitulino <>
Reviewed-By: Laszlo Ersek <>

4559a1db 06/04/2012 07:49 pm Luiz Capitulino

net: net_client_init(): use error_set()

Callers are changed to use qerror_report_err() to keep their QError
semantics.

Signed-off-by: Luiz Capitulino <>
Reviewed-By: Laszlo Ersek <>

928059a3 06/04/2012 07:49 pm Luiz Capitulino

qapi: convert netdev_add

This is not a full QAPI conversion, but an intermediate step.

In essence, do_netdev_add() is split into three functions:

1. netdev_add(): performs the actual work. This function is fully
converted to Error (thus, it's "qapi-friendly")...
5f964155 06/04/2012 07:49 pm Luiz Capitulino

qapi: convert netdev_del

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>
Reviewed-By: Laszlo Ersek <>

4860853d 06/04/2012 07:49 pm Daniel P. Berrange

Add 'query-events' command to QMP to query async events

Sometimes it is neccessary for an application to determine
whether a particular QMP event is available, so they can
decide whether to use compatibility code instead. This
introduces a new 'query-events' command to QMP to do just...

4e89978e 06/04/2012 07:49 pm Luiz Capitulino

qemu-option: qemu_opts_from_qdict(): use error_set()

do_device_add() and do_netdev_add() call qerror_report_err() to maintain
their QError semantics.

Signed-off-by: Luiz Capitulino <>
Reviewed-By: Laszlo Ersek <>

8ff15d4a 06/04/2012 07:49 pm Luiz Capitulino

qerror: introduce QERR_INVALID_OPTION_GROUP

Signed-off-by: Luiz Capitulino <>
Reviewed-By: Laszlo Ersek <>

2ac20613 06/04/2012 07:49 pm Luiz Capitulino

qemu-config: find_list(): use error_set()

Note that qemu_find_opts() and qemu_config_parse() need to call
error_report() to maintain their semantics on error.

Signed-off-by: Luiz Capitulino <>
Reviewed-By: Laszlo Ersek <>