Statistics
| Branch: | Revision:

root @ 5ce5944d

# Date Author Comment
5ce5944d 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stw_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

2198a121 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stl_phys_notdirty input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

ab1da857 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stl_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

f606604f 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stq_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

41701aa4 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make lduw_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

2c17449b 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make ldq/ldub_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

fdfba1a2 02/11/2014 02:56 pm Edgar E. Iglesias

exec: Make ldl_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

33bde2e1 02/11/2014 02:56 pm Edgar E. Iglesias

exec: On AS changes, only flush affected CPU TLBs

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

09daed84 02/11/2014 02:56 pm Edgar E. Iglesias

cpu: Add per-cpu address space

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

c6c6958c 02/11/2014 02:56 pm Edgar E. Iglesias

memory: Add MemoryListener to typedefs.h

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

1b3fb98f 02/11/2014 02:56 pm Edgar E. Iglesias

exec: Make memory_region_section_get_iotlb use section AS

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

3be91e86 02/11/2014 02:56 pm Edgar E. Iglesias

exec: Always initialize MemorySection address spaces

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

77717094 02/11/2014 02:56 pm Edgar E. Iglesias

exec: Make iotlb_to_region input an AS

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

29d8ec7b 02/11/2014 02:55 pm Edgar E. Iglesias

exec: Make tb_invalidate_phys_addr input an AS

No functional change.

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

8fa75749 02/11/2014 01:26 pm Peter Maydell

Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140208' into staging

target-arm queue: * more A64 Neon instructions * AArch32 VCVTB and VCVTT ARMv8 instructions * fixes to inaccuracies in GIC emulation * libvixl disassembler for A64...

702f6df9 02/10/2014 08:31 pm Peter Maydell

Merge remote-tracking branch 'remotes/kvaneesh/for-upstream' into staging

  • remotes/kvaneesh/for-upstream:
    hw/9pfs: fix P9_STATS_GEN handling
    hw/9pfs: make get_st_gen() return ENOTTY error on special files
    hw/9pfs: handle undefined FS_IOC_GETVERSION case in handle_ioc_getversion()...
a87f3954 02/10/2014 08:10 pm Paolo Bonzini

memory: fix limiting of translation at a page boundary

Commit 360e607 (address_space_translate: do not cross page boundaries,
2014-01-30) broke MMIO accesses in cases where the section is shorter
than the full register width. This can happen for example with the...

1f6b12f7 02/08/2014 05:57 pm Peter Maydell

Merge remote-tracking branch 'remotes/mwalle/tags/lm32-fixes/20140204' into staging

target-lm32: fixes

  1. gpg: Signature made Tue 04 Feb 2014 18:47:56 GMT using DSA key ID 3F98A378
  2. gpg: Can't check signature: public key not found
  • remotes/mwalle/tags/lm32-fixes/20140204:...
aa7d461a 02/08/2014 04:50 pm Christoffer Dall

arm_gic: Support setting/getting binary point reg

Add a binary_point field to the gic emulation structure and support
setting/getting this register now when we have it. We don't actually
support interrupt grouping yet, oh well.

Reviewed-by: Peter Maydell <>...

a1b1d277 02/08/2014 04:50 pm Christoffer Dall

vmstate: Add uint32 2D-array support

Add support for saving VMState of 2D arrays of uint32 values.

Reviewed-by: Peter Maydell <>
Signed-off-by: Christoffer Dall <>
Signed-off-by: Peter Maydell <>

a9d477c4 02/08/2014 04:50 pm Christoffer Dall

arm_gic: Add GICC_APRn state to the GICState

The GICC_APRn registers are not currently supported by the ARM GIC v2.0
emulation. This patch adds the missing state.

Note that we also change the number of APRs to use a define GIC_NR_APRS
based on the maximum number of preemption levels. This patch also adds...

c3dc9fd5 02/08/2014 04:50 pm Peter Maydell

rules.mak: Support .cc as a C++ source file suffix

The A64 disassembler libvixl uses .cc as its suffix for
C++ source files, so add support for it (we already support
.cpp).

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

