Sign in

gwj / at91sam9263 · Commits

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Snippets
  • Commits 8,232
  • Compare
  • Branches 2
  • Tags 0
  • at91sam9263
12 Jul, 2009
12 commits
  • Sparc32/Sparc64/PPC: convert m48txx to qdev ...
    d27cf0ae
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    Blue Swirl authored
    2009-07-12 20:07:07 +0000  
    Browse Code »
  • Sparc32: convert tcx to qdev ...
    f40070c3
    Also increase QDEV_MAX_MMIO.
    
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    Blue Swirl authored
    2009-07-12 19:28:37 +0000  
    Browse Code »
  • Sparc32: use the OpenFirmware name for ecc ...
    798b721e
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    Blue Swirl authored
    2009-07-12 21:43:24 +0300  
    Browse Code »
  • target-mips: remove useless code in gen_st_cond() ...
    344b983d
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    Aurelien Jarno authored
    2009-07-12 15:09:01 +0200  
    Browse Code »
  • Fix MIPS SC ...
    feeb3b6a
    Fix botched merge of op_ldst_sc calls to match actual implementation.
    Thanks to Aurelien Jarno for diagnosing this.
    
    Signed-off-by: Paul Brook <paul@codesourcery.com>
    Paul Brook authored
    2009-07-12 13:11:25 +0100  
    Browse Code »
  • Sparc64: convert ebus to qdev ...
    53e3c4f9
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    Blue Swirl authored
    2009-07-12 08:54:49 +0000  
    Browse Dir »
  • sparc64: trap handling corrections ...
    5210977a
    On Sun, Jul 12, 2009 at 12:09 PM, Blue Swirl<blauwirbel@gmail.com> wrote:
    > On 7/12/09, Igor Kovalenko <igor.v.kovalenko@gmail.com> wrote:
    >> Good trap handling is required to process interrupts.
    >>  This patch fixes the following:
    >>
    >>  - sparc64 has no wim register
    >>  - sparc64 has no psret register, use IE bit of pstate
    >>   extract IE checking code to cpu_interrupts_enabled
    >>  - alternate globals are not available if cpu has GL feature
    >>   in this case bit AG of pstate is constant zero
    >>  - write to pstate must actually write pstate
    >>   even if cpu has GL feature
    >>
    >>  Also timer interrupt is handled using do_interrupt.
    >
    > A bit too much for one patch. Please also remove the code instead of
    > commenting out.
    
    I now excluded timer interrupt related part.
    To my mind other changes are essentially tied together.
    
    > PUT_PSR for Sparc64 needs CC_OP = CC_OP_FLAGS; like Sparc32.
    
    Fixed, please find attached the updated version.
    
    --
    Kind regards,
    Igor V. Kovalenko
    Igor Kovalenko authored
    2009-07-12 08:46:54 +0000  
    Browse Code »
  • Sparc32: convert eccmemctl to qdev ...
    49e66373
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    Blue Swirl authored
    2009-07-12 08:16:55 +0000  
    Browse Dir »
  • sparc64: fix helper_st_asi little endian case typo ...
    5b0f0bec
    On Sun, Jul 12, 2009 at 12:43 AM, Stuart Brady<sdbrady@ntlworld.com> wrote:
    > On Sat, Jul 11, 2009 at 10:22:18PM +0400, Igor Kovalenko wrote:
    >> It is clear that intention is to byte-swap value to be written, not
    >> the target address.
    >
    > @@ -1949,13 +1949,13 @@ void helper_st_asi(target_ulong addr, ta
    >     case 0x89: // Secondary LE
    >         switch(size) {
    >         case 2:
    > -            addr = bswap16(addr);
    > +            addr = bswap16(val);
    >             ^^^^
    > Shouldn't that be 'val = bswap16(val)' (and likewise for the 32-bit and
    > 64-bit cases)?  Also needs a 'signed-off-by:'...
    >
    > Cheers,
    > --
    > Stuart Brady
    >
    
    Thanks, that part I did not runtime-tested.
    Not sure if those asi stores are of any use for user-mode emulator.
    
    Please find attached the corrected version.
    
    Signed-off-by: igor.v.kovalenko@gmail.com
    
    --
    Kind regards,
    Igor V. Kovalenko
    Igor Kovalenko authored
    2009-07-12 07:44:11 +0000  
    Browse Dir »
  • sparc64: really initialize irq ...
    7d55273f
    Allocate irq just before passing it to pci bridge initialization
    and actually use it to initialize pci bridge.
    
    Signed-off-by: igor.v.kovalenko@gmail.com
    
    --
    Kind regards,
    Igor V. Kovalenko
    Igor Kovalenko authored
    2009-07-12 07:43:00 +0000  
    Browse Code »
  • sparc64: unify mmu tag matching code ...
    536ba015
    This patch extracts common part of sparc64 tag
    matching code used by IMMU and DMMU lookups.
    
    Signed-off-by: igor.v.kovalenko@gmail.com
    
    --
    Kind regards,
    Igor V. Kovalenko
    Igor Kovalenko authored
    2009-07-12 07:41:42 +0000  
    Browse Code »
  • sparc64: mmu bypass mode correction ...
    e8807b14
    This Implement physical address truncation in mmu bypass mode.
    IMMU bypass is also active when cpu enters RED_STATE
    
    Signed-off-by: igor.v.kovalenko@gmail.com
    
    --
    Kind regards,
    Igor V. Kovalenko
    Igor Kovalenko authored
    2009-07-12 07:41:42 +0000  
    Browse Code »

11 Jul, 2009
3 commits
  • Fix PCI IRQ breakage ...
    616cbc78
    Zero initialize the PCI bus irq count.
    
    Signed-off-by: Paul Brook <paul@codesourcery.com>
    Paul Brook authored
    2009-07-11 22:46:51 +0100  
    Browse Dir »
  • Revert "Fix the PCI header type of APB" ...
    110c50fd
    This reverts commit e8d2a887.
    Blue Swirl authored
    2009-07-11 08:38:39 +0000  
    Browse Code »
  • Fix APB by reverting 16eaedf2 partially ...
    ac47a60b
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    Blue Swirl authored
    2009-07-11 08:20:24 +0000  
    Browse Dir »

10 Jul, 2009
16 commits
  • Indent ac97 and es1370 according to audio formatting ...
    0c3271c5
    For the sake of consistency.  I pulled in the wrong patches from Gerd when
    he did the qdev conversion.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
    2009-07-10 15:32:03 -0500  
    Browse Code »
  • block: Clean up after deleting BHs ...
    36afc451
    Commit 6a7ad299 ("Call qemu_bh_delete at bdrv_aio_bh_cb") deletes emulated
    aio bottom halves to prevent endless accumulation.  However, it leaves a
    stale ->bh pointer, which is then waited on when the aio is reused.
    
    Zeroing the pointer fixes the issue, allowing vmdk format images to be used.
    
    Signed-off-by: Avi Kivity <avi@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Avi Kivity authored
    2009-07-10 13:44:30 -0500  
    Browse Code »
  • flush pending aio requests ...
    0884657b
    When we finish migration, there may be pending async io requests
    in flight. If we don't flush it before stage3 starting, it might be
    the case that the guest loses it.
    
    Signed-off-by: Glauber Costa <glommer@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Glauber Costa authored
    2009-07-10 13:44:30 -0500  
    Browse Code »
  • kvm: Work around borken MSR_GET_INDEX_LIST ...
    d9db889f
    Allocate enough memory for KVM_GET_MSR_INDEX_LIST as older kernels shot
    far beyond their limits, corrupting user space memory.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
    2009-07-10 13:44:30 -0500  
    Browse Code »
  • qemu/virtio: mark msi vectors used on load ...
    e6da7680
    Usage of msi vectors is controlled by the guest and so needs to be
    restored on load. Do this for msi vectors used by the virtio device.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Michael S. Tsirkin authored
    2009-07-10 13:44:30 -0500  
    Browse Code »
  • qemu/msi: missing braces ...
    72755a70
    MSIX present bit is tested incorrectly, and only happens to work because
    the bit we are testing is 0x1.  Add braces to fix this.
    
    Reported-by: Blue Swirl <blauwirbel@gmail.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Michael S. Tsirkin authored
    2009-07-10 13:44:30 -0500  
    Browse Code »
  • qemu/msi: clean used vectors state on load ...
    4bfd1712
    Clean up msix vector usage state on load. Since guest might have control
    over it through the device, the device will have to load this state from
    file.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Michael S. Tsirkin authored
    2009-07-10 13:44:30 -0500  
    Browse Code »
  • qcow2: Fix L1 table memory allocation ...
    3f6a3ee5
    Contrary to what one could expect, the size of L1 tables is not cluster
    aligned. So as we're writing whole sectors now instead of single entries,
    we need to ensure that the L1 table in memory is large enough; otherwise
    write would access memory after the end of the L1 table.
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Kevin Wolf authored
    2009-07-10 13:44:29 -0500  
    Browse Dir »
  • qcow1: Fix qcow_aio_writev ...
    c53ffce9
    Pass is_write = 1 to qcow_aio_setup when writing.
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Kevin Wolf authored
    2009-07-10 13:44:29 -0500  
    Browse Code »
  • Prefer sysfs for USB host devices ...
    55496240
    Scanning for devices via /sys/bus/usb/devices/ and using them via the
    /dev/bus/usb/<bus>/<device> character devices is the prefered method
    on modern kernels, so try that first.
    
    When using SELinux and libvirt, qemu will have access to /sys/bus/usb
    but not /proc/bus/usb, so although the current code will work just
    fine, it will generate SELinux AVC warnings.
    
    See also:
    
      https://bugzilla.redhat.com/508326
    
    Reported-by: Daniel Berrange <berrange@redhat.com>
    Signed-off-by: Mark McLoughlin <markmc@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Mark McLoughlin authored
    2009-07-10 13:44:29 -0500  
    Browse Code »
  • usb-ohci: Fix endianness issue ...
    1fa63e43
    This fixes a possible endianness issue in the usb-ohci hw module.
    hcca.frame and ohci->frame_number are 16bit, so use cpu_to_le16().
    
    Signed-off-by: Michael Buesch <mb@bu3sch.de>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Michael Buesch authored
    2009-07-10 13:41:20 -0500  
    Browse Code »
  • Make sure to mark MCE defines as ULL ...
    e6a0575e
    Fixes build on 32-bit
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
    2009-07-10 13:41:20 -0500  
    Browse Code »
  • qemu-io: fix memory leak ...
    7d8abfcb
    qemu-io leaks the request buffer whenever the read or write function isn't
    executed completely down the "normal" code path.
    
    [hch: also fix the aio and vectored variants the same way]
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Kevin Wolf authored
    2009-07-10 12:25:36 -0500  
    Browse Code »
  • qemu-io: add flag to mark files growable ...
    9c4bab26
    Add a -g flag to the open command and the main qemu-io command line to
    allow opening a file growable.  This is only allowed for protocols,
    mirroring the limitation exposed through bdrv_file_open.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Reviewed-by: Kevin Wolf <kwolf@redhat.com>
    Christoph Hellwig authored
    2009-07-10 12:25:36 -0500  
    Browse Code »
  • qemu-io: better input validation for vector-based commands ...
    cf57298a
    Fix up a couple of issues with validating the input of the various
    length arguments for the vectored I/O commands:
    
     - do the alignment check on each length instead the always 0 count argument
     - use a long long varibale for the cvtnum return value so that we can check
       wether it wasn't a number
     - check for a too large argument instead of truncating it
    
    Also refactor it into a common helper for all four calers and avoid parsing
    the numbers twice.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Reviewed-by: Kevin Wolf <kwolf@redhat.com>
    Christoph Hellwig authored
    2009-07-10 12:25:36 -0500  
    Browse Code »
  • qemu-io: small cleanups for the aio code ...
    230d4fa4
    Address a couple of review comments from Kevin.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored
    2009-07-10 12:25:36 -0500  
    Browse Code »

09 Jul, 2009
9 commits
  • Disable kqemu by default at run time ...
    52249f0f
     -no-kqemu -> -enable-kqemu
    
    kqemu is still present at compile time by default
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
    2009-07-09 17:28:08 -0500  
    Browse Code »
  • Make sure to only vm_start() a failed migration if we were running to begin ...
    eeb34af9
    with.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
    2009-07-09 16:58:08 -0500  
    Browse Code »
  • Allow setting qemu process name v2 ...
    1889465a
    Set the Linux process name to the name argument specified with name. I find
    this useful to see which guests are taking CPU time in top.
    
    This doesn't affect ps, which checks argv[0], but rewriting the
    environment uses much more code, so I only used this simple way.
    
    v2: Use separate process= argument, no prefixes.
    
    Signed-off-by: Andi Kleen <ak@linux.intel.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Andi Kleen authored
    2009-07-09 16:58:08 -0500  
    Browse Code »
  • configure: Append extra cflags and ldflags ...
    e3fc14c3
    In order to allow overriding flags that are set by configure, we have to
    append them instead of prepending as it is done so far.
    
    v2: Clarify documentation.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
    2009-07-09 16:58:08 -0500  
    Browse Code »
  • qemu: remove control vector save ...
    dca61621
    control vector is saved/restored by virtio-pci,
    it does not belong in virtio.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Michael S. Tsirkin authored
    2009-07-09 16:58:08 -0500  
    Browse Dir »
  • fix segfault in msix_save ...
    9a3e12c8
    This fixes segfault reported by Kevin Wolf,
    and simplifies the code in msix_save.
    
    Reported-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Michael S. Tsirkin authored
    2009-07-09 16:58:08 -0500  
    Browse Code »
  • Unregister savevm callback in eeprom93xx_free() ...
    391354f1
    Otherwise if you hot remove an eepro100 NIC and then migrate,
    you get:
    
      Unknown savevm section or instance 'eeprom' 0
    
    on the destination side.
    
    Signed-off-by: Mark McLoughlin <markmc@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Mark McLoughlin authored
    2009-07-09 16:58:08 -0500  
    Browse Dir »
  • Don't leak VLANClientState on PCI hot remove ...
    ae50b274
    destroy_nic() requires that NICInfo::private by a PCIDevice pointer,
    but then goes on to require that the same pointer matches
    VLANClientState::opaque.
    
    That is no longer the case for virtio-net since qdev and wasn't
    previously the case for rtl8139, ne2k_pci or eepro100.
    
    Make the situation a lot more clear by maintaining a VLANClientState
    pointer in NICInfo.
    
    Signed-off-by: Mark McLoughlin <markmc@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Mark McLoughlin authored
    2009-07-09 16:58:07 -0500  
    Browse Code »
  • Don't abort if TUNSETSNDBUF fails where no sndbuf= arg is supplied ...
    d026fb6d
    If no tap,sndbuf= arg is supplied, we use a default value. If
    TUNSETSNDBUF fails in this case, we should not abort.
    
    Signed-off-by: Mark McLoughlin <markmc@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Mark McLoughlin authored
    2009-07-09 16:58:07 -0500  
    Browse Code »