Skip to contentSkip to conversation

vmxnet3: Remove buf_info from device accessible structures

PATCH Jakub Kicinski 1 participant 1 message Jan 30, 2021 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jakub Kicinski

author maintainer Applied
#1 lore raw
Quoted 10 lines · On Thu, 28 Jan 2021 11:38:34 -0800 Ronak Doshi wrote:

buf_info structures in RX & TX queues are private driver data that do not need to be visible to the device. Although there is physical address and length in the queue descriptor that points to these structures, their layout is not standardized, and device never looks at them.

So lets allocate these structures in non-DMA-able memory, and fill physical address as all-ones and length as zero in the queue descriptor.

Quoted 6 lines

That should alleviate worries brought by Martin Radev in
https://lists.osuosl.org/pipermail/intel-wired-lan/Week-of-Mon-20210104/022829.html
that malicious vmxnet3 device could subvert SVM/TDX guarantees.

Applied, thanks!