Statistics
| Branch: | Revision:

root @ 26ca8c06

# Date Author Comment
992aeb8e 01/12/2013 07:42 pm Paolo Bonzini

libcacard: rewrite Makefile in non-recursive style

Signed-off-by: Paolo Bonzini <>

26ca8c06 01/12/2013 07:42 pm Paolo Bonzini

libcacard: link vscclient to dynamic library

There is no reason for vscclient to duplicate the code. rules.mak
takes care of invoking libtool to do the link.

Signed-off-by: Paolo Bonzini <>

af0c8e9f 01/12/2013 06:19 pm Paolo Bonzini

libcacard: use per-target variable definitions

This lets the libcacard Makefile use more rules.mak magic.

Signed-off-by: Paolo Bonzini <>

5018f1cc 01/12/2013 06:19 pm Paolo Bonzini

libcacard: add list of exported symbols

Do not export internal QEMU symbols.

Signed-off-by: Paolo Bonzini <>

afd347ab 01/12/2013 06:19 pm Paolo Bonzini

build: remove CONFIG_SMARTCARD

The passthru smartcard does not have the shared library dependency, build
it unconditionally.

Signed-off-by: Paolo Bonzini <>

e832341b 01/12/2013 06:19 pm Alon Levy

libcacard: fix missing symbol in libcacard.so

Before patch:
$ make libcacard.la
$ nm ./libcacard/.libs/libcacard.so.0.0.0 | grep " U " | \
egrep -v "(g_)|(GLIBC)|(SECMOD)|(PK11)|(CERT)|(NSS)|(PORT)|(PR)"
U error_set

Signed-off-by: Alon Levy <>...

b6fc675b 01/12/2013 06:19 pm Paolo Bonzini

libcacard: require libtool to build it

Do not fail at build time, instead just disable the library if libtool
is not present.

Signed-off-by: Paolo Bonzini <>

591eca67 01/12/2013 06:19 pm Paolo Bonzini

libcacard: prepare to use -y trick in the Makefile

Rename variables to follow the conventions of the rest of the build
systems.

Signed-off-by: Paolo Bonzini <>

21655882 01/12/2013 06:19 pm Paolo Bonzini

build: support linking with libtool objects/libraries

This patch moves the complication of using libtool to the generic
rules.mak file.

Signed-off-by: Paolo Bonzini <>

2c13ec50 01/12/2013 06:19 pm Paolo Bonzini

build: move dtrace rules to rules.mak

Signed-off-by: Paolo Bonzini <>

5708fc66 01/12/2013 06:19 pm Paolo Bonzini

stubs: fully replace qemu-tool.c and qemu-user.c

Signed-off-by: Paolo Bonzini <>

f141ccfa 01/12/2013 06:19 pm Paolo Bonzini

build: make libtool verbose when making with V=1

Signed-off-by: Paolo Bonzini <>

4d454574 01/12/2013 06:17 pm Paolo Bonzini

qemu-option: move standard option definitions out of qemu-config.c

Signed-off-by: Paolo Bonzini <>

63fb2590 01/12/2013 02:47 pm Blue Swirl

Merge branch 'target-arm.next' of git://git.linaro.org/people/pmaydell/qemu-arm

  • 'target-arm.next' of git://git.linaro.org/people/pmaydell/qemu-arm:
    target-arm: Fix SWI (SVC) instruction in M profile.
    target-arm: use type_register() instead of type_register_static()
02e079c7 01/12/2013 02:47 pm Blue Swirl

Merge branch 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf

  • 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf: (31 commits)
    PPC: linux-user: Calculate context pointer explicitly
    target-ppc: Error out for -cpu host on unknown PVR
    target-ppc: Slim conversion of model definitions to QOM subclasses...
837d1f97 01/12/2013 02:46 pm Blue Swirl

Merge branch 's390-reorg' of git://repo.or.cz/qemu/rth

  • 's390-reorg' of git://repo.or.cz/qemu/rth: (149 commits)
    target-s390: Claim maintainership
    target-s390: Use noreturn for exception and load_psw
    target-s390: Use TCG_CALL_NO_WG for misc helpers...
