• Maciej S. Szmigiero's avatar
    selftests: kvm/set_memory_region_test: Fix race in move region test · 0c55f867
    Maciej S. Szmigiero authored
    The current memory region move test correctly handles the situation that
    the second (realigning) memslot move operation would temporarily trigger
    MMIO until it completes, however it does not handle the case in which the
    first (misaligning) move operation does this, too.
    This results in false test assertions in case it does so.
    
    Fix this by handling temporary MMIO from the first memslot move operation
    in the test guest code, too.
    
    Fixes: 8a0639fe ("KVM: sefltests: Add explicit synchronization to move mem region test")
    Signed-off-by: default avatarMaciej S. Szmigiero <maciej.szmigiero@oracle.com>
    Message-Id: <0fdddb94bb0e31b7da129a809a308d91c10c0b5e.1606941224.git.maciej.szmigiero@oracle.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    0c55f867
set_memory_region_test.c 10.5 KB