No description
Find a file
Alexey Kardashevskiy 0ce470cd4c target-ppc: add PowerPCCPU::cpu_dt_id
Normally CPUState::cpu_index is used to pick the right CPU for various
operations. However default consecutive numbering does not always work
for POWERPC.

These indexes are reflected in /proc/device-tree/cpus/PowerPC,POWER7@XX
and used to call KVM VCPU's ioctls. In order to achieve this,
kvmppc_fixup_cpu() was introduced. Roughly speaking, it multiplies
cpu_index by the number of threads per core.

This approach has disadvantages such as:
1. NUMA configuration stays broken after the fixup;
2. CPU-targeted commands from the QEMU Monitor do not work properly as
CPU indexes have been fixed and there is no clear way for the user to
know what the new CPU indexes are.

This introduces a @cpu_dt_id field in the CPUPPCState struct which
is initialized from @cpu_index by default and can be fixed later
to meet the device tree requirements.

This adds an API to handle @cpu_dt_id.

This removes kvmppc_fixup_cpu() as it is not more needed, @cpu_dt_id
is calculated in ppc_cpu_realize().

This will be used later in machine code.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Acked-by: Mike Day <ncmike@ncultra.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
2014-03-05 03:07:03 +01:00
audio
backends
block block/gluster: Add missing argument to qemu_gluster_init() call 2014-03-04 20:20:57 +00:00
bsd-user
default-configs Add Enhanced Three-Speed Ethernet Controller (eTSEC) 2014-03-05 03:06:45 +01:00
disas
docs qmp: Make Quorum error events more palatable. 2014-02-28 18:59:06 +01:00
dtc@bc895d6d09
fpu
fsdev
gdb-xml
hw target-ppc: add PowerPCCPU::cpu_dt_id 2014-03-05 03:07:03 +01:00
include qdev: Keep global allocation counter per bus 2014-03-05 03:06:47 +01:00
libcacard
linux-headers update linux headers to kvm/next 2014-02-27 09:50:45 +01:00
linux-user target-ppc: Add Store Quadword Conditional 2014-03-05 03:06:51 +01:00
net net: remove implicit peer from offload API 2014-02-25 14:31:05 +01:00
pc-bios Several features, fixes and cleanups for kvm/s390: 2014-03-04 14:50:46 +00:00
pixman@97336fad32
po
qapi qapi: Add missing null check to opts_start_struct() 2014-03-03 11:17:45 -05:00
qga qga: Remove unneeded include file 2014-03-03 09:46:27 +04:00
qobject
qom
roms
scripts qapi: Clean up null checking in generated visitors 2014-03-03 11:17:20 -05:00
slirp
stubs stubs: Optimize dependencies for gdbstub.c 2014-03-02 17:13:31 +04:00
sysconfigs/target
target-alpha
target-arm target-arm: Add support for AArch32 ARMv8 CRC32 instructions 2014-02-26 17:20:07 +00:00
target-cris
target-i386 Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging 2014-03-04 17:01:07 +00:00
target-lm32
target-m68k
target-microblaze
target-mips
target-moxie
target-openrisc
target-ppc target-ppc: add PowerPCCPU::cpu_dt_id 2014-03-05 03:07:03 +01:00
target-s390x Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging 2014-03-04 17:01:07 +00:00
target-sh4
target-sparc
target-unicore32
target-xtensa
tcg tcg: Fix typo in comment (dependancies -> dependencies) 2014-03-02 17:12:51 +04:00
tests trivial patches for 2014-03-04 2014-03-04 18:12:02 +00:00
trace
ui
util target-ppc: Add ISA2.06 divde[o] Instructions 2014-03-05 03:06:39 +01:00
.exrc
.gitignore Merge remote-tracking branch 'remotes/bonzini/configure' into staging 2014-02-24 15:38:00 +00:00
.gitmodules
.mailmap
.travis.yml
aio-posix.c
aio-win32.c
arch_init.c Fix two XBZRLE corruption issues 2014-02-25 14:30:28 +01:00
async.c
balloon.c
block-migration.c
block.c block: use /var/tmp instead of /tmp for -snapshot 2014-02-28 18:59:07 +01:00
blockdev-nbd.c
blockdev.c
blockjob.c
bt-host.c
bt-vhci.c
Changelog
CODING_STYLE
configure dump: add support for lzo/snappy 2014-02-28 11:52:03 -05:00
COPYING
COPYING.LIB
coroutine-gthread.c
coroutine-sigaltstack.c
coroutine-ucontext.c
coroutine-win32.c
cpu-exec.c target-arm: Store AIF bits in env->pstate for AArch32 2014-02-26 17:20:06 +00:00
cpus.c
cputlb.c
device-hotplug.c
device_tree.c
disas.c
dma-helpers.c
dump.c dump: add 'query-dump-guest-memory-capability' command 2014-02-28 11:52:03 -05:00
exec.c exec: Remove unneeded include files 2014-03-03 09:46:27 +04:00
gdbstub.c
HACKING
hmp-commands.hx
hmp.c dump: make kdump-compressed format available for 'dump-guest-memory' 2014-02-28 11:52:03 -05:00
hmp.h
iohandler.c
ioport.c
kvm-all.c kvm: Add a new machine option kvm-type 2014-03-05 03:06:24 +01:00
kvm-stub.c kvm: Add a new machine option kvm-type 2014-03-05 03:06:24 +01:00
LICENSE
main-loop.c
MAINTAINERS MAINTAINERS: update status for HMP, QAPI and QMP trees 2014-02-28 11:41:43 -05:00
Makefile Merge remote-tracking branch 'remotes/mcayland/qemu-sparc' into staging 2014-03-04 13:09:06 +00:00
Makefile.objs
Makefile.target
memory.c
memory_mapping.c
migration-exec.c
migration-fd.c
migration-rdma.c rdma: rename 'x-rdma' => 'rdma' 2014-02-25 14:30:28 +01:00
migration-tcp.c
migration-unix.c
migration.c rdma: rename 'x-rdma' => 'rdma' 2014-02-25 14:30:28 +01:00
module-common.c
monitor.c monitor: Remove left-over code in do_info_profile. 2014-02-28 13:49:42 -05:00
nbd.c
os-posix.c
os-win32.c
page_cache.c Fix two XBZRLE corruption issues 2014-02-25 14:30:28 +01:00
qapi-schema.json Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging 2014-03-04 17:01:07 +00:00
qdev-monitor.c qdev-monitor: set DeviceState opts before calling realize 2014-02-26 10:32:40 -07:00
qdict-test-data.txt
qemu-bridge-helper.c
qemu-char.c
qemu-coroutine-io.c
qemu-coroutine-lock.c
qemu-coroutine-sleep.c
qemu-coroutine.c
qemu-doc.texi
qemu-file.c qemu_file: use fwrite() correctly 2014-02-25 14:26:59 +01:00
qemu-img-cmds.hx
qemu-img.c qemu-img: Remove unneeded include files 2014-03-03 09:46:27 +04:00
qemu-img.texi
qemu-io-cmds.c
qemu-io.c Block patches 2014-02-25 10:50:11 +00:00
qemu-log.c
qemu-nbd.c Block patches 2014-02-25 10:50:11 +00:00
qemu-nbd.texi
qemu-options-wrapper.h
qemu-options.h
qemu-options.hx
qemu-seccomp.c
qemu-tech.texi
qemu-timer.c
qemu.nsi
qemu.sasl
qmp-commands.hx dump: add 'query-dump-guest-memory-capability' command 2014-02-28 11:52:03 -05:00
qmp.c object: Report type in error when not user creatable. 2014-03-02 17:12:41 +04:00
qtest.c kvm: Add a new machine option kvm-type 2014-03-05 03:06:24 +01:00
README
rules.mak
savevm.c
spice-qemu-char.c
tcg-runtime.c
tci.c
thread-pool.c
thunk.c
tpm.c
trace-events target-ppc: Introduce hypervisor call H_GET_TCE 2014-03-05 03:07:03 +01:00
translate-all.c
translate-all.h
user-exec.c
VERSION
version.rc
vl.c kvm: Add a new machine option kvm-type 2014-03-05 03:06:24 +01:00
vmstate.c Fix vmstate_info_int32_le comparison/assign 2014-02-25 14:30:28 +01:00
xbzrle.c
xen-all.c kvm: Add a new machine option kvm-type 2014-03-05 03:06:24 +01:00
xen-mapcache.c
xen-stub.c kvm: Add a new machine option kvm-type 2014-03-05 03:06:24 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team