a6fc23e5 01/12/2013 02:46 pm Julien Grall

hw/pc.c: add ULL suffix in ioport80_read and ioportF0_read return value

The commit c02e1eac887b1b0aee7361b1fcf889e7d47fed9d broke the compilation
for i386. ULL need to be specify for uint64_t value.

Signed-off-by: Julien Grall <>
Signed-off-by: Blue Swirl <>

163fa4b0 01/12/2013 02:45 pm Paolo Bonzini

tcg-i386: use LEA for 3-operand 64-bit addition

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

092bb306 01/12/2013 02:42 pm Gerd Hoffmann

pixman: fix warning

Cc:
Cc:
Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Blue Swirl <>

cc6e3ca9 01/12/2013 02:42 pm Gerd Hoffmann

gcc: rename CONFIG_PRAGMA_DISABLE_UNUSED_BUT_SET to CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Blue Swirl <>

3dd46c78 01/12/2013 02:40 pm Blue Swirl

optionrom: build with discrete CPP and AS steps

Build option ROM .S files with separate preprocessor and
assembler steps because the C compiler could be unsuitable.

Signed-off-by: Blue Swirl <>

b6d9439c 01/12/2013 02:26 pm Blue Swirl

slirp: remove unused field tt

Signed-off-by: Blue Swirl <>

338d80dd 01/12/2013 02:25 pm Richard Henderson

user: Consider symbolic links as possible directories

Commit 2296f194dfde4c0a54f249d3fdb8c8ca21dc611b reduced the number
of syscalls performed during user emulation startup, but failed to
consider the use of symbolic links in creating directory structures....

d2565875 01/12/2013 02:25 pm Richard Henderson

alpha-linux-user: Fix sigaction

Unconditional bswap replaced by _get_user/_put_user.

Signed-off-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

658f2dc9 01/12/2013 02:24 pm Richard Henderson

linux-user: Rewrite _get_user/_put_user with __builtin_choose_expr

The previous formuation with multiple assignments to __typeof(*hptr) falls
down when hptr is qualified const. E.g. with const struct S *p, p->f is
also qualified const.

With this formulation, there's no assignment to any local variable....

c732a52d 01/12/2013 02:24 pm Richard Henderson

bswap: Rewrite cpu_to_<endian><type>u with {ld,st}<type>_<endian>_p

We've now optimized the ld/st versions; reuse that for the "legacy"
versions. Always use inlines so that we get the type checking that
we expect.

Signed-off-by: Richard Henderson <>...

612d590e 01/12/2013 02:24 pm Richard Henderson

bswap: Rewrite all ld<type>_<endian>_p functions

Use the new host endian unaligned access functions instead of
open coding byte-by-byte references. Remove assembly special
cases for i386 and ppc -- we've now exposed the operation to
the compiler sufficiently for these to be optimized automatically....

7db2145a 01/12/2013 02:24 pm Richard Henderson

bswap: Add host endian unaligned access functions

Signed-off-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

cdfe2851 01/12/2013 02:23 pm Richard Henderson

bswap: Tidy base definitions of bswapN

Move the bswap_N -> bswapN wrappers inside CONFIG_BYTESWAP_H.

Change the ultimate fallback defintions from macros to inline functions.
The proper types recieved by the function arguments means we can remove
unnecessary casts, making the code more readable....

fedb88bd 01/12/2013 02:22 pm Richard Henderson

fdt: Use bswapN instead of bswap_N

Fixes the libfdt enabled build for hosts that have <machine/bswap.h>.

The code at the beginning of qemu/bswap.h is attempting to standardize
on bswapN. In the case of CONFIG_MACHINE_BSWAP_H, this is all we get.
In the case of CONFIG_BYTESWAP_H, we get bswap_N from the system header...

918fd083 01/11/2013 05:21 pm Eduardo Habkost

target-arm: use type_register() instead of type_register_static()

The type_register_static() interface is documented as:

type_register_static:
@info: The #TypeInfo of the new type.
@info and all of the strings it points to should exist for the life...
314e2296 01/11/2013 05:21 pm Alex_Rozenman@mentor.com

