search for: virtio_rpmb_req_result_read

Displaying 4 results from an estimated 4 matches for "virtio_rpmb_req_result_read".

2020 Aug 11
2
clarifying the handling of responses for virtio-rpmb
...ed on the virtqueue. The type of request can be program key (VIRTIO_RPMB_REQ_PROGRAM_KEY), get write counter (VIRTIO_RPMB_REQ_GET_WRITE_COUNTER), write (VIRTIO_RPMB_REQ_DATA_WRITE), and read (VIRTIO_RPMB_REQ_DATA_READ). A program key or write request can also combine with a result read (VIRTIO_RPMB_REQ_RESULT_READ) for a returned result. Now I'm deep in the guts of virt queues doing the implementation I'm trying to clarify exactly what frames should be sent to the device and if they should be out_sgs or in_sgs. I suspect there is some difference between the original prototype interface and what we h...
2020 Sep 11
0
[virtio-dev] Re: clarifying the handling of responses for virtio-rpmb
...> (VIRTIO_RPMB_REQ_PROGRAM_KEY), get write counter >>> (VIRTIO_RPMB_REQ_GET_WRITE_COUNTER), write >>> (VIRTIO_RPMB_REQ_DATA_WRITE), and read (VIRTIO_RPMB_REQ_DATA_READ). A >>> program key or write request can also combine with a result read >>> (VIRTIO_RPMB_REQ_RESULT_READ) for a returned result. >>> >>> Now I'm deep in the guts of virt queues doing the implementation I'm >>> trying to clarify exactly what frames should be sent to the device and >>> if they should be out_sgs or in_sgs. I suspect there is some difference &gt...
2020 Sep 28
0
[RFC PATCH 15/19] tools/vhost-user-rpmb: implement VIRTIO_RPMB_REQ_DATA_WRITE
...gt;> */ >> @@ -324,6 +339,82 @@ vrpmb_handle_get_write_counter(VuDev *dev, struct virtio_rpmb_frame *frame) >> return resp; >> } >> >> +/* >> + * vrpmb_handle_write: >> + * >> + * We will report the success/fail on receipt of >> + * VIRTIO_RPMB_REQ_RESULT_READ. Returns the number of extra frames >> + * processed in the request. >> + */ >> +static int vrpmb_handle_write(VuDev *dev, struct virtio_rpmb_frame *frame) >> +{ >> + VuRpmb *r = container_of(dev, VuRpmb, dev.parent); >> + int extra_frames = 0; >> +...
2020 Sep 25
20
[RFC PATCH 00/19] vhost-user-rpmb (Replay Protected Memory Block)
Hi, This is an initial implementation of a vhost-user backend for the VirtIO RPMB device. The device is currently in the draft of the next VirtIO specification and describes block device which uses combination of a key, nonce, hashing and a persistent write counter to prevent replay attacks (hence Replay Protected Memory Block). It is implemented as a vhost-user device because we want to