3144f78b 02/08/2014 04:50 pm Peter Maydell

rules.mak: Link with C++ if we have a C++ compiler

If we have a C++ compiler available, link with it, because we might be
linking some C++ files in. This allows us to include C++ object files
in the QEMU binary proper.

Signed-off-by: Peter Maydell <>...

878a735d 02/08/2014 04:50 pm Peter Maydell

disas: Add subset of libvixl sources for A64 disassembler

Add the subset of the libvixl sources that are needed for the
A64 disassembler support. These sources come from
https://github.com/armvixl/vixl commit 578645f14e122d2b
which is VIXL release 1.1.

Signed-off-by: Peter Maydell <>...

37fd5b53 02/08/2014 04:50 pm Peter Maydell

disas/libvixl: Fix upstream libvixl compilation issues

Fix various minor issues with upstream libvixl so that it will compile
successfully on the platforms QEMU cares about: * remove unused GBytes constant (it clashes with the glib headers) * fix suffixes on constants to use 'LL' for 64 bit constants so...

999b53ec 02/08/2014 04:50 pm Claudio Fontana

disas: Implement disassembly output for A64

Use libvixl to implement disassembly output in debug
logs for A64, for use with both AArch64 hosts and targets.

Signed-off-by: Claudio Fontana <>
[PMM: * added support for target disassembly...

c4e57af8 02/08/2014 04:50 pm Beniamino Galvani

util/fifo8: implement push/pop of multiple bytes

The patch adds functions fifo8_push_all() and fifo8_pop_buf() which
can be used respectively to push the content of a memory buffer to the
fifo and to pop multiple bytes obtaining a pointer to the fifo backing...

58892d47 02/08/2014 04:50 pm Beniamino Galvani

util/fifo8: clear fifo head upon reset

To improve the predictability of fifo8_pop_buf(), the fifo head is set
to the start of data buffer upon a reset so that the first call to the
function will be able to retrieve all data in the fifo.

Signed-off-by: Beniamino Galvani <>...

22f90bcb 02/08/2014 04:50 pm Beniamino Galvani

hw/net: add support for Allwinner EMAC Fast Ethernet controller

This patch adds support for the Fast Ethernet MAC found on Allwinner
SoCs, together with a basic emulation of Realtek RTL8201CP PHY.

Since there is no public documentation of the Allwinner controller, the...

db7dfd4c 02/08/2014 04:50 pm Beniamino Galvani

hw/arm/allwinner-a10: initialize EMAC

Signed-off-by: Beniamino Galvani <>
Reviewed-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Peter Maydell <>

69991d7d 02/08/2014 04:50 pm Sebastian Huber

arm/zynq: Add software system reset via SCLR

Support software-driven system reset via the register in the SCLR.

Signed-off-by: Sebastian Huber <>
Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Peter Maydell <>

94b6c911 02/08/2014 04:47 pm Peter Maydell

target-arm: A64: Implement 2-register misc compares, ABS, NEG

Implement the simple 2-register-misc operations we can share
with the scalar-two-register-misc code. (SUQADD, USQADD, SQABS,
SQNEG also fall into this category, but aren't implemented in
the scalar-2-register case yet either.)...

86cbc418 02/08/2014 04:47 pm Peter Maydell

target-arm: A64: Implement 2-reg-misc CNT, NOT and RBIT

Implement the 2-reg-misc CNT, NOT and RBIT instructions.

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

d980fd59 02/08/2014 04:47 pm Peter Maydell

target-arm: A64: Add narrowing 2-reg-misc instructions

Add the narrowing integer instructions in the 2-reg-misc class.

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

39d82118 02/08/2014 04:47 pm Alex Bennée

target-arm: A64: Add 2-reg-misc REV* instructions

Add the byte-reverse operations REV64, REV32 and REV16 from the
two-reg-misc group.

Signed-off-by: Alex Bennée <>
Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

f93d0138 02/08/2014 04:47 pm Peter Maydell

target-arm: A64: Add FNEG and FABS to the SIMD 2-reg-misc group

Add the SIMD FNEG and FABS instructions in the SIMD 2-reg-misc group.

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

239c20c7 02/08/2014 04:47 pm Will Newton

target-arm: Add support for AArch32 64bit VCVTB and VCVTT

Add support for the AArch32 floating-point half-precision to double-
precision conversion VCVTB and VCVTT instructions.

Signed-off-by: Will Newton <>
[PMM: fixed a minor missing-braces style issue]...

8d999995 02/08/2014 04:47 pm Christoffer Dall

arm_gic: Fix GIC pending behavior

The existing implementation of the pending behavior in gic_set_irq,
gic_complete_irq, and the distributor pending set/clear registers does
not follow the semantics of the GICv2.0 specs, but may implement the
11MPCore support. Therefore, maintain the existing semantics for...

40d22500 02/08/2014 04:47 pm Christoffer Dall

arm_gic: Keep track of SGI sources

Right now the arm gic emulation doesn't keep track of the source of an
SGI (which apparently Linux guests don't use, or they're fine with
assuming CPU 0 always).

Add the necessary matrix on the GICState structure and maintain the data...

3720a7ea 02/08/2014 04:46 pm Peter Maydell

target-arm: A64: Implement scalar pairwise ops

Implement the instructions in the scalar pairwise group (C3.6.8).

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

c0b2b5fa 02/08/2014 04:46 pm Peter Maydell

target-arm: A64: Implement remaining integer scalar-3-same insns

Implement the remaining integer instructions in the scalar-three-reg-same
group: SQADD, UQADD, SQSUB, UQSUB, SQSHL, UQSHL, SQRSHL, UQRSHL,
SQDMULH, SQRDMULH.

Signed-off-by: Peter Maydell <>...

effa8e06 02/08/2014 04:46 pm Peter Maydell

target-arm: A64: Add SIMD simple 64 bit insns from scalar 2-reg misc

Implement the simple 64 bit integer operations from the SIMD
scalar 2-register misc group (C3.6.12): the comparisons against
zero, plus ABS and NEG.

Signed-off-by: Peter Maydell <>...

45aecc6d 02/08/2014 04:46 pm Peter Maydell

target-arm: A64: Add skeleton decode for SIMD 2-reg misc group

Add a skeleton decode for the SIMD 2-reg misc group.

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

6d9571f7 02/08/2014 04:46 pm Peter Maydell

target-arm: A64: Implement SIMD 3-reg-same shift and saturate insns

Implement the SIMD 3-reg-same instructions SQADD, UQADD,
SQSUB, UQSUB, SSHL, USHL, SQSHl, UQSHL, SRSHL, URSHL,
SQRSHL, UQRSHL; these are all simple calls to existing
Neon helpers. We also enable SSHL, USHL, SRSHL and URSHL...

8b12a0cf 02/08/2014 04:46 pm Peter Maydell

target-arm: A64: Implement remaining non-pairwise int SIMD 3-reg-same insns

Implement the SIMD 3-reg-same instructions where the size == 3 case
is reserved: SHADD, UHADD, SRHADD, URHADD, SHSUB, UHSUB, SMAX,
UMAX, SMIN, UMIN, SABD, UABD, SABA, UABA, MLA, MLS, MUL, PMUL,...

0173a005 02/08/2014 04:46 pm Peter Maydell

target-arm: A64: Implement pairwise integer ops from 3-reg-same SIMD

Implement the pairwise integer operations in the 3-reg-same SIMD group:
ADDP, SMAXP, SMINP, UMAXP and UMINP.

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

c1de788a 02/08/2014 04:46 pm Peter Maydell

tcg: Add TCGV_UNUSED_PTR, TCGV_IS_UNUSED_PTR, TCGV_EQUAL_PTR

We have macros for marking TCGv values as unused, checking if they
are unused and comparing them to each other. However these only exist
for TCGv_i32 and TCGv_i64; add them for TCGv_ptr as well....

3ea3bd62 02/08/2014 03:12 pm Peter Maydell

Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20140204-1' into staging

migration/next for 20140204

  1. gpg: Signature made Tue 04 Feb 2014 15:52:00 GMT using RSA key ID 5872D723
  2. gpg: Can't check signature: public key not found
  • remotes/juanquintela/tags/migration/20140204-1:...
4db00145 02/07/2014 06:42 pm Peter Maydell

Merge remote-tracking branch 'remotes/kraxel/tags/pull-roms-1' into staging

Update seabios to 1.7.4

  1. gpg: Signature made Mon 03 Feb 2014 14:42:44 GMT using RSA key ID D3E87138
  2. gpg: Good signature from "Gerd Hoffmann (work) <>"
  3. gpg: aka "Gerd Hoffmann <>"...
91abb80b 02/07/2014 06:03 pm Peter Maydell

Merge remote-tracking branch 'remotes/stefanha/tags/qtest-for-peter' into staging

qtest resource cleanup patches

  1. gpg: Signature made Tue 04 Feb 2014 08:29:12 GMT using RSA key ID 81AB73C8
  2. gpg: Good signature from "Stefan Hajnoczi <>"...
bc1c7217 02/07/2014 01:51 am Peter Maydell

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

  • remotes/kvm/uq/master:
    target-i386: Move KVM default-vendor hack to instance_init
    target-i386: Don't change x86_def_t struct on cpu_x86_register()
    target-i386: Eliminate CONFIG_KVM #ifdefs...
26530780 02/06/2014 12:21 pm Peter Maydell

Merge remote-tracking branch 'remotes/spice/tags/pull-spice-2' into staging

misc spice patches

  1. gpg: Signature made Mon 03 Feb 2014 15:05:29 GMT using RSA key ID D3E87138
  2. gpg: Good signature from "Gerd Hoffmann (work) <>"
  3. gpg: aka "Gerd Hoffmann <>"...
31db5b36 02/05/2014 06:37 pm Peter Maydell

Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-02-02' into staging

trivial patches for 2014-02-02

  1. gpg: Signature made Sun 02 Feb 2014 16:11:37 GMT using RSA key ID 74F0C838
  2. gpg: Good signature from "Michael Tokarev <>"...
e5d3df6d 02/05/2014 06:29 pm Peter Maydell

Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging

Block pull request

  1. gpg: Signature made Fri 31 Jan 2014 21:16:43 GMT using RSA key ID 81AB73C8
  2. gpg: Good signature from "Stefan Hajnoczi <>"
  3. gpg: aka "Stefan Hajnoczi <>"...
8c5edce5 02/04/2014 08:47 pm Michael Walle

lm32_sys: dump cpu state if test case fails

This will ease debugging the test cases.

Signed-off-by: Michael Walle <>

667ff961 02/04/2014 08:47 pm Michael Walle

target-lm32: stop VM on illegal or unknown instruction

Instead of translating the instruction to a no-op, pause the VM and display
a message to the user.

As a side effect, this also works for instructions where the operands are
only known at runtime.

Signed-off-by: Michael Walle <>

f41152bd 02/04/2014 08:47 pm Michael Walle

hw/lm32: print error if cpu model is not found

QEMU crashed if a the given cpu_model is not found.

Signed-off-by: Michael Walle <>
Reviewed-by: Peter Maydell <>

9a59e6e3 02/04/2014 08:47 pm Michael Walle

lm32_sys: print test result on stderr

Do not use qemu_log().

Signed-off-by: Michael Walle <>

3dd3a2b9 02/04/2014 08:47 pm Michael Walle

target-lm32: add breakpoint/watchpoint support

This patch adds in-target breakpoint and watchpoint support.

Signed-off-by: Michael Walle <>

2b2449f7 02/04/2014 08:46 pm Peter Maydell

Merge remote-tracking branch 'remotes/borntraeger/tags/kvm-s390-20140131' into staging

This patch set contains the sclp defines and events for cpu hotplug,
the initial sclp defines (without code yet) for standby memory (some
sort of memory hotplug) as well as a cleanup of the kvm register...

02d3bf7f 02/04/2014 08:34 pm Michael Walle

lm32_uart/lm32_juart: use qemu_chr_fe_write_all()

qemu_chr_fe_write() may return EAGAIN. Therefore, use
qemu_chr_fe_write_all().

Signed-off-by: Michael Walle <>
Reviewed-by: Peter Maydell <>

2f453564 02/04/2014 08:34 pm Michael Walle

milkymist-vgafb: swap pixel data in source buffer

In commit fc97bb5ba3e7239c0b6d24095df6784868dfebbf the lduw_raw() call was
eliminated. But we are reading from the target buffer a 16-bit value, which
is in big-endian format. Therefore, use lduw_be_p() to read the value....

3604a76f 02/04/2014 08:34 pm Michael Walle

target-lm32: kill cpu_abort() calls

Instead of killing QEMU, translate instructions which are not available on
the CPU model as a noop and issue a log message at translation time.

On the real hardware CPU unknown opcodes results in undefined behaviour.
...

34f4aa83 02/04/2014 08:34 pm Michael Walle

target-lm32: move model features to LM32CPU

This allows us to completely remove CPULM32State from DisasContext.
Instead, copy the fields we need to DisasContext.

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

e67b3ca5 02/04/2014 08:34 pm Michael Walle

lm32_sys: increase test case name length limit

The new MMU tests use longer names.

Signed-off-by: Michael Walle <>

f40c49ac 02/04/2014 08:34 pm Michael Walle

tests: lm32: new rule for single test cases

Introduce new target "check_%" to run individual test caes, eg.
make check_mmu

Signed-off-by: Michael Walle <>
Reviewed-by: Peter Maydell <>

b2c623a3 02/04/2014 08:34 pm Antony Pavlov

milkymist-uart: use qemu_chr_fe_write_all() instead of qemu_chr_fe_write()

qemu_chr_fe_write() is capable of returning 0
to indicate EAGAIN (and friends) and we don't
handle this.

Just change it to qemu_chr_fe_write_all() to fix.

Reported-by: Peter Crosthwaite <>...

9396b05a 02/04/2014 06:16 pm Peter Maydell

Merge remote-tracking branch 'remotes/mcayland/qemu-openbios' into staging

  • remotes/mcayland/qemu-openbios:
    Update OpenBIOS images

Signed-off-by: Peter Maydell <>

89db9987 02/04/2014 05:50 pm Orit Wasserman

Don't abort on memory allocation error

It is better to fail migration in case of failure to
allocate new cache item

Signed-off-by: Orit Wasserman <>
Reviewed-by: Dr. David Alan Gilbert <>
Signed-off-by: Juan Quintela <>

a17b2fd3 02/04/2014 05:50 pm Orit Wasserman

Don't abort on out of memory when creating page cache

Signed-off-by: Orit Wasserman <>
Reviewed-by: Dr. David Alan Gilbert <>
Signed-off-by: Juan Quintela <>

a5615b14 02/04/2014 05:49 pm Orit Wasserman

XBZRLE cache size should not be larger than guest memory size

Signed-off-by: Orit Wasserman <>
Reviewed-by: Dr. David Alan Gilbert <>
Signed-off-by: Juan Quintela <>

c91e681a 02/04/2014 05:49 pm Orit Wasserman

Add check for cache size smaller than page size

Signed-off-by: Orit Wasserman <>
Reviewed-by: Juan Quintela <>
Signed-off-by: Juan Quintela <>

905f26f2 02/04/2014 05:49 pm Gonglei (Arei)

migration:fix free XBZRLE decoded_buf wrong

When qemu do live migration with xbzrle, qemu malloc decoded_buf
at destination end but free it at source end. It will crash qemu
by double free error in some scenarios. Splitting the XBZRLE structure
for clear logic distinguishing src/dst side....

f6c6483b 02/04/2014 05:48 pm Orit Wasserman

Set xbzrle buffers to NULL after freeing them to avoid double free errors

Signed-off-by: Orit Wasserman <>
Reviewed-by: Juan Quintela <>
Reviewed-by: Eric Blake <>
Signed-off-by: Juan Quintela <>

f9ee9f9a 02/04/2014 05:45 pm Alexey Kardashevskiy

exec: fix ram_list dirty map optimization

The ae2810c4bb3b383176e8e1b33931b16c01483aab patch introduced
optimization for ram_list.dirty_memory update. However it can only
work correctly if hpratio is 1 as the @bitmap parameter stores 1 bits
per system page size (may vary, 4K or 64K on PPC64) and...

20bcf73f 02/04/2014 04:51 pm Peter Maydell

vmstate: Make VMSTATE_STRUCT_POINTER take type, not ptr-to-type

The VMSTATE_STRUCT_POINTER macros are a bit odd in that they
must be passed an argument "FooType *" rather than just taking
the FooType. They're only used in one place, so it's easy to
tidy this up. This also lets us use the macro to replace the...

234cc647 02/03/2014 06:33 pm Paolo Bonzini

KVM: fix coexistence of KVM and Hyper-V leaves

kvm_arch_init_vcpu's initialization of the KVM leaves at 0x40000100
is broken, because KVM_CPUID_FEATURES is left at 0x40000001. Move
it to 0x40000101 if Hyper-V is enabled.

Signed-off-by: Paolo Bonzini <>

7bc3d711 02/03/2014 06:33 pm Paolo Bonzini

kvm: make availability of Hyper-V enlightenments dependent on KVM_CAP_HYPERV

The MS docs specify HV_X64_MSR_HYPERCALL as a mandatory interface,
thus we must provide the MSRs even if the user only specified
features that, like relaxed timing, in principle don't require them....

1c90ef26 02/03/2014 06:33 pm Vadim Rozenfeld

kvm: make hyperv hypercall and guest os id MSRs migratable.

Signed-off-by: Vadim Rozenfeld <>
Signed-off-by: Paolo Bonzini <>

5ef68987 02/03/2014 06:33 pm Vadim Rozenfeld

kvm: make hyperv vapic assist page migratable

Signed-off-by: Vadim Rozenfeld <>
Signed-off-by: Paolo Bonzini <>

48a5f3bc 02/03/2014 06:33 pm Vadim Rozenfeld

kvm: add support for hyper-v timers

http://msdn.microsoft.com/en-us/library/windows/hardware/ff541625%28v=vs.85%29.aspx

This code is generic for activating reference time counter or virtual reference time stamp counter

Signed-off-by: Vadim Rozenfeld <>...

c1f41226 02/03/2014 06:33 pm Eduardo Habkost

target-i386: Eliminate CONFIG_KVM #ifdefs

The compiler is already able to eliminate the kvm_arch_get_supported_cpuid()
calls in kvm_cpu_fill_host() and filter_features_for_kvm(), so we can
eliminate the CONFIG_KVM #ifdefs there.

Also, kvm_cpu_fill_host() and host_cpuid() don't need to check...

82beb536 02/03/2014 06:33 pm Eduardo Habkost

target-i386: Don't change x86_def_t struct on cpu_x86_register()

As eventually the x86_def_t data is going to be provided by the CPU
class, it's better to not touch it, and handle the special cases on the
X86CPU object itself.

Current behavior of the code should stay exactly the same....

7c08db30 02/03/2014 06:33 pm Eduardo Habkost

target-i386: Move KVM default-vendor hack to instance_init

As we will not have a cpu_x86_find_by_name() function anymore,
move the KVM default-vendor hack to instance_init.

Unfortunately we can't move that code to class_init because it depends
on KVM being initialized....

81e20770 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_cpu_fill_host(): Kill unused code

Those host_cpuid() calls are useless. They are leftovers from when the
old code using host_cpuid() was removed.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Paolo Bonzini <>

7171a393 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_cpu_fill_host(): No need to check level

There's no need to check level (CPUID0.EAX) before calling
kvm_arch_get_supported_cpuid(s, 0x7, 0, R_EBX), because:

  • The kernel won't return any entry for CPUID 7 if CPUID0.EAX is < 7
    on the host (See kvm_dev_ioctl_get_cpuid() on the kernel code);...
b73dcfb1 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_cpu_fill_host(): No need to check CPU vendor

There's no need to check CPU vendor before calling
kvm_arch_get_supported_cpuid(s, 0xC0000000, 0, R_EAX), because:

  • The kernel won't return any entry for 0xC0000000 if host CPU vendor
    is not Centaur (See kvm_dev_ioctl_get_cpuid() on the kernel code);...
803a9327 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_cpu_fill_host(): No need to check xlevel2

There's no need to check CPU xlevel2 before calling
kvm_arch_get_supported_cpuid(s, 0xC0000001, 0, R_EDX), because:

  • The kernel won't return any entry for 0xC0000000 if host CPU vendor
    is not Centaur (See kvm_dev_ioctl_get_supported_cpuid() on the kernel...
2a573259 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_cpu_fill_host(): Set all feature words at end of function

Reorder the code so all the code that sets x86_cpu_def->features is at
the end of the function.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Paolo Bonzini <>

2bc65d2b 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_cpu_fill_host(): Fill feature words in a loop

Now that the kvm_cpu_fill_host() code is simplified, we can simply set
the feature word array using a simple loop.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Paolo Bonzini <>

f0b9b111 02/03/2014 06:33 pm Eduardo Habkost

target-i386: kvm_check_features_against_host(): Kill feature word array

We don't need the ft[] array on kvm_check_features_against_host()
anymore, as we can simply use the feature_word_info[] array, that has
everything we need.

Signed-off-by: Eduardo Habkost <>...

977c7b6d 02/03/2014 06:33 pm Radim Krčmář

kvm: print suberror on all internal errors

KVM introduced internal error exit reason and suberror at the same time,
and later extended it with internal error data.
QEMU does not report suberror on hosts between these two events because
we check for the extension. (half a year in 2009, but it is misleading)...

1ad3c6ab 02/03/2014 05:06 pm Stefan Hajnoczi

qtest: unlink QEMU pid file after startup

After starting the QEMU process and initializing the QMP connection, we
can read the pid file and unlink it.

Just stash away the pid instead of the pid filename. This way we can
avoid pid file leaks since running tests may abort(3) without cleanup....

56db2e58 02/03/2014 05:06 pm Stefan Hajnoczi

qtest: unlink UNIX domain sockets after connecting

UNIX domain sockets are leaked when tests call abort(3) (indirectly via
glib assert functions).

Unlink the files immediately after the connection has been established
to avoid leaks.

Signed-off-by: Stefan Hajnoczi <>

41419b0f 02/03/2014 04:40 pm Gerd Hoffmann

Update seabios binaries to 1.7.4

Signed-off-by: Gerd Hoffmann <>

50df8d5d 02/03/2014 04:37 pm Bruce Rogers

roms: remove explicit MAKEFLAGS from recursive make invocations

When using $(MAKE) within a makefile, we shouldn't be explicitly
including $(MAKEFLAGS) on the command-line. It causes problems
when that makefile is recursively invoked. When the roms/Makefile...

cd4eb4c5 02/03/2014 04:37 pm Gerd Hoffmann

Update seabios submodule to 1.7.4

Not that many changes as we already have a git snapshot pretty close
to final 1.7.4 in the tree. Most notably change is the vgabios change
which fixes the windows guest regression.

Full git shortlog:

Gerd Hoffmann (2):...

ce603d8e 02/03/2014 04:04 pm Edgar E. Iglesias

cris: Remove the CRIS PIC glue

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

8cfc114a 02/03/2014 04:04 pm Stefan Weil

linux-user: Fix trampoline code for CRIS

__put_user can write bytes, words (2 bytes) or longwords (4 bytes).
Here obviously words should have been written, but bytes were written,
so values like 0x9c5f were truncated to 0x5f.

Fix this by changing retcode from uint8_t to to uint16_t in...

4a6da670 02/03/2014 04:03 pm Edgar E. Iglesias

axis-dev88: Connect the PIC upstream IRQs directly to the CPU

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