1. 17 10月, 2013 1 次提交
  2. 14 10月, 2013 1 次提交
    • S
      exec: Fix prototype of phys_mem_set_alloc and related functions · 575ddeb4
      Stefan Weil 提交于
      phys_mem_alloc and its assigned values qemu_anon_ram_alloc and
      legacy_s390_alloc must have identical argument lists.
      
      legacy_s390_alloc uses the size parameter to call mmap, so size_t is
      good enough for all of them.
      
      This patch fixes compiler errors on i686 Linux hosts:
      
        CC    alpha-softmmu/exec.o
      exec.c:752:51: error:
       initialization from incompatible pointer type [-Werror]
      exec.c: In function 'qemu_ram_alloc_from_ptr':
      exec.c:1139:32: error:
       comparison of distinct pointer types lacks a cast [-Werror]
      exec.c: In function 'qemu_ram_remap':
      exec.c:1283:21: error:
       comparison of distinct pointer types lacks a cast [-Werror]
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1380481005-32399-1-git-send-email-sw@weilnetz.de
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      575ddeb4
  3. 07 10月, 2013 1 次提交
  4. 03 10月, 2013 1 次提交
  5. 21 9月, 2013 1 次提交
  6. 20 9月, 2013 1 次提交
    • A
      exec: always use MADV_DONTFORK · 3e469dbf
      Andrea Arcangeli 提交于
      MADV_DONTFORK prevents fork to fail with -ENOMEM if the default
      overcommit heuristics decides there's too much anonymous virtual
      memory allocated. If the KVM secondary MMU is synchronized with MMU
      notifiers or not, doesn't make a difference in that regard.
      
      Secondly it's always more efficient to avoid copying the guest
      physical address space in the fork child (so we avoid to mark all the
      guest memory readonly in the parent and so we skip the establishment
      and teardown of lots of pagetables in the child).
      
      In the common case we can ignore the error if MADV_DONTFORK is not
      available. Leave a second invocation that errors out in the KVM path
      if MMU notifiers are missing and KVM is enabled, to abort in such
      case.
      Signed-off-by: NAndrea Arcangeli <aarcange@redhat.com>
      Tested-By: NBenoit Canet <benoit@irqsave.net>
      Acked-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NGleb Natapov <gleb@redhat.com>
      3e469dbf
  7. 13 9月, 2013 7 次提交
  8. 06 9月, 2013 4 次提交
  9. 03 9月, 2013 2 次提交
  10. 01 8月, 2013 1 次提交
  11. 27 7月, 2013 1 次提交
  12. 23 7月, 2013 5 次提交
  13. 18 7月, 2013 2 次提交
  14. 15 7月, 2013 1 次提交
  15. 10 7月, 2013 5 次提交
  16. 04 7月, 2013 6 次提交