target-arm: Fix SWI (SVC) instruction in M profile.

When do_interrupt_v7m is called with EXCP_SWI, the PC already
points to the next instruction. Don't modify it here.

Signed-off-by: Alex Rozenman <>
Signed-off-by: Peter Maydell <>

fedf2de3 01/11/2013 04:43 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

  • stefanha/trivial-patches:
    hw/pc.c: Fix converting of ioport_register* to MemoryRegion
    Replace remaining gmtime, localtime by gmtime_r, localtime_r
    savevm: Remove MinGW specific code which is no longer needed...
e2848a78 01/11/2013 04:43 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/q35.1' into staging

  • kraxel/q35.1:
    Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too
    pc: rename machine types
    q35: document chipset devices
    q35: add ich9 intel hda controller

Conflicts:...

80ec2432 01/11/2013 04:23 pm Anthony Liguori

Merge remote-tracking branch 'afaerber-or/prep-up' into staging

  • afaerber-or/prep-up:
    prep: Use pc87312 device instead of collection of random ISA devices
    prep: Add pc87312 Super I/O emulation
    prep: Include devices for ppc64 as well

Signed-off-by: Anthony Liguori <>

c02e1eac 01/11/2013 10:49 am Julien Grall

hw/pc.c: Fix converting of ioport_register* to MemoryRegion

The commit 258711 introduced MemoryRegion to replace ioport_region*
for ioport 80h and F0h.
A MemoryRegion needs to have both read and write callback otherwise a segfault
will occur when an access is made....

eb7ff6fb 01/11/2013 10:44 am Stefan Weil

Replace remaining gmtime, localtime by gmtime_r, localtime_r

This allows removing of MinGW specific code and improves
reentrancy for POSIX hosts.

[Removed unused ret variable in qemu_get_timedate() to fix warning:
vl.c: In function ‘qemu_get_timedate’:
vl.c:451:16: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]...

68b891ec 01/11/2013 10:35 am Stefan Weil

savevm: Remove MinGW specific code which is no longer needed

QEMU provides a portable function qemu_gettimeofday instead of
gettimeofday and also an implementation of localtime_r for MinGW.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

1d57db19 01/11/2013 10:33 am Peter Maydell

qga/channel-posix.c: Explicitly include string.h

Explicitly include string.h to avoid warnings under MacOS X/clang
about implicit declarations of strerror() and strlen().

Signed-off-by: Peter Maydell <>
Reviewed-by: Stefan Weil <>...

75f13596 01/11/2013 10:32 am Stefan Weil

configure: Fix comment (copy+paste bug)

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

8b07eaa1 01/11/2013 09:30 am Gerd Hoffmann

q35: add ich9 intel hda controller

Signed-off-by: Gerd Hoffmann <>

7d9f7b51 01/11/2013 09:30 am Gerd Hoffmann

q35: document chipset devices

Signed-off-by: Gerd Hoffmann <>

94dec594 01/11/2013 09:30 am Gerd Hoffmann

pc: rename machine types

Starting with release 1.4 we have a fully functional q35 machine type,
i.e. "qemu -M q35" JustWorks[tm]. Update machine type names to reflect
that:

  • pc-1.4 becomes pc-i440fx-1.4
  • q35-next becomes pc-q35-1.4

The pc-1.3 (+older) names are maintained for compatibility reasons....

7e973bb2 01/11/2013 09:30 am Laszlo Ersek

Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too

The WARNING message from commit f7e4dd6c made me notice.

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Gerd Hoffmann <>

d0508c36 01/10/2013 11:22 pm Paolo Bonzini

qdev: add qbus_reset_all

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

47a150a4 01/10/2013 11:22 pm Paolo Bonzini

virtio-scsi: abort in-flight I/O when the device is reset

When the device is reset, the SCSI bus should also be reset so
that in-flight I/O is cancelled.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

8c43a6f0 01/10/2013 11:11 pm Andreas Färber

Make all static TypeInfos const

