Re: [edk2] [PATCH v2 10/23] OvmfPkg/VirtioLib: add VirtioMapAllBytesInSharedBuffer() helper function

2017-08-16 Thread Laszlo Ersek
On 08/14/17 13:36, Brijesh Singh wrote: > The function can be used for mapping the system physical address to virtio > device address using VIRTIO_DEVICE_PROTOCOL.MapSharedBuffer (). The > function helps centralizing error handling, and it allows caller to pass (1) some grammar bikeshedding: - s/

[edk2] [PATCH v2 10/23] OvmfPkg/VirtioLib: add VirtioMapAllBytesInSharedBuffer() helper function

2017-08-14 Thread Brijesh Singh
The function can be used for mapping the system physical address to virtio device address using VIRTIO_DEVICE_PROTOCOL.MapSharedBuffer (). The function helps centralizing error handling, and it allows caller to pass in constant or other evaluated expression for NumberOfBytes. Cc: Ard Biesheuvel C