• Home
  • History
  • Annotate
  • only in /external/qemu/include/sysemu/
History log of /external/qemu/include/sysemu/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7f38c7f905384c064b88fbdfa2eb054a92be63f3 26-Mar-2014 David 'Digit' Turner <digit@google.com> hax: CPUOldState -> CPUState

Change-Id: I4352da69e3a4e064a9fbaebee1dcb717cbb329b7
vm.h
e36a683b547e540c68bf9c5578e05b29c8676f47 25-Mar-2014 David 'Digit' Turner <digit@google.com> kvm: CPUOldState -> CPUState migration.

Change-Id: I1528b1fde21d42d6f0a3a77ce8ba827a9f23a5a1
vm.h
1365eb2b35736211464f313616e32f25569e5107 16-Feb-2014 David 'Digit' Turner <digit@google.com> Remove compiler warnings

Change-Id: I75e21a86958a4650b956e89a55357f0c38fcb118
ysemu.h
e711ca0dbf7d0a55897aec0a0249f349fee37894 16-Feb-2014 David 'Digit' Turner <digit@google.com> <sysemu/os-xxxx.h>: upstream version.

Change-Id: I0516af43d2195230e256dfdd2975d4ccd0086c92
s-posix.h
s-win32.h
dcda949f769a11b197f4784fe299a448d87e6e14 16-Feb-2014 David 'Digit' Turner <digit@google.com> qemu-timer.c: Use upstream version.