Since 39bffca2030950ef6efe57c2fac8327a45ae1015 (qdev: register all
types natively through QEMU Object Model), TypeInfo as used in
the common, non-iterative pattern is no longer amended with information
and should therefore be const....

63e3555e 01/10/2013 10:52 pm Andreas Färber

Merge branch 'master' of git://git.qemu.org/qemu into prep-up

Conflicts:
hw/Makefile.objs
hw/ppc_prep.c

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

a6308bc2 01/10/2013 09:26 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/build.1' into staging

  • kraxel/build.1:
    m48t59-test: don't touch watchdog
    rtc-test: skip year-2038 overflow check in case time_t is 32bit only

Signed-off-by: Anthony Liguori <>

8757c09f 01/10/2013 09:26 pm Anthony Liguori

Merge remote-tracking branch 'awilliam/tags/qemu-1.4-vfio-20130109.0' into staging

vfio-pci: Fixes for qemu 1.4 & stable

  • awilliam/tags/qemu-1.4-vfio-20130109.0:
    vfio-pci: Loosen sanity checks to allow future features
    vfio-pci: Make host MSI-X enable track guest...
4e45deed 01/10/2013 04:23 pm Gerd Hoffmann

rtc-test: skip year-2038 overflow check in case time_t is 32bit only

Signed-off-by: Gerd Hoffmann <>

067f0691 01/10/2013 04:23 pm Gerd Hoffmann

m48t59-test: don't touch watchdog

Signed-off-by: Gerd Hoffmann <>

5e3bc735 01/09/2013 07:03 pm Fabien Chouteau

Check return values from g_poll and select

The current implementation of os_host_main_loop_wait() on Windows,
returns 1 only when a g_poll() event occurs because the return value of
select() is overridden. This is wrong as we may skip a socket event, as
shown in this example:...

7cd5da7e 01/09/2013 05:55 pm Anthony Liguori

Merge remote-tracking branch 'mdroth/qga-pull-1-8-2013' into staging

  • mdroth/qga-pull-1-8-2013:
    qemu-ga: sample fsfreeze hooks
    qemu-ga: execute hook to quiesce the guest on fsfreeze-freeze/thaw
    qemu-ga: guest_suspend(): improve error reporting
    qemu-ga: bios_supports_mode(): improve error reporting...
6b26e837 01/09/2013 12:38 am Luiz Capitulino

qemu-ga: bios_supports_mode(): improve error reporting

Most errors are QERR_UNDEFINED_ERROR today.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Michael Roth <>
Signed-off-by: Michael Roth <>

7b376087 01/09/2013 12:38 am Luiz Capitulino

qemu-ga: guest_suspend(): improve error reporting

Most errors are QERR_UNDEFINED_ERROR today.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Michael Roth <>
Signed-off-by: Michael Roth <>

ec0f694c 01/09/2013 12:38 am Tomoki Sekiyama

qemu-ga: execute hook to quiesce the guest on fsfreeze-freeze/thaw

To use the online disk snapshot for online-backup, application-level
consistency of the snapshot image is required. However, currently the
guest agent can provide only filesystem-level consistency, and the...

96610da2 01/09/2013 12:38 am Tomoki Sekiyama

qemu-ga: sample fsfreeze hooks

Adds sample hook scripts for --fsfreeze-hook option of qemu-ga.
- fsfreeze-hook : execute scripts in fsfreeze-hook.d/
- fsfreeze-hook.d/mysql-flush.sh.sample : quiesce MySQL before snapshot

Signed-off-by: Tomoki Sekiyama <>...

db3edb66 01/09/2013 12:38 am Luiz Capitulino

qemu-ga: qmp_guest_file_*: improve error reporting

Use error_setg_errno() when possible with an improved error description.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Michael Roth <>

d220a6df 01/09/2013 12:38 am Luiz Capitulino

qemu-ga: qmp_guest_shutdown(): improve error reporting

Most errors are QERR_UNDEFINED_ERROR. Also, adds ga_wait_child() as
a future commit will use it too.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Michael Roth <>...

261551d1 01/09/2013 12:38 am Luiz Capitulino

qemu-ga: build_fs_mount_list(): take an Error argument

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Michael Roth <>

