• Michael S. Tsirkin's avatar
    hostmem: set MPOL_MF_MOVE · 288d3322
    Michael S. Tsirkin authored
    When memory is allocated on a wrong node, MPOL_MF_STRICT
    doesn't move it - it just fails the allocation.
    A simple way to reproduce the failure is with mlock=on
    realtime feature.
    
    The code comment actually says: "ensure policy won't be ignored"
    so setting MPOL_MF_MOVE seems like a better way to do this.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    
    288d3322
hostmem.c 11.1 KB