On 10/12/2023 10:38 PM, Michael S. Tsirkin wrote:
On Thu, Oct 12, 2023 at 06:49:51PM +0800, Zhu, Lingshan wrote:
For PCI based configuration, like MSI, we need to fetch from config space
anyway.
For others like dirty page, we can store the bitmap in host memory, and use
PASID for isolation.
Ok. So how a about a simple interface along the lines of
u64 cmd_address
u8 ready_flags:1
For this kind of stuff?
Yes, something like this, log dirty pages in host memory.
The is the draft, not finished yet.
84 +\begin{lstlisting}
85 +struct virtio_pci_dity_page_track {
86 + u8 enable; /* Read-Write */
87 + u8 gra_power; /* Read-Write */
88 + u8 reserved[2];
89 + le32 {
90 + pasid: 20; /* Read-Write */
91 + reserved: 12;
92 + };
93 + le64 bitmap_addr; /* Read-Write */
94 + le64 bitmap_length; /* Read-Write */
95 +};
96 +\end{lstlisting}
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-h...@lists.oasis-open.org