sdk/emulator/qemu.git
15 years agoESP: Implement select without ATN, fix comments
Blue Swirl [Sat, 22 Aug 2009 13:54:31 +0000 (13:54 +0000)]
ESP: Implement select without ATN, fix comments

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agosparc32 remove an unnecessary cpu irq set
Blue Swirl [Sat, 22 Aug 2009 11:54:03 +0000 (11:54 +0000)]
sparc32 remove an unnecessary cpu irq set

Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoSparc32/64: fix jmpl followed by branch
Blue Swirl [Sat, 22 Aug 2009 11:46:10 +0000 (11:46 +0000)]
Sparc32/64: fix jmpl followed by branch

Fix a case where 'jmpl' instruction followed by a branch instruction was
handled incorrectly.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoRemove unneded ac97 indirection accessing its state
Juan Quintela [Fri, 21 Aug 2009 11:56:09 +0000 (13:56 +0200)]
Remove unneded ac97 indirection accessing its state

Searching for "inspiration" to convert another device to qdev, I got
ac97.  Once I understood a bit of qdev, found that ac97 used a not needed
indirection.  To protect the unaware, just fixed it.

Later, Juan.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: malc <av1474@comtv.ru>
15 years agoSparc32/64: Fix user emulator breakage
Blue Swirl [Tue, 18 Aug 2009 18:04:38 +0000 (18:04 +0000)]
Sparc32/64: Fix user emulator breakage

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoFix breakage of alpha, mips64, ppc64 and x86_64 targets on non-amd64 host
Blue Swirl [Tue, 18 Aug 2009 17:01:07 +0000 (17:01 +0000)]
Fix breakage of alpha, mips64, ppc64 and x86_64 targets on non-amd64 host

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoReplace REGX with PRIx64
Blue Swirl [Sun, 16 Aug 2009 11:54:37 +0000 (11:54 +0000)]
Replace REGX with PRIx64

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoReplace local ADDRX/PADDRX macros with TARGET_FMT_lx/plx
Blue Swirl [Sun, 16 Aug 2009 11:13:18 +0000 (11:13 +0000)]
Replace local ADDRX/PADDRX macros with TARGET_FMT_lx/plx

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoReplace always_inline with inline
Blue Swirl [Sun, 16 Aug 2009 09:06:54 +0000 (09:06 +0000)]
Replace always_inline with inline

We define inline as always_inline.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agouser: compile host-utils.c only once
Blue Swirl [Sun, 16 Aug 2009 08:03:26 +0000 (08:03 +0000)]
user: compile host-utils.c only once

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoSimplify 5ba6531956b9b6486560cbd13604c2238a3542dd
Blue Swirl [Sun, 16 Aug 2009 07:39:33 +0000 (07:39 +0000)]
Simplify 5ba6531956b9b6486560cbd13604c2238a3542dd

Thanks to Juan Quintela.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoFix desynchronization of condition code state when a memory access traps
Blue Swirl [Sat, 15 Aug 2009 16:52:54 +0000 (16:52 +0000)]
Fix desynchronization of condition code state when a memory access traps

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoPPC: clean up ppc405
Blue Swirl [Sat, 15 Aug 2009 14:27:05 +0000 (14:27 +0000)]
PPC: clean up ppc405

Rely on the subpage system instead of the local version.
Make most functions "static".
Fix wrong parameter passed to ppc4xx_pob_reset.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoUse pstrcpy to avoid OpenBSD linker warnings
Blue Swirl [Sat, 15 Aug 2009 11:33:58 +0000 (11:33 +0000)]
Use pstrcpy to avoid OpenBSD linker warnings

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agobsd-user: Add generic env variable handling
Blue Swirl [Sat, 15 Aug 2009 10:35:42 +0000 (10:35 +0000)]
bsd-user: Add generic env variable handling

Based on 04a6dfebb6b52532a1e0bd637899f1eba14e94c6.

Adds support for qemu to modify target process environment
variables using -E and -U commandline switches. This replaces
eventually the -drop-ld-preload flag.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agolinux-user: compile envlist.c only once
Blue Swirl [Sat, 15 Aug 2009 08:47:42 +0000 (08:47 +0000)]
linux-user: compile envlist.c only once

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agouser: compile ioport-user.c only for x86
Blue Swirl [Sat, 15 Aug 2009 07:52:19 +0000 (07:52 +0000)]
user: compile ioport-user.c only for x86

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agouser: compile path.c only once
Blue Swirl [Sat, 15 Aug 2009 07:51:59 +0000 (07:51 +0000)]
user: compile path.c only once

