• 1) Changed usage of malloc,free,strdup to qemu_malloc,qemu_free,qemu_strdup
     	2) Some coding style fixes (based on CODING_STYLE document)
     	3) Free struct addrinfo *res after failure of listen
    
    Signed-off-by: vibi <vibi_sreenivasan@cms.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    vibi authored
     
    Browse Code »
  • All VGA devices share a common field subset; currently they do so by
    a macro which defines the common fields inline their state structures,
    relying on the the common state being placed at offset 0 in the structure.
    This makes refactoring the code difficult and requires a lot of error prone
    casts.
    
    Replace the macro by a new VGACommonState structure, and the casts by
    regular field access and container_of() for upcasts.
    
    Signed-off-by: Avi Kivity <avi@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Avi Kivity authored
     
    Browse Code »
  • This patch makes the range checks for block requests more strict: It fixes a
    potential integer overflow and checks for negative offsets. Also, it adds the
    check for compressed writes.
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Kevin Wolf authored
     
    Browse Code »
  • Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
     
    Browse Code »
  • posix_aio_read expect aio requests to return the number of bytes
    requests to be successfull, so we need to fake this up for ioctls.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Christoph Hellwig authored
     
    Browse Code »
  • Remove cpu features that are not supported by kvm from the cpuid features
    reported to the guest.
    
    Signed-off-by: Avi Kivity <avi@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Avi Kivity authored
     
    Browse Code »