1. 04 9月, 2010 7 次提交
  2. 01 9月, 2010 1 次提交
  3. 31 8月, 2010 1 次提交
  4. 28 8月, 2010 2 次提交
    • I
      isapc: fix segfault. · 02a89b21
      Isaku Yamahata 提交于
      https://bugs.launchpad.net/bugs/611646
      reports that ./i386-softmmu/qemu -M isapc segfaults.
      This patch fixes the segfault introduced by
      f885f1ea
      
      It's because i440fx_state in pc_init1() isn't initialized.
      
      > Core was generated by `./i386-softmmu/qemu -M isapc'.
      > Program terminated with signal 11, Segmentation fault.
      > [New process 19686]
      >     at qemu/hw/piix_pci.c:136
      > (gdb) where
      >     at qemu/hw/piix_pci.c:136
      >     boot_device=0x7fffe1f5b040 "cad", kernel_filename=0x0,
      >     kernel_cmdline=0x6469bf "", initrd_filename=0x0,
      >     cpu_model=0x654d10 "486", pci_enabled=0)
      >     at qemu/hw/pc_piix.c:178
      >     boot_device=0x7fffe1f5b040 "cad", kernel_filename=0x0,
      >     kernel_cmdline=0x6469bf "", initrd_filename=0x0, cpu_model=0x654d10 "486")
      >     at qemu/hw/pc_piix.c:207
      >     envp=0x7fffe1f5b188)
      >     at qemu/vl.c:2871
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      02a89b21
    • G
      Fix segfault in mmio subpage handling code. · 95c318f5
      Gleb Natapov 提交于
      It is possible that subpage mmio is registered over existing memory
      page. When this happens "memory" will have real memory address and not
      index into io_mem array so next access to the page will generate
      segfault. It is uncommon to have some part of a page to be accessed as
      memory and some as mmio, but qemu shouldn't crash even when guest does
      stupid things. So lets just pretend that the rest of the page is
      unassigned if guest configure part of the memory page as mmio.
      Signed-off-by: NGleb Natapov <gleb@redhat.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      95c318f5
  5. 27 8月, 2010 8 次提交
  6. 24 8月, 2010 2 次提交
  7. 23 8月, 2010 15 次提交
  8. 21 8月, 2010 2 次提交
    • B
      Replace qemu_malloc + memset with qemu_mallocz · cc597832
      Blue Swirl 提交于
      Replace a qemu_malloc call, followed by a memset, with qemu_mallocz.
      
      Found with this Coccinelle semantic patch, adapted from
      Coccinelle test package rule 94:
      @@
      type T;
      expression x;
      expression E;
      @@
      
      - x = (T)qemu_malloc(E)
      + x = qemu_mallocz(E)
        ...
      (
      - memset(x,0,E);
      |
      - memset(x,0,sizeof(*x));
      )
      
      Some files (tests/*) had to be filtered out.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      cc597832
    • B
      Use ARRAY_SIZE macro · 66fe09ee
      Blue Swirl 提交于
      Replace array size calculations with ARRAY_SIZE macro.
      
      Implemented with this Coccinelle semantic patch, adapted from
      Linux kernel:
      @@
      type T;
      T[] E;
      @@
      
      - (sizeof(E)/sizeof(*E))
      + ARRAY_SIZE(E)
      
      @@
      type T;
      T[] E;
      @@
      
      - (sizeof(E)/sizeof(E[...]))
      + ARRAY_SIZE(E)
      
      @@
      type T;
      T[] E;
      @@
      
      - (sizeof(E)/sizeof(T))
      + ARRAY_SIZE(E)
      
      Some files (*-dis.c, tests/*) had to be filtered out.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      66fe09ee
  9. 20 8月, 2010 2 次提交