Skip to content
Snippets Groups Projects
  • Greg Kurz's avatar
    2893ddd5
    tests: virtio-9p: use the synth backend · 2893ddd5
    Greg Kurz authored
    
    The purpose of virtio-9p-test is to test the virtio-9p device, especially
    the 9p server state machine. We don't really care what fsdev backend we're
    using. Moreover, if we want to be able to test the flush request or a
    device reset with in-flights I/O, it is close to impossible to achieve
    with a physical backend because we cannot ask it reliably to put an I/O
    on hold at a specific point in time.
    
    Fortunately, we can do that with the synthetic backend, which allows to
    register callbacks on read/write accesses to a specific file. This will
    be used by a later patch to test the 9P flush request.
    
    The walk request test is converted to using the synth backend.
    
    Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
    Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    2893ddd5
    History
    tests: virtio-9p: use the synth backend
    Greg Kurz authored
    
    The purpose of virtio-9p-test is to test the virtio-9p device, especially
    the 9p server state machine. We don't really care what fsdev backend we're
    using. Moreover, if we want to be able to test the flush request or a
    device reset with in-flights I/O, it is close to impossible to achieve
    with a physical backend because we cannot ask it reliably to put an I/O
    on hold at a specific point in time.
    
    Fortunately, we can do that with the synthetic backend, which allows to
    register callbacks on read/write accesses to a specific file. This will
    be used by a later patch to test the 9P flush request.
    
    The walk request test is converted to using the synth backend.
    
    Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
    Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>