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
05 Apr, 2009
8 commits
  • qcow2: fix image creation for large, > ~2TB, images (Chris Wright) ...
    2d2431f0
    When creating large disk images w/ qcow2 format, qcow2_create is hard
    coded to creating a single refcount block.  This is insufficient for
    large images, and will cause qemu-img to segfault as it walks off the
    end of the refcount block.  Keep track of the space needed during image
    create and create proper number of refcount blocks accordingly.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=491943
    
    Signed-off-by: Chris Wright <chrisw@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6982 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2009-04-05 17:40:58 +0000  
    Browse Code »
  • pci_add storage: fix error handling for 'if' parameter (Eduardo Habkost) ...
    8707ecca
    This fixes:
    
     - The error message to show the actual if= argument value. It was showing
       the filename instead, because 'buf' is reaused on the filename parsing.
     - A bug that makes a block device to be created even when an unsupported if= arg
       is passed to pci_add.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6981 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2009-04-05 17:40:55 +0000  
    Browse Code »
  • build system: clean qemu-options.texi and gdbstub-xml.c (Jan Kiszka) ...
    016c62c8
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6980 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2009-04-05 17:40:50 +0000  
    Browse Code »
  • build system: silent generation of doc files and qemu-options.h (Jan Kiszka) ...
    0d00e563
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6979 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2009-04-05 17:40:46 +0000  
    Browse File »
  • Add host_device support to qemu-img. (Nolan Leake) ...
    93c65b47
    This patch allows the use a host_device as the destination for "qemu-img
    convert".
    
    I added a ->bdrv_create function host_device.  It merely verifies that
    the device exists and is large enough.
    
    A check is needed in the qemu-img convert loop to ensure that we write
    out all 0 sectors to the host_device.  Otherwise they end up with stale
    garbage where all zero sectors were expected.
    
    I also made the check against bdrv_is_allocated enabled for everything
    _except_ host devices, since there is no point in making the block
    backend write a bunch of zeros just so that we can memcmp them
    immediately afterwards.  Host devices can't benefit from this because
    there is no way to differentiate between a sector being unallocated
    because it was never written, or because it was written with all zeros
    and then made a trip through qemu-img convert.
    
    Finally, there is an unrelated fix for a typo in the error message
    printed if the destination device does not support ->bdrv_create.
    
    Signed-off-by: Nolan Leake <nolan <at> sigbus.net>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6978 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2009-04-05 17:40:43 +0000  
    Browse Code »
  • Fix (at least one cause of) qcow2 corruption. (Nolan Leake) ...
    f8de1660
    qcow2's get_cluster_offset() scans forward in the l2 table to find other
    clusters that have the same allocation status as the first cluster.
    This is used by (among others) qcow_is_allocated().
    
    Unfortunately, it was not checking to be sure that it didn't fall off
    the end of the l2 table.  This patch adds that check.
    
    The symptom that motivated me to look into this was that
    bdrv_is_allocated() was returning false when there was in fact data
    there.  This is one of many ways this bug could lead to data corruption.
    
    I checked the other place that scans for consecutive unallocated blocks
    (alloc_cluster_offset()) and it appears to be OK:
        nb_clusters = MIN(nb_clusters, s->l2_size - l2_index);
    appears to prevent the same problem from occurring.
    
    Signed-off-by: Nolan Leake <nolan <at> sigbus.net>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6977 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2009-04-05 17:40:38 +0000  
    Browse Dir »
  • Document QEMU coding style (v2) (Avi Kivity) ...
    e68b98dc
    With the help of some Limoncino I noted several aspects of the QEMU coding
    style, particularly where it differs from the Linux coding style as many
    contributors work on both projects.
    
    Signed-off-by: Avi Kivity <avi@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6976 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2009-04-05 17:40:34 +0000  
    Browse Code »
  • Fix oops on 2.6.25 guest (Rusty Russell) ...
    8eca6b1b
    I believe this is behind the following:
    https://bugs.edge.launchpad.net/ubuntu/jaunty/+source/linux/+bug/331128
    
    virtio_pci in 2.6.25 didn't do feature negotiation correctly: it acked every
    bit.  Fortunately, we can detect this.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6975 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2009-04-05 17:40:08 +0000  
    Browse Code »