This completely modifies the implementation of timers to match upstream,
the only difference is that the oddly-placed qemu_gpoll_ns() function is
disabled (it's not used yet).

Most of the changes here (but not all), were applied through the following
sed script:

s|qemu_get_clock\s*(\s*vm_clock\s*)|qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)|g
s|qemu_get_clock\s*(\s*rt_clock\s*)|qemu_clock_get_ms(QEMU_CLOCK_REALTIME)|g
s|qemu_get_clock_ns\s*(\s*vm_clock\s*)|qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)|g
s|qemu_get_clock_ns\s*(\s*rt_clock\s*)|qemu_clock_get_ns(QEMU_CLOCK_REALTIME)|g
s|qemu_get_clock_ms\s*(\s*vm_clock\s*)|qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL)|g
s|qemu_get_clock_ms\s*(\s*rt_clock\s*)|qemu_clock_get_ms(QEMU_CLOCK_REALTIME)|g
s|qemu_get_clock_ms\s*(\s*host_clock\s*)|qemu_clock_get_ms(QEMU_CLOCK_HOST)|g
s|qemu_get_clock_ms\s*(\s*SHAPER_CLOCK\s*)|qemu_clock_get_ms(SHAPER_CLOCK)|g
s|qemu_mod_timer\s*(|timer_mod(|g
s|qemu_del_timer\s*(|timer_del(|g
s|qemu_free_timer\s*(|timer_free(|g
s|qemu_new_timer_ms\s*(\s*rt_clock,|timer_new(QEMU_CLOCK_REALTIME, SCALE_MS,|g
s|qemu_new_timer_ns\s*(\s*rt_clock,|timer_new(QEMU_CLOCK_REALTIME, SCALE_NS,|g
s|qemu_new_timer_ms\s*(\s*vm_clock,|timer_new(QEMU_CLOCK_VIRTUAL, SCALE_MS,|g
s|qemu_new_timer_ns\s*(\s*vm_clock,|timer_new(QEMU_CLOCK_VIRTUAL, SCALE_NS,|g
s|qemu_new_timer_ms\s*(\s*host_clock,|timer_new(QEMU_CLOCK_HOST, SCALE_MS,|g
s|qemu_new_timer_ns\s*(\s*host_clock,|timer_new(QEMU_CLOCK_HOST, SCALE_NS,|g
s|qemu_new_timer_ms\s*(\s*SHAPER_CLOCK\s*,|timer_new(SHAPER_CLOCK, SCALE_MS,|g
s|qemu_put_timer\s*(|timer_put(|g
s|qemu_get_timer\s*(|timer_get(|g
s|qemu_timer_pending\s*(|timer_pending(|g
s|qemu_clock_next_deadline\s*(\s*vm_clock|qemu_clock_deadline_ns_all(QEMU_CLOCK_VIRTUAL|g
s|qemu_clock_next_deadline\s*(\s*rt_clock|qemu_clock_deadline_ns_all(QEMU_CLOCK_REALTIME|g
s|qemu_clock_next_deadline\s*(\s*host_clock|qemu_clock_deadline_ns_all(QEMU_CLOCK_HOST|g

+ Disable icount-based clock warping/adjustments. It will be re-enabled in the future
after cpu emulation has been completely refactored.

Change-Id: Ifbcf4a52654eed3a08dfe59b0546a75d4627f758
ysemu.h
f01835519fdcb736449d64204c535cbc60f06ca6 16-Feb-2014 David 'Digit' Turner <digit@google.com> Move some cpu_xxxx() function to cpus.c

This moves the following functions from qemu-timer.c to cpus.c to match
upstream:

cpu_get_ticks
cpu_get_clock
cpu_enable_ticks
cpu_disable_ticks
timer_save
timer_load

+ Move declarations from include/qemu/timer.h to include/sysemu/sysemu.h
+ Remove obsolete declarations from include/qemu/timer.h

Change-Id: I83c84cf4c6fb83cbda6a501969e05fbffb4afd4f
ysemu.h
f9077a88a0b9edca081b0810dde73d108db087a6 10-Feb-2014 David 'Digit' Turner <digit@google.com> Move main loop logic to main-loop.c

This patch moves most of the logic dealing with the internal main loop
into the main-loop.c file, to match upstream. Note however that the actual
implementation is not changed, and is still _very_ different from upstream.

However, this decouples a few more things to make upcoming refactors
significantly easier. This should not affect performance in any way.

+ Move the log rotation logic, which is specific to QEMU, to
log-rotate-android.c and include/android/log-rotate.h, it's likely
that the use of SIGUSR1 will not be maintained in the future, because
upstream uses that to signal virtual CPU threads internally instead.

Change-Id: I7bc886778fa70742c165b1dfe77637564910764e
pus.h
s-posix.h
ysemu.h
df13b33feb3be71da6fdee2cf11bdddc7285cb7e 28-Jan-2014 David 'Digit' Turner <digit@android.com> device_tree.c: Remove unused source file and its header.

Change-Id: Iafc956d0670fa096c31d61d8da202a8da55fa6c0
evice_tree.h
9b3a4b03315af9bcdf282243059e8fd1ce1c5c70 23-Jan-2014 David 'Digit' Turner <digit@android.com> qemu-common.h: Remove include of cpu.h

The "qemu-common.h" included "cpu.h" when NEED_CPU_H was defined, which
introduced some nasty circular header dependency issues that affect later
patches in this series.

This patch removes the include, and fixes all other sources to include
"cpu.h" as needed instead.

+ Move loader declarations to "hw/loader.h"
+ Move some stuff from "qemu/timer.h" to "exec/cpu-all.h"

Change-Id: Ida1a4eccd889bae450b35ee32a931273ffe1f8d8
vm.h
ysemu.h
1befd3440439e8181a31140674e847f2d3e1481e 15-Jan-2014 David 'Digit' Turner <digit@android.com> Bring <qemu/iov.h> and <qemu/typedefs.h>

The location of qemu_iovec_xxx functions has moved from util/cutils.c
to a new file util/iov.c, with a few changes in the function's
interface, so update all callers.

+ Bring in <qemu/typedefs.h> and fix the few conflicts there.

Change-Id: I851ad31c3e15a0e8a23266cbfd5d1a52630a66b7
ma.h
e2678e116c8cdb0f36b247a5bd9cfacc849362fc 16-Jan-2014 David 'Digit' Turner <digit@android.com> Rename CPUState to CPUOldState.

Upstream qemu has split the cpu state into two new data structures:

CPUState -> is used to model the CPU state through the QEMU
object model.

CPUArchState -> actually a macro that aliases CPUArmState,
CPUX86State or CPUMIPSState.

Both were part of the "CPUState" in the current emulator sources.

Previous patches introduced CPUArchState, as a simple alias to the
machine-specific state. This patch renames any use of CPUState in
the current code to CPUOldState, except within target-*/ directories
where it is replaced by CPU${ARCH}State instead.

This will allow bringing the upstream CPUState definition in the
source tree, and slowly migrate everything to the right location.

Change-Id: I88b79e6e89f1f36084dc2642e1cf415135e4da09
vm.h
5b693bd24df715e5ea790784637d0d203fb5be0d 15-Jan-2014 David 'Digit' Turner <digit@android.com> mini-glib: Add g_win32_error_message() implementation.

Will be needed later.

Change-Id: I9e361d54ec0b3aed939f6849dab21d226ba31cde
s-win32.h
f6669d7bf05c4abb8f95862e82322ec4689251f4 13-Jan-2014 David 'Digit' Turner <digit@android.com> update <qemu/atomic.h> and add <qemu/compiler.h>

Also update <qemu-common.h> and <sysemu/sysemu.h>
in the process.

Change-Id: Iae47c07295c7ddde0498e297ae8b0b9ee05cfac3
ysemu.h
bcde1092aca184dbd7860078af020de7d1e4e22f 09-Jan-2014 David 'Digit' Turner <digit@android.com> rename target_phy_addr_t to hwaddr to match upstream.

Upstream got rid of the target_phys_addr_t and replaced it with 'hwaddr',
so do the corresponding rename here. Note that:

- This also renames <exec/targphys.h> to <exec/hwaddr.h>

- Upstream always deins hwaddr as a 64-bit type, while the size of
our own hwaddr is still controlled by TARGET_PHYS_ADDR_BITS, and
will be 32 for now.

A future patch will change the type definition to fully match
upstream, but it is more risky / requires more cleanups. It's
simply cleaner / simpler to put the related work in a separate
patch, given the large number of sources touched by the
current change.

Change-Id: Iee30869a57798c12109b6a23570b166232bb9244
ma.h
vm.h
ysemu.h
7821d6304f2944405f27abf06ae5fc9da38821e4 17-Dec-2013 David 'Digit' Turner <digit@android.com> hw/watchdog.h -> include/sysemu/watchdog.h

Change-Id: I5beefeffa9a368946eb43f5c98067423b7934ed5
atchdog.h
7d26df6676aee6d5ecf678f8a6779fd846227d6c 17-Dec-2013 David 'Digit' Turner <digit@android.com> device_tree.h -> include/sysemu/

Change-Id: Idff4dd141405bafa5a48290efaac1e19448a7ee6
evice_tree.h
1182284cd2ef1396dbbeeecd46ff90b4a225f0da 17-Dec-2013 David 'Digit' Turner <digit@android.com> cpus.h -> include/sysemu/

Change-Id: I63adb1aa61112565fa6962687536132b6800689f
pus.h
6800f0a746a7760429007c6dd7ac9eafeffc3741 17-Dec-2013 David 'Digit' Turner <digit@android.com> bt-host.h -> include/sysemu/bt.h

Change-Id: I40396deda6166769d67db8352f4920d57267ef09
t.h
93e0d9cfb6d950b638ba93cf5318e5689e4ba64e 15-Dec-2013 David 'Digit' Turner <digit@android.com> qemu-option.h -> include/qemu/option.h

Change-Id: I94301207676115c935ee198e8f814ee2943613e0
har.h
ysemu.h
057b0f638014d1cb6764aab945b98197329f745e 15-Dec-2013 David 'Digit' Turner <digit@android.com> Move elf_ops.h -> include/hw/elf_ops.h

+ qemu-thread.h -> include/qemu/thread.h
+ qemu-os-*.h -> include/sysemu/os-*.h

Change-Id: I68a58a817e54a7f607b34b7a9b34e38a685233ea
s-posix.h
s-win32.h
031d655004e505a15e92580a16a181d1d247c4d5 15-Dec-2013 David 'Digit' Turner <digit@android.com> Move qemu-queue.h -> include/qemu/queue.h

Change-Id: I2ef2c4aea2cdf73e834b013a11fb63a0eb720262
lockdev.h
har.h
vm.h
ysemu.h
e7216d82dbaa19892ad62b07402d512234559a6e 15-Dec-2013 David 'Digit' Turner <digit@android.com> qemu-char.h -> include/sysemu/char.h

Change-Id: I8e3d6e9a73a347978789a98035e89ea1e03b59aa
har.h
e1e03df288d5a44bfbffbd86588395c7cbbc27df 15-Dec-2013 David 'Digit' Turner <digit@android.com> Move more headers.

cbuffer.h, charpipe.h -> include/android/
cbuffer.c, charpipe.c -> android/
qemu_debug.h -> include/android/qemu-debug.h
block.h, block_int.h -> include/block/
elf.h -> include/
hax.h -> include/exec/
qemu-lock.h -> include/exec/spinlock.h
readline.h -> include/monitor/readline.h
qemu-common.h - include
qemu-barrier.h -> include/qemu/atomic.h
qemu-log.h -> include/qemu/log.h

Change-Id: I86b998932461caa35d347cd71b40bd6e4ec7d84d
lockdev.h
ma.h
34c48ff1e3ad5cd2084ca40188754d45f423750b 15-Dec-2013 David 'Digit' Turner <digit@android.com> Move headers to incude/sysemu/

+ arch_init.h, balloon.h, blockdev.h, dma.h, kvm.h,
sysemu.h -> include/sysemu/

+ kvm-android.h -> include/android/kvm.h

Change-Id: I3d334e1b6eea836fdcee9f36fe693cf4c74be54f
rch_init.h
alloon.h
lockdev.h
ma.h
vm.h
ysemu.h