summaryrefslogtreecommitdiffstats
path: root/hw
Commit message (Collapse)AuthorAgeFilesLines
* target-ppc: Unbreak kvm_ppc.c buildAndreas Färber2012-06-091-1/+0
| | | | | | | | | | The file is located in target-ppc/, not hw/. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Anthony Liguori <anthony@codemonkey.ws> Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* build: move device tree to per-target Makefile.objsPaolo Bonzini2012-06-073-0/+3
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* build: move per-target hw/ objects to nested Makefile.objsPaolo Bonzini2012-06-072-0/+20
| | | | | | | | This completes the move to nested Makefiles for virtio and a few other files that were not part of obj-TARGET-y, but still were compiled separately for each target. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* build: convert libhw to nested Makefile.objsPaolo Bonzini2012-06-074-0/+141
| | | | | | | | After this patch, the libhw* directories will have a hierarchy that mimics the source tree. This is useful because we do have a couple of files there that are in the top source directory. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* build: move target-independent hw/ objects to nested Makefile.objsPaolo Bonzini2012-06-072-0/+36
| | | | | | | | | | | | This patch starts converting the hw/ directory. Some files in hw/ are compiled once, some twice (32-/64-bit), some once per target. Each category is moved in a separate patch. After this patch, the files that are compiled once will show the same hierarchy in the build tree as they do in the source tree, for example hw/qdev.o instead of just qdev.o. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* build: move obj-TARGET-y variables to nested Makefile.objsPaolo Bonzini2012-06-0714-0/+171
| | | | | | Also drop duplicate occurrence of device-hotplug.o. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* Merge remote-tracking branch 'qmp/queue/qmp' into stagingAnthony Liguori2012-06-065-8/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 qemu-config: introduce qemu_find_opts_err() qemu-config: find_list(): use error_set() qerror: introduce QERR_INVALID_OPTION_GROUP qemu-option: qemu_opts_from_qdict(): use error_set() qemu-option: introduce qemu_opt_set_err() qemu-option: opt_set(): use error_set() qemu-option: qemu_opts_validate(): use error_set() qemu-option: qemu_opt_parse(): use error_set() qemu-option: parse_option_size(): use error_set() qemu-option: parse_option_bool(): use error_set() qemu-option: parse_option_number(): use error_set() qemu-option: qemu_opts_create(): use error_set() introduce a new monitor command 'dump-guest-memory' to dump guest's memory make gdb_id() generally avialable and rename it to cpu_index() target-i386: Add API to get note's size ...
| * net: net_client_init(): use error_set()Luiz Capitulino2012-06-042-4/+11
| | | | | | | | | | | | | | | | Callers are changed to use qerror_report_err() to keep their QError semantics. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-By: Laszlo Ersek <lersek@redhat.com>
| * net: purge the monitor object from all init functionsLuiz Capitulino2012-06-042-2/+2
| | | | | | | | | | | | | | | | 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 <lcapitulino@redhat.com> Reviewed-By: Laszlo Ersek <lersek@redhat.com>
| * qemu-option: qemu_opts_from_qdict(): use error_set()Luiz Capitulino2012-06-041-2/+5
| | | | | | | | | | | | | | | | do_device_add() and do_netdev_add() call qerror_report_err() to maintain their QError semantics. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-By: Laszlo Ersek <lersek@redhat.com>
| * qemu-option: qemu_opts_create(): use error_set()Luiz Capitulino2012-06-042-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit converts qemu_opts_create() from qerror_report() to error_set(). Currently, most calls to qemu_opts_create() can't fail, so most callers don't need any changes. The two cases where code checks for qemu_opts_create() erros are: 1. Initialization code in vl.c. All of them print their own error messages directly to stderr, no need to pass the Error object 2. The functions opts_parse(), qemu_opts_from_qdict() and qemu_chr_parse_compat() make use of the error information and they can be called from HMP or QMP. In this case, to allow for incremental conversion, we propagate the error up using qerror_report_err(), which keeps the QError semantics Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-By: Laszlo Ersek <lersek@redhat.com>
* | Merge remote-tracking branch 'afaerber-or/qom-cpu-3' into stagingAnthony Liguori2012-06-0643-215/+313
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 leon3: Use cpu_sparc_init() to obtain SPARCCPU sun4u: Store SPARCCPU in ResetData sun4u: Let cpu_devinit() return SPARCCPU sun4u: Use cpu_sparc_init() to obtain SPARCCPU sun4m: Pass SPARCCPU to {main,secondary}_cpu_reset() sun4m: Use cpu_sparc_init() to obtain SPARCCPU target-sparc: Let cpu_sparc_init() return SPARCCPU cpu-exec: Use cpu_reset() in cpu_exec() for TARGET_PPC virtex_ml507: Pass PowerPCCPU to main_cpu_reset() virtex_ml507: Let ppc440_init_xilinx() return PowerPCCPU virtex_ml507: Use cpu_ppc_init() to obtain PowerPCCPU ppc_prep: Pass PowerPCCPU to ppc_prep_reset() ppc_prep: Use cpu_ppc_init() to obtain PowerPCCPU ppc_oldworld: Pass PowerPCCPU to ppc_heathrow_reset() ppc_oldworld: Use cpu_ppc_init() to obtain PowerPCCPU ppc_newworld: Pass PowerPCCPU to ppc_core99_reset() ...
| * | leon3: Store SPARCCPU in ResetDataAndreas Färber2012-06-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Blue Swirl <blauwirbel@gmail.com>
| * | leon3: Use cpu_sparc_init() to obtain SPARCCPUAndreas Färber2012-06-041-2/+4
| | | | | | | | | | | | | | | | | | | | | Needed for main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Blue Swirl <blauwirbel@gmail.com>
| * | sun4u: Store SPARCCPU in ResetDataAndreas Färber2012-06-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | We can now use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Blue Swirl <blauwirbel@gmail.com>
| * | sun4u: Let cpu_devinit() return SPARCCPUAndreas Färber2012-06-041-3/+5
| | | | | | | | | | | | | | | | | | | | | Needed for main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Blue Swirl <blauwirbel@gmail.com>
| * | sun4u: Use cpu_sparc_init() to obtain SPARCCPUAndreas Färber2012-06-041-3/+6
| | | | | | | | | | | | | | | | | | | | | This prepares using it in sun4uv_init(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Blue Swirl <blauwirbel@gmail.com>
| * | sun4m: Pass SPARCCPU to {main,secondary}_cpu_reset()Andreas Färber2012-06-041-6/+8
| | | | | | | | | | | | | | | | | | | | | We can now use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Blue Swirl <blauwirbel@gmail.com>
| * | sun4m: Use cpu_sparc_init() to obtain SPARCCPUAndreas Färber2012-06-041-2/+4
| | | | | | | | | | | | | | | | | | | | | Needed for {main,secondary}_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Blue Swirl <blauwirbel@gmail.com>
| * | virtex_ml507: Pass PowerPCCPU to main_cpu_reset()Andreas Färber2012-06-041-3/+4
| | | | | | | | | | | | | | | | | | | | | Allows us to call cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | virtex_ml507: Let ppc440_init_xilinx() return PowerPCCPUAndreas Färber2012-06-041-6/+8
| | | | | | | | | | | | | | | | | | | | | Needed for main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | virtex_ml507: Use cpu_ppc_init() to obtain PowerPCCPUAndreas Färber2012-06-041-2/+4
| | | | | | | | | | | | | | | | | | | | | Needed to change ppc440_init_xilinx() return type. Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | ppc_prep: Pass PowerPCCPU to ppc_prep_reset()Andreas Färber2012-06-041-3/+3
| | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | ppc_prep: Use cpu_ppc_init() to obtain PowerPCCPUAndreas Färber2012-06-041-2/+5
| | | | | | | | | | | | | | | | | | | | | Needed for ppc_prep_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | ppc_oldworld: Pass PowerPCCPU to ppc_heathrow_reset()Andreas Färber2012-06-041-3/+3
| | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | ppc_oldworld: Use cpu_ppc_init() to obtain PowerPCCPUAndreas Färber2012-06-041-2/+5
| | | | | | | | | | | | | | | | | | | | | Needed for ppc_heathrow_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | ppc_newworld: Pass PowerPCCPU to ppc_core99_reset()Andreas Färber2012-06-041-3/+3
| | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | ppc_newworld: Use cpu_ppc_init() to obtain PowerPCCPUAndreas Färber2012-06-041-2/+5
| | | | | | | | | | | | | | | | | | | | | Needed for ppc_core99_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | ppc4xx_devs: Pass PowerPCCPU to ppc4xx_reset()Andreas Färber2012-06-041-3/+3
| | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | ppc4xx_devs: Use cpu_ppc_init() to obtain PowerPCCPUAndreas Färber2012-06-041-2/+5
| | | | | | | | | | | | | | | | | | | | | Needed for ppc4xx_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | ppc440_bamboo: Pass PowerPCCPU to main_cpu_reset()Andreas Färber2012-06-041-3/+4
| | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | ppc440_bamboo: Use cpu_ppc_init() to obtain PowerPCCPUAndreas Färber2012-06-041-2/+4
| | | | | | | | | | | | | | | | | | | | | Needed for main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | spapr: Pass PowerPCCPU to spapr_cpu_reset()Andreas Färber2012-06-041-3/+3
| | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | spapr: Use cpu_ppc_init() to obtain PowerPCCPUAndreas Färber2012-06-041-3/+5
| | | | | | | | | | | | | | | | | | | | | Needed for spapr_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | ppce500_mpc8544ds: Pass PowerPCCPU to mpc8544ds_cpu_reset[_sec]Andreas Färber2012-06-041-6/+8
| | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | target-ppc: Let cpu_ppc_init() return PowerPCCPUAndreas Färber2012-06-041-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adapt e500 mpc8544ds machine accordingly. Turn cpu_init() into a static inline function returning CPUPPCState for backwards compatibility. Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Alexander Graf <agraf@suse.de>
| * | mips_r4k: Store MIPSCPU in ResetDataAndreas Färber2012-06-041-4/+4
| | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de>
| * | mips_r4k: Use cpu_mips_init() to obtain MIPSCPUAndreas Färber2012-06-041-2/+5
| | | | | | | | | | | | | | | | | | Needed for main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de>
| * | mips_mipssim: Store MIPSCPU in ResetDataAndreas Färber2012-06-041-4/+4
| | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de>
| * | mips_mipssim: Use cpu_mips_init() to obtain MIPSCPUAndreas Färber2012-06-041-2/+5
| | | | | | | | | | | | | | | | | | Needed for main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de>
| * | mips_malta: Pass MIPSCPU to main_cpu_reset()Andreas Färber2012-06-041-3/+5
| | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de>
| * | mips_malta: Use cpu_mips_init() to obtain MIPSCPUAndreas Färber2012-06-041-2/+5
| | | | | | | | | | | | | | | | | | Needed for main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de>
| * | mips_jazz: Pass MIPSCPU to main_cpu_reset()Andreas Färber2012-06-041-3/+4
| | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Hervé Poussineau <hpoussin@reactos.org>
| * | mips_jazz: Use cpu_mips_init() to obtain MIPSCPUAndreas Färber2012-06-041-2/+4
| | | | | | | | | | | | | | | | | | | | | Needed for main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Hervé Poussineau <hpoussin@reactos.org>
| * | mips_fulong2e: Pass MIPSCPU to main_cpu_reset()Andreas Färber2012-06-041-3/+4
| | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de>
| * | mips_fulong2e: Use cpu_mips_cpu() to obtain MIPSCPUAndreas Färber2012-06-041-2/+4
| | | | | | | | | | | | | | | | | | Needed for main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de>
| * | r2d: Store SuperHCPU in ResetDataAndreas Färber2012-06-041-4/+4
| | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de>
| * | r2d: Use cpu_sh4_init() to obtain SuperHCPUAndreas Färber2012-06-041-3/+7
| | | | | | | | | | | | | | | | | | Needed for main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de>
| * | pc: Pass X86CPU to pc_cpu_reset()Andreas Färber2012-06-041-4/+5
| | | | | | | | | | | | | | | | | | | | | Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Igor Mammedov <imammedo@redhat.com>
| * | pc: Use cpu_x86_init() to obtain X86CPUAndreas Färber2012-06-041-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Needed for pc_cpu_reset(). Also change return type to X86CPU. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Igor Mammedov <imammedo@redhat.com>
OpenPOWER on IntegriCloud