04 Apr, 2009
4 commits
  • Fix branches and TLB matches for 64 bit targets ...
    1da92db2
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6974 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-04-04 19:10:26 +0000  
    Browse Code »
  • Allocate space for static call args, increase stack frame size on Sparc64 ...
    f843e528
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6973 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-04-04 15:33:03 +0000  
    Browse Dir »
  • Compile all files with -ffixed-g5 etc. to avoid env (%g5) corruption ...
    762e8230
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6972 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-04-04 09:21:28 +0000  
    Browse Code »
  • Make i386-softmmu boot on Sparc host ...
    9ddff3d2
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6971 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-04-04 07:41:20 +0000  
    Browse File »

03 Apr, 2009
2 commits
  • SH: Fix linux-user _is_cached typo. ...
    679dee3c
    Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6970 c046a42c-6fe2-441c-8c8c-71466251a162
    edgar_igl authored
    2009-04-03 07:33:24 +0000  
    Browse Code »
  • SH: Add cpu_sh4_is_cached for linux-user. ...
    3c1adf12
    The entire U0 area is assumed to be cacheable.
    
    Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6969 c046a42c-6fe2-441c-8c8c-71466251a162
    edgar_igl authored
    2009-04-03 07:29:38 +0000  
    Browse Dir »

02 Apr, 2009
2 commits
  • Immediate versions of ro[lr] ...
    8cd6345d
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6968 c046a42c-6fe2-441c-8c8c-71466251a162
    malc authored
    2009-04-02 22:54:35 +0000  
    Browse Code »
  • Temporary workaround for ppc on ppc ...
    d19076fa
    target-ppc/translate.c puts values of type opcode_t into .opcodes
    section, using GCC extension to do so, and hoping that this will make
    them appear contiguously and in the source order in the resulting
    executable. This assumption is not safe and is known to be violated
    with certain versions of GCC, certain flags passed to it and on
    certain platforms (gcc 4.3.0, -O and PPC/PPC64 for instance)
    
    The workaround consists of adding -fno-unit-at-a-time to the list of
    GCC command line options while building PPC translate.o on a PPC.
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6967 c046a42c-6fe2-441c-8c8c-71466251a162
    malc authored
    2009-04-02 01:16:39 +0000  
    Browse File »

01 Apr, 2009
3 commits
  • SH: Improve movca.l/ocbi emulation. ...
    852d481f
    Author: Vladimir Prus <vladimir@codesourcery.com>
    
        Fix movcal.l/ocbi emulation.
    
            * target-sh4/cpu.h (memory_content): New.
            (CPUSH4State): New fields movcal_backup and movcal_backup_tail.
            * target-sh4/helper.h (helper_movcal)
            (helper_discard_movcal_backup, helper_ocbi): New.
            * target-sh4/op_helper.c (helper_movcal)
            (helper_discard_movcal_backup, helper_ocbi): New.
            * target-sh4/translate.c (DisasContext): New field has_movcal.
            (sh4_defs): Update CVS for SH7785.
            (cpu_sh4_init): Initialize env->movcal_backup_tail.
            (_decode_opc): Discard movca.l-backup.
            Make use of helper_movcal and helper_ocbi.
            (gen_intermediate_code_internal): Initialize has_movcal to 1.
    
    Thanks to Shin-ichiro KAWASAKI and Paul Mundt for valuable feedback.
    
    Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6966 c046a42c-6fe2-441c-8c8c-71466251a162
    edgar_igl authored
    2009-04-01 23:10:46 +0000  
    Browse Code »
  • Implement and use shared memory framebuffer device rendering reoutine. ...
    714fa308
    Use DMA mapping API.
    
    Signed-off-by: Paul Brook <paul@codesourcery.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6965 c046a42c-6fe2-441c-8c8c-71466251a162
    pbrook authored
    2009-04-01 12:27:59 +0000  
    Browse Code »
  • Use pixel_ops.h ...
    602dafcf
    Signed-off-by: Paul Brook <paul@codesourcery.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6964 c046a42c-6fe2-441c-8c8c-71466251a162
    pbrook authored
    2009-04-01 11:43:02 +0000  
    Browse Code »

31 Mar, 2009
3 commits
  • Remove unused variable ...
    61f14e10
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6963 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-03-31 17:18:10 +0000  
    Browse File »
  • Update OpenBIOS images to r482 ...
    9d479c11
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6962 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-03-31 15:46:09 +0000  
    Browse Code »
  • Avoid rounding problems in ptimer_get_count ...
    d0a981b2
    Signed-off-by: Paul Brook <paul@codesourcery.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6961 c046a42c-6fe2-441c-8c8c-71466251a162
    pbrook authored
    2009-03-31 14:34:24 +0000  
    Browse Code »

