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
04 Dec, 2008
11 commits
  • hw/apic.c: use fls() from host-utils ...
    d34ca590
    ...and fix a bug, the implementation in hw/apic.c was wrong.
    
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5876 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
    2008-12-04 20:57:02 +0000  
    Browse Code »
  • Add missing file from previous commit. ...
    d096ab91
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5875 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-04 20:35:16 +0000  
    Browse Code »
  • Add virtio-balloon support ...
    bd322087
    This adds a VirtIO based balloon driver.  It uses madvise() to actually balloon
    the memory when possible.
    
    Until 2.6.27, KVM forced memory pinning so we must disable ballooning unless the
    kernel actually supports it when using KVM.  It's always safe when using TCG.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5874 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-04 20:33:06 +0000  
    Browse File »
  • Add ballooning infrastructure. ...
    df751fa8
    Balloon devices allow you to ask the guest to allocate memory.  This allows you
    to release that memory.  It's mostly useful for freeing up large chunks of
    memory from cooperative guests.
    
    Ballooning is supported by both Xen and VirtIO.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5873 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-04 20:19:35 +0000  
    Browse Code »
  • Define fls() in terms of clz32(). ...
    8d371d4b
    As suggested by Laurent Desnogues.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5872 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-04 20:08:06 +0000  
    Browse File »
  • Remove TARGET_PAGE_SIZE from virtio interface (Hollis Blanchard) ...
    f46f15bc
    TARGET_PAGE_SIZE should only be used internal to qemu, not in guest/host
    interfaces. The virtio frontend code in Linux uses two constants (PFN shift
    and vring alignment) for the interface, so update qemu to match.
    
    I've tested this with PowerPC KVM and confirmed that it fixes virtio problems
    when using non-TARGET_PAGE_SIZE pages in the guest.
    
    Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5871 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-04 19:58:45 +0000  
    Browse File »
  • Add virtio-blk support ...
    6e02c38d
    Virtio-blk is a paravirtual block device based on VirtIO.  It can be used by
    specifying the if=virtio parameter to the -drive parameter.
    
    When using -enable-kvm, it can achieve very good performance compared to IDE or
    SCSI.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5870 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-04 19:52:44 +0000  
    Browse Code »
  • Virtio core support ...
    967f97fa
    This patch adds core support for VirtIO.  VirtIO is a paravirtualization
    framework that has been in Linux since 2.6.21.  A PCI transport has been
    available since 2.6.25.  Network drivers are also available for Windows.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5869 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-04 19:38:57 +0000  
    Browse Code »
  • Introduce fls() helper ...
    b39ade83
    This is needed for virtio.  The implementation is originally from 
    Marcelo Tosatti.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5868 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-04 19:19:45 +0000  
    Browse File »
  • Clarify -soundhw documentation as to avoid hda confusion ...
    9b3469cc
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5867 c046a42c-6fe2-441c-8c8c-71466251a162
    malc authored
    2008-12-04 18:01:26 +0000  
    Browse Code »
  • Update ...
    d08c4d34
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5866 c046a42c-6fe2-441c-8c8c-71466251a162
    malc authored
    2008-12-04 11:29:42 +0000  
    Browse Code »

