• G
    tests: virtio-9p: add FLUSH operation test · 357e2f7f
    Greg Kurz 提交于
    The idea is to send a victim request that will possibly block in the
    server and to send a flush request to cancel the victim request.
    
    This patch adds two test to verifiy that:
    - the server does not reply to a victim request that was actually
      cancelled
    - the server replies to the flush request after replying to the
      victim request if it could not cancel it
    
    9p request cancellation reference:
    
    http://man.cat-v.org/plan_9/5/flushSigned-off-by: NGreg Kurz <groug@kaod.org>
    Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
    (groug, change the test to only write a single byte to avoid
            any alignment or endianess consideration)
    357e2f7f
9p-synth.h 1.8 KB