OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

virtio-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [virtio-comment] Re: [virtio-dev] Re: [PATCH 0/5] virtio: introduce SUSPEND bit and vq state

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
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;
Â93 +ÂÂÂÂÂÂÂ le64 bitmap_addr;ÂÂÂÂÂÂÂ /* Read-Write */
Â94 +ÂÂÂÂÂÂÂ le64 bitmap_length;ÂÂÂÂÂ /* Read-Write */
Â95 +};
Â96 +\end{lstlisting}

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]