03 Dec, 2008
3 commits
  • Silence warnings generated due to `#if BUILD_Y8950' ...
    cee83d91
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5865 c046a42c-6fe2-441c-8c8c-71466251a162
    malc authored
    2008-12-03 23:00:35 +0000  
    Browse Code »
  • Make audio violate POSIX less ...
    1ea879e5
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5864 c046a42c-6fe2-441c-8c8c-71466251a162
    malc authored
    2008-12-03 22:48:44 +0000  
    Browse Code »
  • More consistent PAGE_xxx defines, avoid conflicting with system PAGE_xxx ...
    8b0de438
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5863 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2008-12-03 16:29:47 +0000  
    Browse Code »

02 Dec, 2008
11 commits
  • IBM PowerPC 4xx 32-bit PCI controller emulation ...
    825bb581
    This PCI controller can be found on a number of 4xx SoCs, including the 440EP.
    
    Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
    Acked-by: Anthony Liguori <aliguori@us.ibm.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5862 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
    2008-12-02 23:53:50 +0000  
    Browse File »
  • Change order of metadata update to prevent loosing guest data because of unexpec… ...
    e976c6a1
    …ted exit (Gleb Natapov)
    
    Currently the order is this (during cow since it's the interesting case):
    1. Decrement refcount of old clusters
    2. Increment refcount for newly allocated clusters
    3. Copy content of old sectors that will not be rewritten
    4. Update L2 table with pointers to new clusters
    5. Write guest data into new clusters (asynchronously)
    
    There are several problems with this order. The first one is that if qemu
    crashes (or killed or host reboots) after new clusters are linked into L2
    table but before user data is written there, then on the next reboot guest
    will find neither old data nor new one in those sectors and this is not
    what gust expects even when journaling file system is in use.  The other
    problem is that if qemu is killed between steps 1 and 4 then refcount
    of old cluster will be incorrect and may cause snapshot corruption.
    
    The patch change the order to be like this:
    1. Increment refcount for newly allocated clusters
    2. Write guest data into new clusters (asynchronously)
    3. Copy content of old sectors that were not rewritten
    4. Update L2 table with pointers to new clusters
    5. Decrement refcount of old clusters
    
    Unexpected crash may cause cluster leakage, but guest data should be safe.
    
    Signed-off-by: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5861 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-02 20:14:05 +0000  
    Browse Code »
  • Cleanup {alloc|get}_cluster_offset() (Gleb Natapov) ...
    6db6c638
    Move duplicated code into helper functions.
    
    Signed-off-by: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5860 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-02 20:11:27 +0000  
    Browse Code »
  • Write table offset and size in one syscall (Gleb Natapov) ...
    643e5399
    Otherwise if VM is killed between two writes data may be lost.
    But if offset and size fields are at the same disk block one
    write should update them both simultaneously.
    
    Signed-off-by: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5859 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-02 20:10:14 +0000  
    Browse Code »
  • Introduce new helper function qcow_shedule_bh() (Gleb Natapov) ...
    a32ef786
    Use it to remove code duplications from qcow_aio_read_cb().
    
    Signed-off-by: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5858 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-02 20:08:04 +0000  
    Browse Code »
  • Remove tabs from qcow_aio_read_cb(). (Gleb Natapov) ...
    ac674887
    Fix indentation.
    
    Signed-off-by: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5857 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-02 20:06:51 +0000  
    Browse Code »
  • Exclude unix: from vnc call to unix_listen() (Ryan Harper) ...
    4a55bfdf
    When using an existing unix socket like:
    
     -vnc unix:/tmp/file1Y2nY2
    
    qemu fails to bind a unix socket because the vnc call to unix_listen includes
    the unix: prefix and stores that in the unix.sun_path.  The fix is to not pass
    in unix: for the filename (same way qemu-char.c does it).
    
    Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5856 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-02 20:02:14 +0000  
    Browse Code »
  • Fix register name typo in dumping debug registers (Jan Kiszka) ...
    d4b55be5
    Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5855 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
    2008-12-02 19:40:26 +0000  
    Browse File »
  • Remove address masking after some rearranging ...
    a8f48dcc
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5854 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2008-12-02 17:51:19 +0000  
    Browse Code »
  • Remove address masking ...
    e64d7d59
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5853 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
    2008-12-02 17:47:02 +0000  
    Browse Code »
  • Cosmetic cleanups to previous patch. ...
    0e8f0967
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5852 c046a42c-6fe2-441c-8c8c-71466251a162
    pbrook authored
    2008-12-02 09:02:15 +0000  
    Browse Code »

01 Dec, 2008
12 commits
  • Reset the key modifiers upon client connect ...
    53762ddb
    VNC should not maintain modifer state upon reconnects With some window
    managers/vnc clients it will only see a key down event for a modifier
    followed by immediate disconnect(think Alt-F4), with a net effect of
    subsequently connected clients operating as if the modifier was never
    released.
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5851 c046a42c-6fe2-441c-8c8c-71466251a162
    malc authored
    2008-12-01 20:57:52 +0000  
    Browse Code »
  • Add basic audio functionality to vnc.c ...
    429a8ed3
    This allows among other things to capturing A/V of running
    guests. Ad-hoc client that does this (via script that invokes ffmpeg)
    can be found at:
    http://repo.or.cz/w/qemu/malc.git?a=tree;f=vcap;hb=capture3
    
    Thanks to Anthony Liguori for comments and review.
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5850 c046a42c-6fe2-441c-8c8c-71466251a162
    malc authored
    2008-12-01 20:57:48 +0000  
    Browse Code »
  • Change MMIO callbacks to use offsets, not absolute addresses. ...
    8da3ff18
    Signed-off-by: Paul Brook <paul@codesourcery.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5849 c046a42c-6fe2-441c-8c8c-71466251a162
    pbrook authored
    2008-12-01 18:59:50 +0000  
    Browse Code »
  • Allocate cleared memory for cpu state. ...
    6ad1d22b
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5848 c046a42c-6fe2-441c-8c8c-71466251a162
    pbrook authored
    2008-12-01 14:29:13 +0000  
    Browse Dir »
  • arm: Don't potentially overwrite input registers in add2, sub2. ...
    0c9c3a9e
    According to malc TCG will often genereate an add2/sub2/mul2 with low
    half of the output in the same register as high half of one of the
    inputs, so account for that.
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5847 c046a42c-6fe2-441c-8c8c-71466251a162
    balrog authored
    2008-12-01 11:57:21 +0000  
    Browse Dir »
  • Fix the comment added in r5844. ...
    63d41246
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5846 c046a42c-6fe2-441c-8c8c-71466251a162
    balrog authored
    2008-12-01 02:19:41 +0000  
    Browse Code »
  • Don't rely on ARM tcg_out_goto() generating just a single insn. ...
    fe33867b
    Otherwise when tb_exit generates a jump beyond the pc-relative range,
    tcg_out_goto() spans two/three instructions and we load the tb return
    value from a wrong address.  This is #ifdefed out currently because
    we take care for the jumps to be local.
    Problem spotted by Steffen Liebergeld.
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5845 c046a42c-6fe2-441c-8c8c-71466251a162
    balrog authored
    2008-12-01 02:17:12 +0000  
    Browse Dir »
  • arm: Reserve code buffer in memory range reachable for pc-relative branch. ...
    1cb0661e
    Unfortunately this range is so narrow that I'm not sure if it makes more
    sense to always use memory load to pc kind of branch instead.
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5844 c046a42c-6fe2-441c-8c8c-71466251a162
    balrog authored
    2008-12-01 02:10:17 +0000  
    Browse Code »
  • Use libgcc __clear_cache to clean icache, when available. ...
    3233f0d4
    Calling the clear cache syscall directly generates an illegal instruction 
    on some (armv4) kernels.
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5843 c046a42c-6fe2-441c-8c8c-71466251a162
    balrog authored
    2008-12-01 02:02:37 +0000  
    Browse Dir »
  • Fix a typo preventing GNUC builtins usage. ...
    80fe30ed
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5842 c046a42c-6fe2-441c-8c8c-71466251a162
    balrog authored
    2008-12-01 01:53:55 +0000  
    Browse Code »
  • Fix pmovsx* / pmovzx* SSE instructions (original fix by Frank Mehnert). ...
    dcfd12b8
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5841 c046a42c-6fe2-441c-8c8c-71466251a162
    balrog authored
    2008-12-01 01:52:37 +0000  
    Browse Dir »
  • Don't try to select on an invalid VNC socket when init fails. ...
    d0513623
    Otherwise we get a segfault.
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5840 c046a42c-6fe2-441c-8c8c-71466251a162
    balrog authored
    2008-12-01 01:48:36 +0000  
    Browse Code »

30 Nov, 2008
3 commits
  • qemu-img: open files with cache=writeback ...
    137519ce
    Data integrity is not important in qemu-img, so open the files with
    cache=writeback. This fixes the performance regression seen with qemu-img
    since revision 5485, and most particularly with the qcow2 format.
    
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5839 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
    2008-11-30 19:12:49 +0000  
    Browse Code »
  • target-ppc: remove unused file op_mem_access.h ...
    b8dbdddc
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5838 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
    2008-11-30 17:54:28 +0000  
    Browse Dir »
  • target-ppc: use ldl/ldub/stl/stub for load/store in op_helper.c ...
    dcc532c8
    Should not give any performance penality given cpu_mmu_index() is
    an inline function returning a value from env.
    
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5837 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
    2008-11-30 17:54:21 +0000  
    Browse Code »