1. 08 5月, 2012 1 次提交
    • A
      Merge remote-tracking branch 'sweil/fixes' into staging · 4b5463bf
      Anthony Liguori 提交于
      * sweil/fixes:
        qemu-timer: Fix limits for w32 mmtimer
        qom: Fix memory leak in function container_get
        hw/pc_sysfw: Fix memory leak
        qdev: Fix memory leak in function set_pci_devfn
        arm-semi: Rename SYS_XXX macros to TARGET_SYS_XXX (fixes compiler warning)
        target-mips: Remove unused inline function
      4b5463bf
  2. 07 5月, 2012 5 次提交
    • H
      hw/ac97: Mask out the EAPD bit on Powerdown Ctrl/Stat writes · 847c25d0
      Hans de Goede 提交于
      The Linux AC97 driver tests this bit to decide wether or not to show
      an External amplifier toggle control.
      
      This patch was also tested with a Windows XP guest without any issues.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      847c25d0
    • H
      hw/ac97: Mask out unused bits of volume controls · 7873bfb8
      Hans de Goede 提交于
      The Linux ac97 drivers does a number of register read/write tests to
      see how much resolution a volume control actually has.
      
      This patch takes this into account by masking out any bits written to
      a volume control reg which should not be there according to the spec.
      
      After this the Linux ac97 driver correctly uses a range of 0 - 0x1f for
      the PCM out volume, as stated in the spec, and we can fix the FIXME
      in update_combined_volume_out().
      
      This patch was also tested with a Windows XP guest without any issues.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      7873bfb8
    • H
      hw/ac97: Use AC97_Record_Gain_Mute not AC97_Line_In_Volume_Mute · f94e9b9b
      Hans de Goede 提交于
      After commit 19677a38:
      "hw/ac97: add support for volume control"
      
      We are (correctly) using AC97_Record_Gain_Mute and not AC97_Line_In_Volume_Mute
      for recording volume, but various places in hw/ac97 were still assumimg that
      we are using AC97_Line_In_Volume_Mute for record volume control, this patch
      fixes this.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      f94e9b9b
    • H
      hw/ac97: Make a bunch of mixer registers read only · d044be37
      Hans de Goede 提交于
      The Linux ac97 driver tries to see if optional things like video input
      volume control are available in 2 ways:
      1) See if the mute bit is set after reset, if it is no further tests are done
      2) If the mute bit is not set it does a write/read test of the mute bit
      
      This patch changes our ac97 to conform to what the Linux driver expects, it
      initializes registers for things which we don't emulate to 0 (so the mute bit
      is not set) and makes them read only.
      
      This causes Linux to now longer show the following (functionless)
      controls in alsamixer:
      
      Master Mono vol + mute
      3d Control toggle
      PCM out pre / post 3d select
      Surround toggle
      CD vol + mute
      Mic vol + mute
      Mic boost toggle
      Mic mic1 / mic2 select
      Video vol + mute
      Phone vol + mute
      Beep mono vol + mute
      Aux vol + mute
      Mono "output mic" / "mix" select
      Sigmatel 4 speaker stereo toggle
      Sigmatel ADC 6Db att toggle
      Sigmatel DAC 6Db att toggle
      
      This patch was also tested with a Windows XP guest and there it also makes
      a number of functionless mixer controls go away.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      d044be37
    • H
      hw/ac97: Fix log message in mixer_load · a4e652eb
      Hans de Goede 提交于
      Fix a small copy and paste error in logging.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      a4e652eb
  3. 04 5月, 2012 1 次提交
  4. 03 5月, 2012 18 次提交
  5. 02 5月, 2012 15 次提交
    • A
      Update version for 1.1-rc0 release · 9bf6b71a
      Anthony Liguori 提交于
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      9bf6b71a
    • A
      Merge remote-tracking branch 'kiszka/queues/slirp' into staging · 563987d0
      Anthony Liguori 提交于
      * kiszka/queues/slirp:
        Declare state directory in smb.conf
        slirp: don't use "smb ports = 0" option
      563987d0
    • A
      Merge remote-tracking branch 'stefanha/tracing' into staging · 15a0f3bf
      Anthony Liguori 提交于
      * stefanha/tracing:
        configure: check for supported Python 2.x versions
        tracetool: avoid pkgutil.iter_modules() Python 2.7 function
        tracetool: avoid str.rpartition() Python 2.5 function
        tracetool: use Python 2.4-compatible __import__() arguments
        tracetool: use Python 2.4-compatible exception handling syntax
      15a0f3bf
    • A
      Merge remote-tracking branch 'agraf/s390-for-upstream' into staging · 174210fe
      Anthony Liguori 提交于
      * agraf/s390-for-upstream:
        s390: reset avail and used index on reboot
        S390: dont call system_shutdown on disabled wait
        S390: remove default cdrom, sd-card and floppy support
        S390: support reboot for kvm on s390
        S390: reboot: reset device pages on reboot
        S390: fix error handling on kernel and initrd failures
        S390: fix kernel_commandline handling
      174210fe
    • A
      Merge remote-tracking branch 'stefanha/trivial-patches' into staging · 725cbc68
      Anthony Liguori 提交于
      * stefanha/trivial-patches:
        iohandler: Use bool for boolean struct member and remove holes
        async: Use bool for boolean struct members and remove a hole
        configure: Fix creation of symbolic links for MinGW toolchain
      725cbc68
    • A
      Merge remote-tracking branch 'agraf/ppc-for-upstream' into staging · 6d051a0c
      Anthony Liguori 提交于
      * agraf/ppc-for-upstream:
        linux-user: Fix invalid TARGET_ABI_BITS usage on ppc hosts
        target-ppc: Some support for dumping TLB_EMB TLBs
        ppce500_spin: Replace assert by hw_error (fixes compiler warning)
        pseries: Fix use of global CPU state
        pseries: Use the same interrupt swizzling for host bridges as p2p bridges
        pseries: Implement automatic PAPR VIO address allocation
        PPC: Fix up e500 cache size setting
        booke:Use MMU API for creating initial mapping for secondary cpus
      6d051a0c
    • A
      Merge remote-tracking branch 'mdroth/qga-pull-4-27-12' into staging · 75e4e847
      Anthony Liguori 提交于
      * mdroth/qga-pull-4-27-12:
        qemu-ga: persist tracking of fsfreeze state via filesystem
        qemu-ga: add a whitelist for fsfreeze-safe commands
        qemu-ga: improve recovery options for fsfreeze
      75e4e847
    • N
      Declare state directory in smb.conf · 276eda57
      Nikolaus Rath 提交于
      The smb.conf generated by the userspace networking does not include a state directory
      directive. Samba therefore falls back to the default value. Since the user generally
      does not have write access to this path, smbd immediately crashes.
      
      The "state directory" option was added in Samba 3.4.0 (commit
      http://gitweb.samba.org/?p=samba.git;a=commit;h=7b02e05eb64f3ffd7aa1cf027d10a7343c0da757).
      
      This patch adds the missing option.
      Signed-off-by: NNikolaus Rath <Nikolaus@rath.org>
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      276eda57
    • N
      slirp: don't use "smb ports = 0" option · de305b13
      Nikolaus Rath 提交于
      The "smb ports = 0" option causes recent samba versions to crash. It was
      introduced in commit 157777ef with log message "Samba 3 support".
      However, a value of 0 has never been officially supported by smb and is
      also not necessary: if stdin is a socket, smb does not try to listen on
      any ports and uses just stdin. This is necessary to support inetd based
      operation (otherwise smbd would always fail when called from inetd,
      because inetd already listens on the SMB port). Since samba has
      supported inetd operation since pre-3.x, it should be safe to rely on
      this feature. I have tested it with Samba 3.6.4 -- communication works
      fine, and smbd is not listening on any ports.
      
      I suspect the "smb ports = 0" hack may have been introduced when someone
      tested the qemu generated samba config from the command line with "smbd
      -i" and found it to fail (because then stdin isn't a socket).
      Signed-off-by: NNikolaus Rath <Nikolaus@rath.org>
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      de305b13
    • A
      linux-user: Fix invalid TARGET_ABI_BITS usage on ppc hosts · ddf1ddcf
      Alexander Graf 提交于
      When trying to evaluate the size of the _host_ type size for olddev_t,
      we need to expose the host's pointer size, not the guest pointer size.
      
      This usage got introduced accidently in commit b754e4fc.
      
      Fix things by not using TARGET_.*, but rather use host sizeof()
      information, which gives us the correct size.
      Reported-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      ddf1ddcf
    • F
      target-ppc: Some support for dumping TLB_EMB TLBs · a7388162
      François Revol 提交于
      Add mmubooke_dump_mmu().
      
      TODO: Add printing of individual flags.
      Signed-off-by: NFrançois Revol <revol@free.fr>
      [agraf: fix coding style]
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      a7388162
    • S
      ppce500_spin: Replace assert by hw_error (fixes compiler warning) · 5f2c23e6
      Stefan Weil 提交于
      The default case in function spin_read should never be reached,
      therefore the old code used assert(0) to abort QEMU.
      
      This does not work when QEMU is compiled with macro NDEBUG defined.
      In this case (and also when the compiler does not know that assert
      never returns), there is a compiler warning because of the missing
      return value.
      
      Using hw_error allows an improved error message and aborts always.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      [agraf: use __func__]
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      5f2c23e6
    • P
      pseries: Fix use of global CPU state · 73f7821b
      Peter Portante 提交于
      Commit ed120055 (Implement PAPR VPA
      functions for pSeries shared processor partitions) introduced the
      deregister_dtl() function and typo "emv" as name of its argument.
      This went unnoticed because the code in that function can access the
      global variable "env" so that no build failure resulted.
      
      Fix the argument to read "env". Resolves LP#986241.
      Signed-off-by: NPeter Portante <peter.portante@redhat.com>
      Acked-by: NAndreas Färber <afaerber@suse.de>
      [agraf: fixed typo in commit message]
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      73f7821b
    • D
      pseries: Use the same interrupt swizzling for host bridges as p2p bridges · 7fb0bd34
      David Gibson 提交于
      Currently the pseries PCI code uses a somewhat strange scheme of PCI irq
      allocation - one per slot up to a maximum that's greater than the usual 4.
      This scheme more or less worked, because we were able to tell the guest the
      irq mapping in the device tree, however it's a bit odd and may break
      assumptions in the future.  Worse, the array used to construct the dev
      tree interrupt map was mis-sized, we got away with it only because it
      happened that our SPAPR_PCI_NUM_LSI value was greater than 7.
      
      This patch changes the pseries PCI code to use the same interrupt swizzling
      scheme as is standardized for PCI to PCI bridges.  This makes for better
      consistency, deals better with any devices which use multiple interrupt
      pins and will make life easier in the future when we add passthrough of
      what may be either a host bridge or a PCI to PCI bridge.  This won't break
      existing guests, because they don't assume a particular mapping scheme for
      host bridges, but just follow what we tell them in the device tree (also
      updated to match, of course).  This patch also fixes the allocation of the
      irq map.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      7fb0bd34
    • D
      pseries: Implement automatic PAPR VIO address allocation · d601fac4
      David Gibson 提交于
      PAPR virtual IO (VIO) devices require a unique, but otherwise arbitrary,
      "address" used as a token to the hypercalls which manipulate them.
      
      Currently the pseries machine code does an ok job of allocating these
      addresses when the legacy -net nic / -serial and so forth options are used
      but will fail to allocate them properly when using -device.
      
      Specifically, you can use -device if all addresses are explicitly assigned.
      Without explicit assignment, only one VIO device of each type (network,
      console, SCSI) will be assigned properly, any further ones will attempt
      to take the same address leading to a fatal error.
      
      This patch fixes the situation by adding a proper address allocator to the
      VIO "bus" code.  This is used both by -device and the legacy options and
      default devices.  Addresses can still be explicitly assigned with -device
      options if desired.
      
      This patch changes the (guest visible) numbering of VIO devices, but since
      their addresses are discovered using the device tree and already differ
      from the numbering found on existing PowerVM systems, this does not break
      compatibility.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      d601fac4