Also merge bsd-user/path.c and linux-user/path.c.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoFix migration for ide devices
Anthony Liguori [Thu, 13 Aug 2009 18:58:21 +0000 (13:58 -0500)]
Fix migration for ide devices

commit 93c8cfd9e67a62711b86f4c93747566885eb7928
Author: Gleb Natapov <gleb@redhat.com>
Date:   Sun Aug 2 11:36:47 2009 +0300

    make windows notice media change

Broke save/restore by loading a new field but not saving it.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
15 years agoUnbreak Sparc64
Blue Swirl [Thu, 13 Aug 2009 17:51:46 +0000 (17:51 +0000)]
Unbreak Sparc64

EBus is a sort of ISA bus.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoUnbreak Sparc32 and PPC
Blue Swirl [Thu, 13 Aug 2009 16:26:52 +0000 (16:26 +0000)]
Unbreak Sparc32 and PPC

Convert qdev ptr type to chr, allow a NULL pointer.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 years agoThird attempt to invoke create_config properly
malc [Thu, 13 Aug 2009 02:41:33 +0000 (06:41 +0400)]
Third attempt to invoke create_config properly

Second attempt failed due to $_ not being standard and as such it's
interpretation by certain shells when they were symlinked to /bin/sh
and invoked as such led to unpredictable results. So instead of trying
to be clever just use /bin/sh directly (That's what direct execution
would have led to anyway)

Hopefully this time nothing will break (Mingw?)

Thanks to Jordan Justen for report and analysis.
[Previous attempt (THISSHELL one) deserves a credit but reporter is
 too humble]

Signed-off-by: malc <av1474@comtv.ru>
15 years agoFix typo
malc [Wed, 12 Aug 2009 19:11:44 +0000 (23:11 +0400)]
Fix typo

15 years agoDo not use $SHELL to invoke our scripts
malc [Tue, 11 Aug 2009 19:15:52 +0000 (23:15 +0400)]
Do not use $SHELL to invoke our scripts

http://www.opengroup.org/onlinepubs/7990989775/xbd/envvar.html

<quote>
SHELL
    A pathname of the user's preferred command language
    interpreter. If this interpreter does not conform to the XSI Shell
    Command Language in the XCU specification, Shell Command Language,
    utilities may behave differently from those described in this
    specification set.
</quote>

So using shells for users who prefer csh variants is a no go.

15 years agoAesthetics
malc [Tue, 11 Aug 2009 16:48:02 +0000 (20:48 +0400)]
Aesthetics

Reformat to make item borders more visible
Fix cases of stray tabs and vertical misalignments

