Skip to content
Snippets Groups Projects
  1. Jun 12, 2015
  2. Jun 09, 2015
  3. Jun 08, 2015
    • Markus Armbruster's avatar
      QemuOpts: Drop qemu_opts_foreach() parameter abort_on_failure · a4c7367f
      Markus Armbruster authored
      
      When the argument is non-zero, qemu_opts_foreach() stops on callback
      returning non-zero, and returns that value.
      
      When the argument is zero, it doesn't stop, and returns the bit-wise
      inclusive or of all the return values.  Funky :)
      
      The callers that pass zero could just as well pass one, because their
      callbacks can't return anything but zero:
      
      * qemu_add_globals()'s callback qdev_add_one_global()
      
      * qemu_config_write()'s callback config_write_opts()
      
      * main()'s callbacks default_driver_check(), drive_enable_snapshot(),
        vnc_init_func()
      
      Drop the parameter, and always stop.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Acked-by: default avatarKevin Wolf <kwolf@redhat.com>
      a4c7367f
    • Markus Armbruster's avatar
      vl: Fail right after first bad -object · 8122928a
      Markus Armbruster authored
      
      Failure to create an object with -object is a fatal error.  However,
      we delay the actual exit until all -object are processed.  On the one
      hand, this permits detection of genuine additional errors.  On the
      other hand, it can muddy the waters with uninteresting additional
      errors, e.g. when a later -object tries to reference a prior one that
      failed.
      
      We generally stop right on the first bad option, so do that for
      -object as well.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      8122928a
    • Markus Armbruster's avatar
      vl: Print -device help at most once · 8416abb3
      Markus Armbruster authored
      
      We print it once for each -device help.  Not helpful.  Stop after the
      first one.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      8416abb3
    • Markus Armbruster's avatar
      vl: Report failure to sandbox at most once · 092b21aa
      Markus Armbruster authored
      
      It's reported once per -sandbox on.  Stop on the first failure, like
      we do for other options.
      
      Not fixed: "-sandbox on -sandbox off" should leave the sandbox off.
      It doesn't.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      092b21aa
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · ee09f84e
      Peter Maydell authored
      
      * KVM error improvement from Laurent
      * CONFIG_PARALLEL fix from Mirek
      * Atomic/optimized dirty bitmap access from myself and Stefan
      * BUILD_DIR convenience/bugfix from Peter C
      * Memory leak fix from Shannon
      * SMM improvements (though still TCG only) from myself and Gerd, acked by mst
      
      # gpg: Signature made Fri Jun  5 18:45:20 2015 BST using RSA key ID 78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini/tags/for-upstream: (62 commits)
        update Linux headers from kvm/next
        atomics: add explicit compiler fence in __atomic memory barriers
        ich9: implement SMI_LOCK
        q35: implement TSEG
        q35: add test for SMRAM.D_LCK
        q35: implement SMRAM.D_LCK
        q35: add config space wmask for SMRAM and ESMRAMC
        q35: fix ESMRAMC default
        q35: implement high SMRAM
        hw/i386: remove smram_update
        target-i386: use memory API to implement SMRAM
        hw/i386: add a separate region that tracks the SMRAME bit
        target-i386: create a separate AddressSpace for each CPU
        vl: run "late" notifiers immediately
        qom: add object_property_add_const_link
        vl: allow full-blown QemuOpts syntax for -global
        pflash_cfi01: add secure property
        pflash_cfi01: change to new-style MMIO accessors
        pflash_cfi01: change big-endian property to BIT type
        target-i386: wake up processors that receive an SMI
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      ee09f84e
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging · 2e29dd7c
      Peter Maydell authored
      
      # gpg: Signature made Fri Jun  5 20:59:07 2015 BST using RSA key ID AAFC390E
      # gpg: Good signature from "John Snow (John Huston) <jsnow@redhat.com>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: FAEB 9711 A12C F475 812F  18F2 88A9 064D 1835 61EB
      #      Subkey fingerprint: F9B7 ABDB BCAC DF95 BE76  CBD0 7DEF 8106 AAFC 390E
      
      * remotes/jnsnow/tags/ide-pull-request:
        macio: remove remainder_len DBDMA_io property
        macio: update comment/constants to reflect the new code
        macio: switch pmac_dma_write() over to new offset/len implementation
        macio: switch pmac_dma_read() over to new offset/len implementation
        fdc-test: Test state for existing cases more thoroughly
        fdc: Fix MSR.RQM flag
        fdc: Disentangle phases in fdctrl_read_data()
        fdc: Code cleanup in fdctrl_write_data()
        fdc: Use phase in fdctrl_write_data()
        fdc: Introduce fdctrl->phase
        fdc: Rename fdctrl_set_fifo() to fdctrl_to_result_phase()
        fdc: Rename fdctrl_reset_fifo() to fdctrl_to_command_phase()
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      2e29dd7c
    • Alexander Graf's avatar
      machine: Drop use of DEFAULT_RAM_SIZE in help text · 0daba1f0
      Alexander Graf authored
      
      As of commit 076b35b5 (machine: add default_ram_size to machine
      class) we no longer have a global default ram size, but instead
      machine specific defaults.  When invoking qemu --help we don't know
      which machine you selected, so we can't tell the user the default RAM
      size in the help text anymore now.
      
      Thus I don't see an easy way to expose the default ram size to the
      user in the help text.  The easiest option IMHO is to just drop this
      piece of information.
      
      Reported-by: default avatarLaurent Desnogues <laurent.desnogues@gmail.com>
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      Acked-by: default avatarLaurent Desnogues <laurent.desnogues@gmail.com>
      Acked-by: default avatarNikunj A Dadhania <nikunj@linux.vnet.ibm.com>
      Message-id: 1433495103-62084-1-git-send-email-agraf@suse.de
      [PMM: rewrapped long commit message lines]
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      0daba1f0
    • Markus Armbruster's avatar
      monitor: Fix QMP ABI breakage around "id" · 779cec4d
      Markus Armbruster authored
      
      Commit 65207c59 accidentally dropped a line of code we need along with
      a comment that became wrong then.  This made QMP reject "id":
      
          {"execute": "system_reset", "id": "1"}
          {"error": {"class": "GenericError", "desc": "QMP input object member 'id' is unexpected"}}
      
      Put the lost line right back, so QMP again accepts and returns "id",
      as promised by the ABI:
      
          {"execute": "system_reset", "id": "1"}
          {"return": {}, "id": "1"}
      
      Reported-by: default avatarFabio Fantoni <fabio.fantoni@m2r.biz>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: default avatarDon Slutz <dslutz@verizon.com>
      Tested-by: default avatarFabio Fantoni <fabio.fantoni@m2r.biz>
      Signed-off-by: default avatarWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: default avatarPavel Fedin <p.fedin@samsung.com>
      Tested-by: default avatarEric Blake <eblake@redhat.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-id: 1433753070-12632-2-git-send-email-armbru@redhat.com
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      779cec4d
  4. Jun 05, 2015
Loading