1. 12 Jan, 2014 7 commits
    • Peter Maydell's avatar
      ui/cocoa: Draw black rectangle if we have no data yet · 7d270b1c
      Peter Maydell authored
      If our redraw method is called before we have any data from the guest,
      then draw a black rectangle rather than leaving the window empty.
      This mostly only matters when the guest machine has no framebuffer
      device, but it is more in line with the behaviour of other QEMU UIs.
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1387853507-26298-3-git-send-email-peter.maydell@linaro.org
      7d270b1c
    • Peter Maydell's avatar
      ui/cocoa: Redraw at correct size when switching surface · d3345a04
      Peter Maydell authored
      If the surface switch involved a resize, we were doing the redraw
      at the old size rather than the new, because the update of
      screen.width and screen.height was being done after the setFrame
      method calls which triggered a redraw. Normally this isn't very
      noticeable because typically after the guest triggers the window
      resize it also draws something to it, which will in turn cause
      us to redraw. However, the combination of a guest which never
      draws to the display and a command line setting of a screen size
      larger than the default can reveal odd effects.
      
      Move most of the handling of resizes to the top of the method,
      and guard it with a check that the surface size actually changed,
      to avoid unnecessary operations (including some user visible ones
      like "recenter the window on the screen") if the surface is the
      same size as the old one.
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1387853507-26298-2-git-send-email-peter.maydell@linaro.org
      d3345a04
    • Peter Maydell's avatar
      ui/cocoa: Fix code for starting QEMU via image file load dialog · 98db429d
      Peter Maydell authored
      Fix a number of bugs in the code for starting QEMU via the image
      file load dialog:
       * use the actual argv[0] rather than "qemu": this avoids failures to
         find BIOS image files caused by not looking in the correct directory
         relative to the executable path
       * allocate a large enough argv array to NULL terminate it
       * use g_strdup(X) rather than g_strdup_printf("%s", X) or
         g_strdup_printf(X)
       * disable the printing of the simulated command line argument
         (which is presumably intended for debug only)
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1386543546-31919-6-git-send-email-peter.maydell@linaro.org
      98db429d
    • Peter Maydell's avatar
      ui/cocoa: Add ".qcow2" to extension list for image load dialog · 5342f990
      Peter Maydell authored
      Add ".qcow2" to the list of file extensions which are accepted
      by the initial disk image load dialog which is displayed if the
      user runs QEMU without any command line arguments.
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1386543546-31919-5-git-send-email-peter.maydell@linaro.org
      5342f990
    • Peter Maydell's avatar
      ui/cocoa: Send warning message to stderr, not stdout · 01cc4e6f
      Peter Maydell authored
      Bring a warning message into line with the others in this file by
      sending it to stderr, not stdout.
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1386543546-31919-4-git-send-email-peter.maydell@linaro.org
      01cc4e6f
    • Peter Maydell's avatar
      ui/cocoa: Correct typos in comments and variable names · 49b9bd4d
      Peter Maydell authored
      Fix various non-user-visible typos in comments and variable names.
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarStefan Weil <sw@weilnetz.de>
      Message-id: 1386543546-31919-3-git-send-email-peter.maydell@linaro.org
      49b9bd4d
    • Peter Maydell's avatar
      ui/cocoa: Pass command key through to guest when VM has mousegrab · 8895919a
      Peter Maydell authored
      The guest might want to be able to use the command key for its won
      purposes (as command if it is MacOS X, or for the Windows key if
      it is a PC guest, for instance). In line with other UI frontends,
      pass it through if the guest has mousegrab, and only use it for UI
      menu accelerators if not grabbed.
      
      Thanks to John Arbuckle for reporting this problem, helping
      us work through what the best solution would be and providing
      a patch which was the initial inspiration for this one.
      Reported-by: default avatarJohn Arbuckle <programmingkidx@gmail.com>
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1386543546-31919-2-git-send-email-peter.maydell@linaro.org
      8895919a
  2. 10 Jan, 2014 8 commits
    • Anthony Liguori's avatar
      Merge remote-tracking branch 'bonzini/scsi-next' into staging · eedc1a5d
      Anthony Liguori authored
      * bonzini/scsi-next:
        scsi-disk: add UNMAP limits to block limits VPD page
        block/iscsi: use a bh to schedule co reentrance
      
      Message-id: 1387720926-11421-1-git-send-email-pbonzini@redhat.com
      Signed-off-by: default avatarAnthony Liguori <aliguori@amazon.com>
      eedc1a5d
    • Anthony Liguori's avatar
      Merge remote-tracking branch 'stefanha/block' into staging · debe40fb
      Anthony Liguori authored
      * stefanha/block:
        commit: Remove unused check
        qemu-iotests: Update test cases for commit active
        commit: Support commit active layer
        block: Add commit_active_start()
        mirror: Move base to MirrorBlockJob
        mirror: Don't close target
        qemu-iotests: drop duplicate virtio-blk initialization failure
        vmdk: Allow vmdk_create to work with protocol
        vmdk: Check VMFS extent line field number
        docs: updated qemu-img man page and qemu-doc to reflect VHDX support.
        block: vhdx - improve error message, and .bdrv_check implementation
        block/iscsi: Fix compilation for libiscsi 1.4.0 (API change)
        qapi-schema: fix QEMU 1.8 references
        dataplane: replace hostmem with memory_region_find
        dataplane: change vring API to use VirtQueueElement
        vring: factor common code for error exits
        vring: create a common function to parse descriptors
        sheepdog: fix dynamic grow for running qcow2 format
      
      Message-id: 1387554416-5837-1-git-send-email-stefanha@redhat.com
      Signed-off-by: default avatarAnthony Liguori <aliguori@amazon.com>
      debe40fb
    • Anthony Liguori's avatar
      Merge remote-tracking branch 'mst/tags/for_anthony' into staging · d1819762
      Anthony Liguori authored
      acpi,pci,pc,fedora,virtio fixes and enhancements
      
      This includes some Preparatory patches for cpu hotplug for q25 and memory
      hotplug by Igor, tests and memory mapping change
      by Laszlo and pci reset cleanup by Paolo.
      There are also some fixes for fedora and virtio:
      included here since they are test blockers for me.
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Mon 23 Dec 2013 08:07:18 AM PST using RSA key ID D28D5469
      # gpg: Can't check signature: public key not found
      
      * mst/tags/for_anthony:
        target-arm: fix build with gcc 4.8.2
        virtio: add back call to virtio_bus_device_unplugged
        piix: fix 32bit pci hole
        qdev: switch reset to post-order
        qdev: allow both pre- and post-order vists in qdev walking functions
        pci: clean up resetting of IRQs
        pci: do not export pci_bus_reset
        ACPI/DSDT-CPU: cleanup bogus comment
        ACPI: Q35 DSDT: fix CPU hotplug GPE0.2 handler
        acpi: ich9: allow guest to clear SCI rised by GPE
        acpi: factor out common pm_update_sci() into acpi core
        acpi: piix4: remove not needed GPE0 mask
        i440fx-test: verify firmware under 4G and 1M, both -bios and -pflash
        i440fx-test: generate temporary firmware blob
        i440fx-test: give each GTest case its own qtest
        i440fx-test: qtest_start() should be paired with qtest_end()
        hw/i386/pc_sysfw: support two flash drives
        pc_piix: document gigabyte_align
        piix: gigabyte alignment for ram
      
      Message-id: 1387815007-1272-1-git-send-email-mst@redhat.com
      Signed-off-by: default avatarAnthony Liguori <aliguori@amazon.com>
      d1819762
    • Anthony Liguori's avatar
      Merge remote-tracking branch 'afaerber/tags/qom-cpu-for-anthony' into staging · 4cddc7f4
      Anthony Liguori authored
      QOM CPUState refactorings / X86CPU
      
      * TLB invalidation optimizations
      * X86CPU initialization cleanups
      * Preparations for X86CPU hot-unplug
      
      # gpg: Signature made Tue 24 Dec 2013 04:51:52 AM PST using RSA key ID 3E7E013F
      # gpg: Good signature from "Andreas Färber <afaerber@suse.de>"
      # gpg:                 aka "Andreas Färber <afaerber@suse.com>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 174F 0347 1BCC 221A 6175  6F96 FA2E D12D 3E7E 013F
      
      * afaerber/tags/qom-cpu-for-anthony:
        target-i386: Cleanup 'foo=val' feature handling
        target-i386: Cleanup 'foo' feature handling
        target-i386: Convert 'check' and 'enforce' to static properties
        target-i386: Convert 'hv_spinlocks' to static property
        target-i386: Convert 'hv_vapic' to static property
        target-i386: Convert 'hv_relaxed' to static property
        cpu-exec: Optimize X86CPU usage in cpu_exec()
        target-i386: Move apic_state field from CPUX86State to X86CPU
        cputlb: Tidy memset() of arrays
        cputlb: Use memset() when flushing entries
      4cddc7f4
    • Anthony Liguori's avatar
      Merge remote-tracking branch 'pmaydell/tags/pull-target-arm-20140107' into staging · 62a6a1fb
      Anthony Liguori authored
      target-arm queue:
       * further A64 decoder patches, including enabling the aarch64-linux-user
         target; this includes full floating point support. Neon is not yet
         supported.
       * cadence UART model fixes.
       * some minor bug fixes and cleanups.
       * all the softfloat fixes required by the new A64 instructions;
         several of these will also be used by PPC.
      
      * pmaydell/tags/pull-target-arm-20140107: (61 commits)
        target-arm: A64: Add support for FCVT between half, single and double
        target-arm: A64: Add 1-source 32-to-32 and 64-to-64 FP instructions
        target-arm: A64: Add floating-point<->integer conversion instructions
        target-arm: A64: Add floating-point<->fixed-point instructions
        target-arm: A64: Add extra VFP fixed point conversion helpers
        target-arm: Ignore most exceptions from scalbn when doing fixpoint conversion
        target-arm: Rename A32 VFP conversion helpers
        target-arm: Prepare VFP_CONV_FIX helpers for A64 uses
        softfloat: Add support for ties-away rounding
        softfloat: Refactor code handling various rounding modes
        softfloat: Add float16 <=> float64 conversion functions
        softfloat: Factor out RoundAndPackFloat16 and NormalizeFloat16Subnormal
        softfloat: Provide complete set of accessors for fp state
        softfloat: Fix float64_to_uint32_round_to_zero
        softfloat: Fix float64_to_uint32
        softfloat: Fix float64_to_uint64_round_to_zero
        softfloat: Add float32_to_uint64()
        softfloat: Fix factor 2 error for scalbn on denormal inputs
        softfloat: Only raise Invalid when conversions to int are out of range
        softfloat: Fix float64_to_uint64
        ...
      
      Conflicts:
      	target-arm/cpu.h
      
      aliguori: resolved trivial conflict
      Signed-off-by: default avatarAnthony Liguori <aliguori@amazon.com>
      62a6a1fb
    • Anthony Liguori's avatar
      Merge remote-tracking branch 'riku/linux-user-for-upstream' into staging · 205b6b61
      Anthony Liguori authored
      * riku/linux-user-for-upstream:
        linux-user: Remove regs parameter of load_elf_binary and load_flt_binary
        linux-user: Support the accept4 socketcall
      
      Message-id: 1389364137-23287-1-git-send-email-riku.voipio@linaro.org
      Signed-off-by: default avatarAnthony Liguori <aliguori@amazon.com>
      205b6b61
    • Will Newton's avatar
      linux-user: Remove regs parameter of load_elf_binary and load_flt_binary · f0116c54
      Will Newton authored
      The regs parameter is not used anywhere, so remove it.
      Signed-off-by: default avatarWill Newton <will.newton@linaro.org>
      Reviewed-by: default avatarErik de Castro Lopo <erikd@mega-nerd.com>
      Reviewed-by: default avatarAndreas Färber <afaerber@suse.de>
      Signed-off-by: default avatarRiku Voipio <riku.voipio@linaro.org>
      f0116c54
    • André Hentschel's avatar
      linux-user: Support the accept4 socketcall · b9d36eb2
      André Hentschel authored
      Cc: Riku Voipio <riku.voipio@iki.fi>
      Signed-off-by: default avatarAndré Hentschel <nerv@dawncrow.de>
      Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarErik de Castro Lopo <erikd@mega-nerd.com>
      Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
      Signed-off-by: default avatarRiku Voipio <riku.voipio@linaro.org>
      b9d36eb2
  3. 09 Jan, 2014 5 commits
    • Anthony Liguori's avatar
      Merge remote-tracking branch 'otubo/seccomp' into staging · 1d327fb4
      Anthony Liguori authored
      * otubo/seccomp:
        seccomp: exit if seccomp_init() fails
      
      Message-id: 1387565447-24241-1-git-send-email-otubo@linux.vnet.ibm.com
      Signed-off-by: default avatarAnthony Liguori <aliguori@amazon.com>
      1d327fb4
    • Anthony Liguori's avatar
      Merge remote-tracking branch 'rth/ldst-i386-2' into staging · 074dcc22
      Anthony Liguori authored
      * rth/ldst-i386-2: (49 commits)
        target-i386: Tidy ljmp
        target-i386: Rename gen_op_jmp_T0 to gen_op_jmp_v
        target-i386: Tidy some size computation
        target-i386: Remove gen_op_mov_reg_A0
        target-i386: Remove gen_op_mov_TN_reg
        target-i386: Remove gen_op_addl_T0_T1
        target-i386: Remove gen_op_mov_reg_T1
        target-i386: Remove gen_op_mov_reg_T0
        target-i386: Tidy cpu_regs initialization
        target_i386: Clean up gen_pop_T0
        target-i386: Combine gen_push_T* into gen_push_v
        target-i386: Tidy addr16 code in gen_lea_modrm
        target-i386: Change dflag to TCGMemOp
        target-i386: Change gen_op_mov_reg_A0 size parameter to TCGMemOp
        target-i386: Change aflag to TCGMemOp
        target-i386: Change gen_op_j*z_ecx size parameter to TCGMemOp
        target-i386: Change gen_op_add_reg_* size parameter to TCGMemOp
        target-i386: Use TCGMemOp for 'ot' variables
        target-i386: Remove gen_op_andl_A0_ffff
        target-i386: Remove gen_op_movl_T0_T1
        ...
      
      Message-id: 1389128439-10067-1-git-send-email-rth@twiddle.net
      Signed-off-by: default avatarAnthony Liguori <aliguori@amazon.com>
      074dcc22
    • Anthony Liguori's avatar
      Merge remote-tracking branch 'afaerber/tags/qom-devices-for-anthony' into staging · c06f13c6
      Anthony Liguori authored
      QOM infrastructure fixes and device conversions
      
      * QOM interface fixes and unit test
      * Device no_user sanitization and documentation
      * Device error reporting improvement
      * Conversion of APIC, ICC, IOAPIC to QOM realization model
      
      # gpg: Signature made Tue 24 Dec 2013 09:04:05 AM PST using RSA key ID 3E7E013F
      # gpg: Good signature from "Andreas Färber <afaerber@suse.de>"
      # gpg:                 aka "Andreas Färber <afaerber@suse.com>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 174F 0347 1BCC 221A 6175  6F96 FA2E D12D 3E7E 013F
      
      * afaerber/tags/qom-devices-for-anthony: (24 commits)
        qdev-monitor: Improve error message for -device nonexistant
        ioapic: QOM'ify ioapic
        ioapic: Cleanup for QOM'ification
        icc_bus: QOM'ify ICC
        apic: QOM'ify APIC
        apic: Cleanup for QOM'ification
        qdev: Drop misleading qbus_free() function
        qom: Detect bad reentrance during object_class_foreach()
        tests: Test QOM interface casting
        qom: Do not register interface "types" in the type table and fix names
        qom: Split out object and class caches
        qdev: Document that pointer properties kill device_add
        hw: cannot_instantiate_with_device_add_yet due to pointer props
        qdev-monitor: Avoid device_add crashing on non-device driver name
        qdev: Do not let the user try to device_add when it cannot work
        isa: Clean up use of cannot_instantiate_with_device_add_yet
        vt82c686: Clean up use of cannot_instantiate_with_device_add_yet
        piix3 piix4: Clean up use of cannot_instantiate_with_device_add_yet
        ich9: Document why cannot_instantiate_with_device_add_yet
        pci-host: Consistently set cannot_instantiate_with_device_add_yet
        ...
      c06f13c6
    • Anthony Liguori's avatar
      Merge remote-tracking branch 'mjt/trivial-patches' into staging · 666eb032
      Anthony Liguori authored
      * mjt/trivial-patches:
        acpi unit-test: Remove temporary disk after test
        mainstone: Fix duplicate array values for key 'space'
        pxa27x: Add 'const' attribute to keyboard maps
        pxa27x: Reduce size of keyboard matrix mapping
        doc: Mention chardev:id in available devices for -serial
        configure: Python tests must be done before help message
        configure: Rewrite code for help message
        fix -boot strict regressed in commit 6ef4716c
        vl: make boot_strict variable static (not used outside vl.c)
        x86: only allow real mode to access 32bit without LMA
        linux-user: Use macro TARGET_NSIG_WORDS where possible
        exynos4210: Use macro ARRAY_SIZE where possible
        ui/cocoa: Use macro ARRAY_SIZE where possible
        misc: Use macro ARRAY_SIZE where possible
        openrisc: Fix spelling in comment (transaltion -> translation)
        hw/arm/highbank: Simplify code (memory region in device state)
      
      Message-id: 1388182050-10270-1-git-send-email-mjt@msgid.tls.msk.ru
      Signed-off-by: default avatarAnthony Liguori <aliguori@amazon.com>
      666eb032
    • Anthony Liguori's avatar
      Merge remote-tracking branch 'pmaydell/tags/pull-target-arm-20140108' into staging · b61740db
      Anthony Liguori authored
      target-arm queue:
       * further A64 decoder patches, including enabling the aarch64-linux-user
         target; this includes full floating point support. Neon is not yet
         supported.
       * cadence UART model fixes.
       * some minor bug fixes and cleanups.
       * all the softfloat fixes required by the new A64 instructions;
         several of these will also be used by PPC.
      
      # gpg: Signature made Wed 08 Jan 2014 11:25:12 AM PST using RSA key ID 14360CDE
      # gpg: Can't check signature: public key not found
      
      * pmaydell/tags/pull-target-arm-20140108: (76 commits)
        target-arm: A64: Add support for FCVT between half, single and double
        target-arm: A64: Add 1-source 32-to-32 and 64-to-64 FP instructions
        target-arm: A64: Add floating-point<->integer conversion instructions
        target-arm: A64: Add floating-point<->fixed-point instructions
        target-arm: A64: Add extra VFP fixed point conversion helpers
        target-arm: Ignore most exceptions from scalbn when doing fixpoint conversion
        target-arm: Rename A32 VFP conversion helpers
        target-arm: Prepare VFP_CONV_FIX helpers for A64 uses
        softfloat: Add support for ties-away rounding
        softfloat: Refactor code handling various rounding modes
        softfloat: Add float16 <=> float64 conversion functions
        softfloat: Factor out RoundAndPackFloat16 and NormalizeFloat16Subnormal
        softfloat: Provide complete set of accessors for fp state
        softfloat: Fix float64_to_uint32_round_to_zero
        softfloat: Fix float64_to_uint32
        softfloat: Fix float64_to_uint64_round_to_zero
        softfloat: Add float32_to_uint64()
        softfloat: Fix factor 2 error for scalbn on denormal inputs
        softfloat: Only raise Invalid when conversions to int are out of range
        softfloat: Fix float64_to_uint64
        ...
      
      Message-id: 1389209439-25448-1-git-send-email-peter.maydell@linaro.org
      Signed-off-by: default avatarAnthony Liguori <aliguori@amazon.com>
      b61740db
  4. 08 Jan, 2014 20 commits