30 Mar, 2009
1 commit
  • Fix wrong return value ...
    bbeea539
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6959 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-03-30 17:51:29 +0000  
    Browse Dir »

29 Mar, 2009
17 commits
  • Remove dead AIO code for win32 ...
    9c39be47
    AFAIK, it's never been enabled and hasn't even compiled in ages.  Remove the
    code to avoid confusion.  If someone ever decides to fix it, they can get at
    the old version in RCS history.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6958 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2009-03-29 20:54:17 +0000  
    Browse Dir »
  • target-mips: optimize gen_movcf_*() ...
    cbc37b28
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6957 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
    2009-03-29 15:45:02 +0000  
    Browse Dir »
  • target-mips: optimize gen_movci() ...
    af58f9ca
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6956 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
    2009-03-29 15:44:50 +0000  
    Browse File »
  • target-mips: optimize gen_compute_branch1() ...
    d94536f4
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6955 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
    2009-03-29 15:44:34 +0000  
    Browse File »
  • Misc scsi disk/cdrom fixes/improvements 4/4 ...
    58a2c436
    Implement Test Unit Ready command (return NOT READY as above
    if !bdrv_is_inserted(...))
    
    Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6954 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-03-29 15:40:59 +0000  
    Browse Code »
  • misc scsi disk/cdrom fixes/improvements 3/4 ...
    ed6a9b30
    Add asc 0x3a, ascq 0: Medium not present to NOT READY sense
    (needed to keep some guests from retrying causing long sleeps in the
    kernel)
    
    Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6953 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-03-29 15:40:42 +0000  
    Browse Code »
  • misc scsi disk/cdrom fixes/improvements 2/4 ...
    b2056c16
    Implement cdrom load/eject functionality (Start Stop Unit command)
    
    Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6952 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-03-29 15:40:21 +0000  
    Browse Code »
  • misc scsi disk/cdrom fixes/improvements 1/4 ...
    ee16b24a
    Use correct sector size for cdrom Read TOC command
    
    Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6951 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-03-29 15:39:59 +0000  
    Browse Code »
  • target-mips: don't map FP registers as TCG global variables ...
    6d066274
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6950 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
    2009-03-29 15:39:08 +0000  
    Browse Code »
  • target-mips: fix divu instruction ...
    0c0ed03b
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6949 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
    2009-03-29 15:36:47 +0000  
    Browse File »
  • tcg: fix _tl aliases for divu/remu ...
    864951af
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6948 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
    2009-03-29 14:08:54 +0000  
    Browse Code »
  • target-ppc: Explain why the whole TLB is flushed on SR write ...
    bf1752ef
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6947 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
    2009-03-29 13:36:32 +0000  
    Browse Dir »
  • Fix hxtool eating backslash sequences for sh != bash ...
    004efc96
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6946 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-03-29 10:50:43 +0000  
    Browse Code »
  • Fix hxtool eating backslash sequences ...
    fb21ced7
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6945 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2009-03-29 09:06:43 +0000  
    Browse File »
  • fix format string warnings in block-qcow2.c (Christoph Hellwig) ...
    4c978075
    Recent patches added two compiler warnings about the format string
    usage in qcow_read_extensions.  One is printing a uint64_t using
    %lu which is incorrect on many platforms as it can be a unsigned
    long long, the second one is printing the result of sizeof as
    %lu, but it is a size_t so it needs to be printed using %zu.
    
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6944 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2009-03-29 01:31:56 +0000  
    Browse Code »
  • check for bs->drv in bdrv_flush (Christoph Hellwig) ...
    081501da
    All the bdrv_ helpers should check for bs->drv being zero as that means
    there is no backend image open.  bdrv_flush fails to perform that check
    and can thus cause NULL pointer dereferences.
    
    Found using qemu-io.
    
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6943 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2009-03-29 01:31:51 +0000  
    Browse Code »
  • remove dead code in bdrv_check_request (Christoph Hellwig) ...
    999dec57
    Remove code dealing with negative sector numbers for byte access in
    bdrv_check_request as sector numbers can't ever be negative.
    
    Previously we supported negative sector counts for byte access, but
    never sector numbers.
    
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6942 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2009-03-29 01:31:48 +0000  
    Browse Code »