[PATCH] hw/pvrdma: Protect against buggy or malicious guest driver

2023-02-27 Thread Yuval Shaia
Guest driver allocates and initialize page tables to be used as a ring of descriptors for CQ and async events. The page table that represents the ring, along with the number of pages in the page table is passed to the device. Currently our device supports only one page table for a ring. Let's make

Re: [PATCH] hw/pvrdma: Protect against buggy or malicious guest driver

2022-03-22 Thread Marcel Apfelbaum
Hi Yuval On Mon, Mar 21, 2022 at 2:11 PM Yuval Shaia wrote: > > Guest driver might execute HW commands when shared buffers are not yet > allocated. > This might happen on purpose (malicious guest) or because some other > guest/host address mapping. > We need to protect againts such case. > > Repo

[PATCH] hw/pvrdma: Protect against buggy or malicious guest driver

2022-03-21 Thread Yuval Shaia
Guest driver might execute HW commands when shared buffers are not yet allocated. This might happen on purpose (malicious guest) or because some other guest/host address mapping. We need to protect againts such case. Reported-by: Mauro Matteo Cascella Signed-off-by: Yuval Shaia --- hw/rdma/vmw/