617fbbc1 01/09/2013 12:38 am Luiz Capitulino

qemu-ga: qmp_guest_fsfreeze_*(): get rid of sprintf() + error_set()

Convert them to error_setg_errno().

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Michael Roth <>
Signed-off-by: Michael Roth <>

071673b0 01/09/2013 12:38 am Luiz Capitulino

qemu-ga: qmp_guest_fstrim(): get rid of sprintf() + error_set()

Convert them to error_setg_errno().

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Michael Roth <>
Signed-off-by: Michael Roth <>

878a0ae0 01/09/2013 12:38 am Luiz Capitulino

qemu-ga: qmp_guest_network_get_interfaces(): get rid of snprintf() + error_set()

Convert them to error_setg_errno().

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Michael Roth <>
Signed-off-by: Michael Roth <>

a9de6d01 01/09/2013 12:38 am Luiz Capitulino

qemu-ga: guest_file_handle_find(): take an Error argument

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Michael Roth <>

*Fixed missing space character in error message

Signed-off-by: Michael Roth <>

3ac4b7c5 01/09/2013 12:38 am Luiz Capitulino

qemu-ga: qmp_guest_file_close(): fix fclose() error check

fclose() returns EOF on error.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Michael Roth <>
Signed-off-by: Michael Roth <>

4b274b16 01/08/2013 11:15 pm Anthony Liguori

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

  • afaerber/qom-cpu:
    target-i386: Explicitly set vendor for each built-in cpudef
    target-i386: Sanitize AMD's ext2_features at realize time
    target-i386: Filter out unsupported features at realize time...
8fc94e5a 01/08/2013 11:10 pm Alex Williamson

vfio-pci: Loosen sanity checks to allow future features