Signed-off-by: malc <av1474@comtv.ru>
15 years agouse C99 initializers for all audio/*
Juan Quintela [Tue, 11 Aug 2009 00:31:17 +0000 (02:31 +0200)]
use C99 initializers for all audio/*

Signed-off-by: Juan Quintela <quintela@redhat.com>
15 years agouse C99 initializers for audio_pcm_ops
Juan Quintela [Tue, 11 Aug 2009 00:31:15 +0000 (02:31 +0200)]
use C99 initializers for audio_pcm_ops

Signed-off-by: Juan Quintela <quintela@redhat.com>
15 years agoUse C99 initializers for audio_option
Juan Quintela [Tue, 11 Aug 2009 00:31:16 +0000 (02:31 +0200)]
Use C99 initializers for audio_option

Signed-off-by: Juan Quintela <quintela@redhat.com>
15 years agoUse proper struct initializers and remove INIT_FIELD() macro
Juan Quintela [Tue, 11 Aug 2009 00:31:14 +0000 (02:31 +0200)]
Use proper struct initializers and remove INIT_FIELD() macro

Signed-off-by: Juan Quintela <quintela@redhat.com>
15 years agoFix virtio-blk
Anthony Liguori [Tue, 11 Aug 2009 00:27:59 +0000 (19:27 -0500)]
Fix virtio-blk

Reported-by: Christoph Hellwig
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
15 years agoAdd emacs header to Makefile.target
Anthony Liguori [Tue, 4 Aug 2009 13:24:23 +0000 (08:24 -0500)]
Add emacs header to Makefile.target

Signed-off-by: Anthony Liguori <aliguori@us.ibmc.om>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agocheck for PR_SET_NAME being defined
Nathan Froyd [Mon, 3 Aug 2009 14:32:12 +0000 (07:32 -0700)]
check for PR_SET_NAME being defined

Depending on what glibc/kernel headers you are compiling against,
PR_SET_NAME may or may not be defined.  Do the right thing if
PR_SET_NAME isn't defined and skip setting the process name.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agorename "info qdrv" to "info qdm"
Gerd Hoffmann [Mon, 3 Aug 2009 13:03:09 +0000 (15:03 +0200)]
rename "info qdrv" to "info qdm"

As requested by avi: driver != device model.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agofix qdev_print_devinfo()
Gerd Hoffmann [Mon, 3 Aug 2009 09:26:48 +0000 (11:26 +0200)]
fix qdev_print_devinfo()

snprintf returns number of bytes needed for the output, not the number
of bytes actually written.  Thus the math is wrong ...

Spotted by Markus Armbruster.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert xilinx_timer.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:48 +0000 (17:35 +0200)]
qdev/prop: convert xilinx_timer.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert xilinx_intc.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:47 +0000 (17:35 +0200)]
qdev/prop: convert xilinx_intc.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert xilinx_ethlite.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:46 +0000 (17:35 +0200)]
qdev/prop: convert xilinx_ethlite.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert virtio-pci.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:45 +0000 (17:35 +0200)]
qdev/prop: convert virtio-pci.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert vga.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:44 +0000 (17:35 +0200)]
qdev/prop: convert vga.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert tcx.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:43 +0000 (17:35 +0200)]
qdev/prop: convert tcx.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert syborg_timer.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:42 +0000 (17:35 +0200)]
qdev/prop: convert syborg_timer.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert syborg_serial.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:41 +0000 (17:35 +0200)]
qdev/prop: convert syborg_serial.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert syborg_pointer.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:40 +0000 (17:35 +0200)]
qdev/prop: convert syborg_pointer.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert syborg_keyboard.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:39 +0000 (17:35 +0200)]
qdev/prop: convert syborg_keyboard.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert syborg_interrupt.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:38 +0000 (17:35 +0200)]
qdev/prop: convert syborg_interrupt.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert syborg_fb.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:37 +0000 (17:35 +0200)]
qdev/prop: convert syborg_fb.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert sun4u.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:36 +0000 (17:35 +0200)]
qdev/prop: convert sun4u.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert sun4m.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:35 +0000 (17:35 +0200)]
qdev/prop: convert sun4m.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert sparc32_dma.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:34 +0000 (17:35 +0200)]
qdev/prop: convert sparc32_dma.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert smbus_eeprom.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:33 +0000 (17:35 +0200)]
qdev/prop: convert smbus_eeprom.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert slavio_timer.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:32 +0000 (17:35 +0200)]
qdev/prop: convert slavio_timer.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Message-Id:

15 years agoqdev/prop: convert slavio_intctl.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:31 +0000 (17:35 +0200)]
qdev/prop: convert slavio_intctl.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Message-Id:

15 years agoqdev/prop: convert pcnet.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:29 +0000 (17:35 +0200)]
qdev/prop: convert pcnet.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert m48t59.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:28 +0000 (17:35 +0200)]
qdev/prop: convert m48t59.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert iommu.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:27 +0000 (17:35 +0200)]
qdev/prop: convert iommu.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert integratorcp.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:26 +0000 (17:35 +0200)]
qdev/prop: convert integratorcp.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert i2c.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:25 +0000 (17:35 +0200)]
qdev/prop: convert i2c.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert etraxfs_pic.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:24 +0000 (17:35 +0200)]
qdev/prop: convert etraxfs_pic.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert escc.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:23 +0000 (17:35 +0200)]
qdev/prop: convert escc.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert eccmemctl.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:22 +0000 (17:35 +0200)]
qdev/prop: convert eccmemctl.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert armv7m.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:21 +0000 (17:35 +0200)]
qdev/prop: convert armv7m.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert arm_sysctl.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:20 +0000 (17:35 +0200)]
qdev/prop: convert arm_sysctl.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: convert pci.c to helper macros.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:19 +0000 (17:35 +0200)]
qdev/prop: convert pci.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: add CharDriverState property.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:18 +0000 (17:35 +0200)]
qdev/prop: add CharDriverState property.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoqdev/prop: macros for creating typechecked properties.
Gerd Hoffmann [Mon, 3 Aug 2009 15:35:17 +0000 (17:35 +0200)]
qdev/prop: macros for creating typechecked properties.

There are DEFINE_PROP_$TYPE("name", struct, field, default) macros for
each property type.  These macros link the qdev_prop_$name struct to the
type used by that property.  typeof(struct->field) is verifyed to be the
correct one for the given property.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agomake windows notice media change
Gleb Natapov [Sun, 2 Aug 2009 08:36:47 +0000 (11:36 +0300)]
make windows notice media change

Windows seems to be very stupid about cdrom media change. It polls
cdrom status and if status goes ready->media not present->ready
it assumes that media was changed. If "media not present" step doesn't
happen even if "medium may have changed" was seen it assumes media
haven't changed. Fake "media not present" step.

Filip Navara did a great job debugging this issue in Windows and this is
what he found out:

BINGO! ... The media present notifications were broken ever since
Windows 2000 it seems. The media change is detected properly and it's
passed to ClassSetMediaChangeState function which in turn calls
ClasspInternalSetMediaChangeState. This function is responsible for
changing some internal state of the device object and sending the PnP
events which later result in application notifications. It has this
tiny bit of code (not copied byte for byte):

if (oldMediaState == NewState) {
  // Media is in the same state it was before.
  return;
}

so the end result is that for the case of UNIT NEEDS ATTENTION /
MEDIUM MAY HAVE CHANGED without NOT READY in-between is really broken.
It results in the internal media change counter incremented, so the
media contents are re-read when necessary, instead of relying on the
cache, but the notifications to applications are never sent.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoFix do_commit() behavior
Luiz Capitulino [Fri, 31 Jul 2009 18:15:41 +0000 (15:15 -0300)]
Fix do_commit() behavior

Commit 751c6a17042b5d011013d6963c0505d671cf708e changed the monitor's
'commit' command to this behavior:

1. Any string you type as argument will cause do_commit() to
call bdrv_commit() to all devices

2. If you enter a device name, it will be the only one ignored
by do_commit() :)

The fix is to call bdrv_commit() to the specified device only and
ignore the others (when 'all' is not specified).

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agonet: Fix do_set_link() return type
Luiz Capitulino [Mon, 3 Aug 2009 16:56:59 +0000 (13:56 -0300)]
net: Fix do_set_link() return type

do_set_link() returns int, but Monitor handler functions should
always return void.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoAdd/Fix command-line checks for smbios options v2
Beth Kon [Fri, 31 Jul 2009 17:49:14 +0000 (13:49 -0400)]
Add/Fix command-line checks for smbios options v2

- One type 4 table is required per cpu. Add a check for this.
- Fix check for smbios file.

Changes from v1:
- static designation of smbios_validate_table, and remove whitespace

Signed-off-by: Beth Kon <eak@us.ibm.com>
--
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoMove libsunpath to use the same style than everything else
Juan Quintela [Mon, 3 Aug 2009 12:47:11 +0000 (14:47 +0200)]
Move libsunpath to use the same style than everything else

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoconvert gprof flags to style of rest of Makefile
Juan Quintela [Mon, 3 Aug 2009 12:47:10 +0000 (14:47 +0200)]
convert gprof flags to style of rest of Makefile

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoAdd cocoa libs at Darwin selection time
Juan Quintela [Mon, 3 Aug 2009 12:47:09 +0000 (14:47 +0200)]
Add cocoa libs at Darwin selection time

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoCURL libs are used both by tools and softmmu
Juan Quintela [Mon, 3 Aug 2009 12:47:08 +0000 (14:47 +0200)]
CURL libs are used both by tools and softmmu

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoVDE libs are used both by tools and softmmu
Juan Quintela [Mon, 3 Aug 2009 12:47:07 +0000 (14:47 +0200)]
VDE libs are used both by tools and softmmu

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoAdd libs_tools support
Juan Quintela [Mon, 3 Aug 2009 12:47:06 +0000 (14:47 +0200)]
Add libs_tools support

Libraries used by qemu-<tools>

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoDisable aio in mingw32
Juan Quintela [Mon, 3 Aug 2009 12:47:05 +0000 (14:47 +0200)]
Disable aio in mingw32

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agouse TARGET_<arch name> for selection
Juan Quintela [Mon, 3 Aug 2009 12:47:04 +0000 (14:47 +0200)]
use TARGET_<arch name> for selection

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoWe also need TARGET_<arechname> in Makefiles
Juan Quintela [Mon, 3 Aug 2009 12:47:03 +0000 (14:47 +0200)]
We also need TARGET_<arechname> in Makefiles

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoConsolidate audio flags in configure
Juan Quintela [Mon, 3 Aug 2009 12:47:02 +0000 (14:47 +0200)]
Consolidate audio flags in configure

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoremove last 3 uses of :=, everywhere else uses += or =
Juan Quintela [Mon, 3 Aug 2009 12:47:01 +0000 (14:47 +0200)]
remove last 3 uses of :=, everywhere else uses += or =

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoCONFIG_POSIX makes more sense that not CONFIG_WIN32
Juan Quintela [Mon, 3 Aug 2009 12:47:00 +0000 (14:47 +0200)]
CONFIG_POSIX makes more sense that not CONFIG_WIN32

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoGenerate CONFIG_AUDIO_PT_INT in configure
Juan Quintela [Mon, 3 Aug 2009 12:46:59 +0000 (14:46 +0200)]
Generate CONFIG_AUDIO_PT_INT in configure

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoAUDIO_PT is not needed
Juan Quintela [Mon, 3 Aug 2009 12:46:58 +0000 (14:46 +0200)]
AUDIO_PT is not needed

AUDIO_PT only changes LDFLAGS to include -pthread, but it change it in
Makefile, and audio files are linked only on Makefile.target

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoFMOD_CFLAGS is not set when CONFIG_FMOD is undef
Juan Quintela [Mon, 3 Aug 2009 12:46:57 +0000 (14:46 +0200)]
FMOD_CFLAGS is not set when CONFIG_FMOD is undef

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoMake slirp include dir globlal in cflags
Juan Quintela [Mon, 3 Aug 2009 12:46:56 +0000 (14:46 +0200)]
Make slirp include dir globlal in cflags

We already include it everywhere

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoUse one less HELPER_CFLAGS
Juan Quintela [Mon, 3 Aug 2009 12:46:55 +0000 (14:46 +0200)]
Use one less HELPER_CFLAGS

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoUse only one KVM_CFLAGS
Juan Quintela [Mon, 3 Aug 2009 12:46:54 +0000 (14:46 +0200)]
Use only one KVM_CFLAGS

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoMove dis-* selection to configure
Juan Quintela [Mon, 3 Aug 2009 12:46:53 +0000 (14:46 +0200)]
Move dis-* selection to configure

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoAdded CONFIG_NEED_MMU for microblaze and cris
Juan Quintela [Mon, 3 Aug 2009 12:46:52 +0000 (14:46 +0200)]
Added CONFIG_NEED_MMU for microblaze and cris

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoGenerate more conmmon CFLAGS
Juan Quintela [Mon, 3 Aug 2009 12:46:51 +0000 (14:46 +0200)]
Generate more conmmon CFLAGS

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoFold TARGET_GPROF handling in configure
Juan Quintela [Mon, 3 Aug 2009 12:46:50 +0000 (14:46 +0200)]
Fold TARGET_GPROF handling in configure

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agothis bit was already generated in configure
Juan Quintela [Mon, 3 Aug 2009 12:46:49 +0000 (14:46 +0200)]
this bit was already generated in configure

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoMove ia64 QEMU_CFLAGS target to configure
Juan Quintela [Mon, 3 Aug 2009 12:46:48 +0000 (14:46 +0200)]
Move ia64 QEMU_CFLAGS target to configure

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoMove alpha CFLAGS target to configure
Juan Quintela [Mon, 3 Aug 2009 12:46:47 +0000 (14:46 +0200)]
Move alpha CFLAGS target to configure

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agofix typo, there should be bsd_user there
Juan Quintela [Mon, 3 Aug 2009 12:46:46 +0000 (14:46 +0200)]
fix typo, there should be bsd_user there

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agopermit to add things to CFLAGS per target
Juan Quintela [Mon, 3 Aug 2009 12:46:45 +0000 (14:46 +0200)]
permit to add things to CFLAGS per target

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agorefactor linker_script common part and change quoting
Juan Quintela [Mon, 3 Aug 2009 12:46:44 +0000 (14:46 +0200)]
refactor linker_script common part and change quoting

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agopermit to add things to LDFLAGS for target
Juan Quintela [Mon, 3 Aug 2009 12:46:43 +0000 (14:46 +0200)]
permit to add things to LDFLAGS for target

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years agoIntroduce CONFIG_NOSOFTFLOAT and simplify Makefile.target
Juan Quintela [Mon, 3 Aug 2009 12:46:42 +0000 (14:46 +0200)]
Introduce CONFIG_NOSOFTFLOAT and simplify Makefile.target

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

15 years ago\!CONFIG_USER_ONLY == CONFIG_SOFTMMU
Juan Quintela [Mon, 3 Aug 2009 12:46:41 +0000 (14:46 +0200)]
\!CONFIG_USER_ONLY == CONFIG_SOFTMMU

Use this to simplify Makefile.target and remove negative logic

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id: