RE: [virtio-dev] [PATCH v2] Add virtio rpmb device specification

From
Huang, Yang <>
Date
2019-08-01T05:19:21+00:00
ID
Thread
RE: [virtio-dev] [PATCH v2] Add virtio rpmb device specification
> >  */
> > struct rpmb_frame_jdec {
> >         __u8   stuff[196];
> >         __u8   key_mac[32];
> >         __u8   data[256];
> >         __u8   nonce[16];
> >         __be32 write_counter;
> >         __be16 addr;
> >         __be16 block_count;
> >         __be16 result;
> >         __be16 req_resp;
> > }
> 
> Ok, this seems to properly define the structure including endianness.
> You should explicitly refer to it by name, then it should be fine (when the
> document you refer to is added as a normative reference).
> 
> >
> > A user should fill the rpmb frame per his request and send it to virtio rpmb
> driver.
> > The driver then format it to virtqueue and send it to device.
> 
> Is there any formatting on top of the frame?

No such requirement for driver. Just sending to device via virtqueue.