VFIO_PCI_NUM_REGIONS and VFIO_PCI_NUM_IRQS should never have been
used in this manner as it locks a specific kernel implementation.
Future features may introduce new regions or interrupt entries
(VGA may add legacy ranges, AER might add an IRQ for error...

b0223e29 01/08/2013 11:09 pm Alex Williamson

vfio-pci: Make host MSI-X enable track guest

Guests typically enable MSI-X with all of the vectors in the MSI-X
vector table masked. Only when the vector is enabled does the vector
get unmasked, resulting in a vector_use callback. These two points,
enable and unmask, correspond to pci_enable_msix() and request_irq()...

961f8395 01/08/2013 10:03 pm Eduardo Habkost

cpu: Change parent type to Device

This finally makes the CPU class a subclass of the Device class,
allowing us to start using DeviceState properties on CPU subclasses.

It has no_user=1, as creating CPUs using -device doesn't work yet.

Signed-off-by: Igor Mammedov <>...

fcb93c03 01/08/2013 10:03 pm Eduardo Habkost

target-i386: kvm: -cpu host: Use GET_SUPPORTED_CPUID for SVM features

The existing -cpu host code simply sets every bit inside svm_features
(initializing it to -1), and that makes it impossible to make the
enforce/check options work properly when the user asks for SVM features...

bd004bef 01/08/2013 10:03 pm Eduardo Habkost

target-i386: kvm: Enable all supported KVM features for -cpu host

When using -cpu host, we don't need to use the kvm_default_features
variable, as the user is explicitly asking QEMU to enable all feature
supported by the host.

This changes the kvm_cpu_fill_host() code to use GET_SUPPORTED_CPUID to...

8b4beddc 01/08/2013 10:03 pm Eduardo Habkost

target-i386: check/enforce: Fix CPUID leaf numbers on error messages

The -cpu check/enforce warnings are printing incorrect information about the
missing flags. There are no feature flags on CPUID leaves 0 and 0x80000000, but
there were references to 0 and 0x80000000 in the table at...

54830ff8 01/08/2013 10:03 pm Eduardo Habkost

target-i386: check/enforce: Do not ignore "hypervisor" flag

We don't need any hack to ignore CPUID_EXT_HYPERVISOR anymore, because
kvm_arch_get_supported_cpuid() now sets CPUID_EXT_HYPERVISOR properly.
So, this shouldn't introduce any behavior change, but it makes the code...

22714625 01/08/2013 10:03 pm Eduardo Habkost

target-i386: check/enforce: Check all CPUID.80000001H.EDX bits

I have no idea why PPRO_FEATURES was being ignored on the check of the
CPUID.80000001H.EDX bits. I believe it was a mistake, and it was
supposed to be ~(PPRO_FEATURES & CPUID_EXT2_AMD_ALIASES) or just...

396d2cfc 01/08/2013 10:03 pm Eduardo Habkost

target-i386: check/enforce: Check SVM flag support as well

When nested SVM is supported, the kernel returns the SVM flag on
GET_SUPPORTED_CPUID1, so we can check the SVM flag safely in
kvm_check_features_against_host().

I don't know why the original code ignored the SVM flag. Maybe it was...

e8beac00 01/08/2013 10:03 pm Eduardo Habkost

target-i386: check/enforce: Eliminate check_feat field

Now that all entries have check_feat=~0 in
kvm_check_features_against_host(), we can eliminate check_feat entirely
and make the code check all bits.

This patch shouldn't introduce any behavior change, as check_feat is set...

75a192aa 01/08/2013 10:03 pm Andreas Färber

qemu-common.h: Make qemu_init_vcpu() stub static inline

Turn the *-user macro into a no-op inline function to avoid
unused-variable warnings and band-aiding #ifdef'ery.

This allows to drop an #ifdef for alpha and avoids more for unicore32
and other upcoming trivial realizefn implementations....

4586f157 01/08/2013 10:03 pm Igor Mammedov

target-i386: Filter out unsupported features at realize time

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

9b15cd9e 01/08/2013 10:03 pm Igor Mammedov

target-i386: Sanitize AMD's ext2_features at realize time

When CPU properties are implemented, ext2_features may change
between object_new(CPU) and cpu_realize_fn(). Sanitizing
ext2_features for AMD based CPU at realize() time will keep
current behavior after CPU features are converted to properties....

ebe8b9c6 01/08/2013 10:03 pm Igor Mammedov

target-i386: Explicitly set vendor for each built-in cpudef

Since cpudef config is not supported anymore and all remaining sources
now always set x86_def_t.vendor123 fields, remove setting default
vendor to simplify future re-factoring.

Signed-off-by: Igor Mammedov <>...

41c6bcd9 01/08/2013 10:03 pm Eduardo Habkost

libqemustub: Add qemu_[un]register_reset() stubs

This will be useful for code that don't call qemu_devices_reset() (e.g.
*-user). If qemu_devices_reset() is never called, it means we don't need
to keep track of the reset handler list.

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

083a5f87 01/08/2013 10:03 pm Eduardo Habkost

libqemustub: vmstate register/unregister stubs

Add vmstate stub functions, so that qdev.o can be used without savevm.o
when vmstate support is not necessary (i.e. by *-user).

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

906709a1 01/08/2013 10:03 pm Eduardo Habkost

libqemustub: sysbus_get_default() stub

The stub will be used on cases where sysbus.c is not compiled in (e.g.
*-user).

Note that code that uses NULL as the bus with qdev{_try,}_create()
implicitly uses sysbus_get_default() as the bus, and will still require...

507066f8 01/08/2013 10:03 pm Eduardo Habkost

qdev: Include qdev code into *-user, too

The code depends on some functions from qemu-option.o, so add
qemu-option.o to universal-obj-y to make sure it's included.

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

5d5b24d0 01/08/2013 10:03 pm Andreas Färber

qdev: Don't assume existence of parent bus on unparenting

Commit 667d22d1ae59da46b4c1fbd094ca61145f19b8c3 (qdev: move bus removal
to object_unparent) made the assumption that at unparenting time
parent_bus is not NULL. This assumption is unjustified since...

560c30b1 01/08/2013 06:36 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.75' into staging

  • kraxel/usb.75: (32 commits)
    uhci: stop using portio lists
    usbredir: Add support for buffered bulk input (v2)
    exynos4210: Add EHCI support
    usb/ehci: Add SysBus EHCI device for Exynos4210
    usb/ehci: Move capsbase and opregbase into SysBus EHCI class...
