1. 01 6月, 2013 9 次提交
    • L
      debugcon: make debug message more readable · e6ee2846
      liguang 提交于
      before change:
      Bdebugcon: write addr=0x0000 val=0x6f
      odebugcon: write addr=0x0000 val=0x6f
      odebugcon: write addr=0x0000 val=0x74
      tdebugcon: write addr=0x0000 val=0x69
      idebugcon: write addr=0x0000 val=0x6e
      ndebugcon: write addr=0x0000 val=0x67
      gdebugcon: write addr=0x0000 val=0x20
       debugcon: write addr=0x0000 val=0x66
      
      after change:
      B [debugcon: write addr=0x0000 val=0x6f]
      o [debugcon: write addr=0x0000 val=0x6f]
      o [debugcon: write addr=0x0000 val=0x74]
      t [debugcon: write addr=0x0000 val=0x69]
      i [debugcon: write addr=0x0000 val=0x6e]
      n [debugcon: write addr=0x0000 val=0x67]
      g [debugcon: write addr=0x0000 val=0x20]
        [debugcon: write addr=0x0000 val=0x66]
      Signed-off-by: Nliguang <lig.fnst@cn.fujitsu.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      e6ee2846
    • L
      debugcon: fix always print "addr=0x0, val=0x0" bug when use DEBUG_DEBUGCON · 8c1f72da
      liguang 提交于
      when use DEBUG_DEBUGCON, screen spits:
      debugcon: write addr=0x0000 val=0x00
      Rdebugcon: write addr=0x0000 val=0x00
      udebugcon: write addr=0x0000 val=0x00
      ndebugcon: write addr=0x0000 val=0x00
      ndebugcon: write addr=0x0000 val=0x00
      idebugcon: write addr=0x0000 val=0x00
      ndebugcon: write addr=0x0000 val=0x00
      gdebugcon: write addr=0x0000 val=0x00
       debugcon: write addr=0x0000 val=0x00
      odebugcon: write addr=0x0000 val=0x00
      pdebugcon: write addr=0x0000 val=0x00
      tdebugcon: write addr=0x0000 val=0x00
      idebugcon: write addr=0x0000 val=0x00
      odebugcon: write addr=0x0000 val=0x00
      ndebugcon: write addr=0x0000 val=0x00
       debugcon: write addr=0x0000 val=0x00
      rdebugcon: write addr=0x0000 val=0x00
      odebugcon: write addr=0x0000 val=0x00
      mdebugcon: write addr=0x0000 val=0x00
       debugcon: write addr=0x0000 val=0x00
      adebugcon: write addr=0x0000 val=0x00
      tdebugcon: write addr=0x0000 val=0x00
       debugcon: write addr=0x0000 val=0x00
      
      Oh, that's wrong, val is not always be 0.
      this bug caused by lack of length modifier
      for specifier 'x'.
      Signed-off-by: Nliguang <lig.fnst@cn.fujitsu.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      8c1f72da
    • S
      Remove unnecessary break statements · 6681fca3
      Stefan Weil 提交于
      Fix these warnings from cppcheck:
      
      hw/display/cirrus_vga.c:2603:
      hw/sd/sd.c:348:
      hw/timer/exynos4210_mct.c:1033:
      target-arm/translate.c:9886:
      target-s390x/mem_helper.c:518:
      target-unicore32/translate.c:1936:
       style: Consecutive return, break, continue, goto or throw statements are unnecessary.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      6681fca3
    • M
      don't run pkg-config for features explicitly disabled · a3605bf6
      Michael Tokarev 提交于
      We test pkg-config for curses and curl even if those are explicitly
      disabled.  Move these tests inside `if "$feature" != "no"' sections.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      a3605bf6
    • R
      target-i386: Fix aflag logic for CODE64 and the 0x67 prefix · dec3fc96
      Richard Henderson 提交于
      The code reorganization in commit 4a6fd938 broke handling of PREFIX_ADR.
      While fixing this, tidy and comment the code so that it's more obvious
      what's going on in setting both aflag and dflag.
      
      The TARGET_X86_64 ifdef can be eliminated because CODE64 expands to the
      constant zero when TARGET_X86_64 is undefined.
      
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Reported-by: NLaszlo Ersek <lersek@redhat.com>
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-id: 1369855851-21400-1-git-send-email-rth@twiddle.net
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      dec3fc96
    • C
      s390/ipl: Fix spurious errors in virtio · 39c93c67
      Christian Borntraeger 提交于
      With the ccw ipl code sometimes an error message like
      "virtio: trying to map MMIO memory" or
      "Guest moved used index from %u to %u" appeared. Turns out
      that the ccw bios did not zero out the vring, which might
      cause stale values in avail->idx and friends, especially
      on reboot.
      
      Lets zero out the relevant fields. To activate the patch we
      need to rebuild s390-ccw.img as well.
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Message-id: 1369309901-418-1-git-send-email-borntraeger@de.ibm.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      39c93c67
    • A
      Merge remote-tracking branch 'mdroth/qga-pull-2013-05-30' into staging · 0a1f348c
      Anthony Liguori 提交于
      # By Laszlo Ersek
      # Via Michael Roth
      * mdroth/qga-pull-2013-05-30:
        Makefile: create ".../var/run" when installing the POSIX guest agent
        qga: save state directory in ga_install_service()
        qga: remove undefined behavior in ga_install_service()
        qga: create state directory on win32
        configure: don't save any fixed local_statedir for win32
        qga: determine default state dir and pidfile dynamically
        osdep: add qemu_get_local_state_pathname()
      
      Message-id: 1369940341-9043-1-git-send-email-mdroth@linux.vnet.ibm.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      0a1f348c
    • A
      Merge remote-tracking branch 'luiz/queue/qmp' into staging · 6c8df7a3
      Anthony Liguori 提交于
      # By Luiz Capitulino (1) and others
      # Via Luiz Capitulino
      * luiz/queue/qmp:
        target-i386: Fix mask of pte index in memory mapping
        target-i386: fix abort on bad PML4E/PDPTE/PDE/PTE addresses
        qapi: pad GenericList value fields to 64 bits
      
      Message-id: 1370009905-4255-1-git-send-email-lcapitulino@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      6c8df7a3
    • A
      Merge remote-tracking branch 'bonzini/iommu-for-anthony' into staging · cdf79b64
      Anthony Liguori 提交于
      # By Paolo Bonzini
      # Via Paolo Bonzini
      * bonzini/iommu-for-anthony: (22 commits)
        memory: add return value to address_space_rw/read/write
        memory: propagate errors on I/O dispatch
        exec: just use io_mem_read/io_mem_write for 8-byte I/O accesses
        memory: correctly handle endian-swapped 64-bit accesses
        memory: split accesses even when the old MMIO callbacks are used
        memory: add big endian support to access_with_adjusted_size
        memory: accept mismatching sizes in memory_region_access_valid
        memory: add address_space_access_valid
        exec: implement .valid.accepts for subpages
        memory: export memory_region_access_valid to exec.c
        exec: introduce memory_access_size
        exec: introduce memory_access_is_direct
        exec: expect mr->ops to be initialized for ROM
        memory: assign MemoryRegionOps to all regions
        memory: move unassigned_mem_ops to memory.c
        memory: add address_space_translate
        memory: dispatch unassigned accesses based on .valid.accepts
        exec: do not use error_mem_read
        exec: make io_mem_unassigned private
        cputlb: simplify tlb_set_page
        ...
      
      Message-id: 1369947836-2638-1-git-send-email-pbonzini@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      cdf79b64
  2. 31 5月, 2013 12 次提交
  3. 30 5月, 2013 1 次提交
    • M
      qapi: pad GenericList value fields to 64 bits · a678e26c
      Michael Roth 提交于
      With the introduction of native list types, we now have types such as
      int64List where the 'value' field is not a pointer, but the actual
      64-bit value.
      
      On 32-bit architectures, this can lead to situations where 'next' field
      offset in GenericList does not correspond to the 'next' field in the
      types that we cast to GenericList when using the visit_next_list()
      interface, causing issues when we attempt to traverse linked list
      structures of these types.
      
      To fix this, pad the 'value' field of GenericList and other
      schema-defined/native *List types out to 64-bits.
      
      This is less memory-efficient for 32-bit architectures, but allows us to
      continue to rely on list-handling interfaces that target GenericList to
      simply visitor implementations.
      
      In the future we can improve efficiency by defaulting to using native C
      array backends to handle list of non-pointer types, which would be more
      memory efficient in itself and allow us to roll back this change.
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      a678e26c
  4. 29 5月, 2013 18 次提交