c3dd94b1 01/08/2013 06:36 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/net' into staging

  • stefanha/net:
    rtl8139: preserve link state across device reset
    e1000: no need auto-negotiation if link was down
    net: clean up network at qemu process termination
    e1000: Discard oversized packets based on SBP|LPE...
da1a4cef 01/08/2013 12:58 pm Petar Jovanovic

target-mips: Fix helper and tests for dot/cross-dot product instructions

Helper function for dpa_w_ph, dpax_w_ph, dps_w_ph and dpsx_w_ph incorrectly
defines halfword vector elements as unsigned values. This results in wrong
output which is not triggered in the tests as they also follow this logic....

e320d05a 01/08/2013 12:55 pm Stefan Weil

target-mips: Replace macros by inline functions

The macros RESTORE_ROUNDING_MODE and RESTORE_FLUSH_MODE silently used
variable env from their callers. Using inline functions with env passed
as a function argument is more transparent.

This modification was proposed by Peter Maydell....

e1a4019c 01/08/2013 12:49 pm Eric Johnson

target-mips: Allow DSP access to be disabled once enabled.

Clear the DSP hflags at the start of compute_hflags. Otherwise access
is not properly disabled once enabled.

Signed-off-by: Eric Johnson <>
Signed-off-by: Aurelien Jarno <>

314992b1 01/08/2013 12:48 pm Alexander Graf

linux-user: fix mips 32-on-64 prealloc case

MIPS only supports 31 bits of virtual address space for user space, so let's
make sure we stay within that limit with our preallocated memory block.

This fixes the MIPS user space targets when executed without command line...

b2d1fe67 01/08/2013 11:56 am Hans de Goede

usbredir: Add support for buffered bulk input (v2)

Buffered bulk mode is intended for bulk input endpoints, where the data is
of a streaming nature (not part of a command-response protocol). These
endpoints' input buffer may overflow if data is not read quickly enough....

89eb147c 01/08/2013 11:56 am Gerd Hoffmann

uhci: stop using portio lists

Signed-off-by: Gerd Hoffmann <>

7682e858 01/08/2013 11:00 am Nickolai Zeldovich

readline: avoid memcpy() of overlapping regions

memcpy() for overlapping regions is undefined behavior; use memmove()
instead in readline_hist_add().

[Keep tab characters since surrounding code still uses them -- Stefan]

Signed-off-by: Nickolai Zeldovich <>...

1a61a9ae 01/07/2013 06:37 pm Stuart Yoder

PPC: KVM: set has-idle in guest device tree

On e500mc, the platform doesn't provide a way for the CPU to go idle.

To still not uselessly burn CPU time, expose an idle hypercall to the guest
if kvm supports it.

Signed-off-by: Stuart Yoder <>...

68c2dd70 01/07/2013 06:37 pm Alexander Graf

PPC: Bring EPR support closer to reality

We already used to support the external proxy facility of FSL MPICs,
but only implemented it halfway correctly.

This patch adds support for

  • dynamic enablement of the EPR facility
  • interrupt acknowledgement only when the interrupt is delivered...
2985b86b 01/07/2013 06:37 pm Andreas Färber

target-ppc: Slim conversion of model definitions to QOM subclasses

Since the model list is highly macrofied, keep ppc_def_t for now and
save a pointer to it in PowerPCCPUClass. This results in a flat list of
subclasses including aliases, to be refined later....

1b7ce68f 01/07/2013 06:37 pm Andreas Färber

target-ppc: Error out for -cpu host on unknown PVR

Previously we silently exited, with subclasses we got an opcode warning.
Instead, explicitly tell the user what's wrong.

An indication for this is -cpu ? showing "host" with an all-zero PVR.

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

61993a67 01/07/2013 06:37 pm Samuel Seay

PPC: linux-user: Calculate context pointer explicitly

Peter Maydell recommended the change to be more proper. The result was tested
and shows coming up with the same proper value.

Signed-off-by: Samuel Seay <>
[agraf: change subject]...