<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/include/linux/virtio_config.h, branch v5.9.8</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v5.9.8</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v5.9.8'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2020-08-05T23:56:03Z</updated>
<entry>
<title>virtio_config: fix up warnings on parisc</title>
<updated>2020-08-05T23:56:03Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2020-08-05T23:55:50Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=c84f91e2622235bb742f9f20b8675cf095157026'/>
<id>urn:sha1:c84f91e2622235bb742f9f20b8675cf095157026</id>
<content type='text'>
Apparently, on parisc le16_to_cpu returns an int. virtio_cread_le
is very strict about type sizes so it causes a warning.
Fix it up by casting to the correct type.

Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Link: https://lore.kernel.org/r/20200805235550.1451637-1-mst@redhat.com
</content>
</entry>
<entry>
<title>virtio_config: drop LE option from config space</title>
<updated>2020-08-05T15:08:41Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2020-08-05T11:29:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=83eb9db95eb453f1db651909ad4598c3d44ef1e1'/>
<id>urn:sha1:83eb9db95eb453f1db651909ad4598c3d44ef1e1</id>
<content type='text'>
All drivers now use virtio_cread/write_le for LE config
space fields. Drop LE option from virtio_cread/write, only leaving
the option to access transitional fields.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio_config: add virtio_cread_le_feature</title>
<updated>2020-08-05T15:08:41Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2020-08-05T13:17:38Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=035ce4210be1257dd417785ff7818b5c0f2205fb'/>
<id>urn:sha1:035ce4210be1257dd417785ff7818b5c0f2205fb</id>
<content type='text'>
Mirrors virtio_cread_feature but for LE fields.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio_config: LE config space accessors</title>
<updated>2020-08-05T15:08:41Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2020-08-04T21:33:08Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e598960ff5e511b76a0eb8dff25207d35c2442c8'/>
<id>urn:sha1:e598960ff5e511b76a0eb8dff25207d35c2442c8</id>
<content type='text'>
To be used by modern code, as well as to handle LE only fields such as
balloon.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio_config: disallow native type fields (again)</title>
<updated>2020-08-05T15:08:41Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2020-07-10T11:55:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=14191c15ab9d87e60d2ebbfbf6df83d546152af1'/>
<id>urn:sha1:14191c15ab9d87e60d2ebbfbf6df83d546152af1</id>
<content type='text'>
_Generic version allowed __uXX types but that is no longer necessary:

Transitional devices should all use __virtioXX types (and __leXX for
fields not present in the legacy devices).
Modern ones should use __leXX.
_uXX type would be a bug.
Let's prevent that.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio_config: rewrite using _Generic</title>
<updated>2020-08-05T15:08:40Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2020-08-03T20:08:11Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a5b90f2db8e0ef6504695cbd36a65fd8296338ee'/>
<id>urn:sha1:a5b90f2db8e0ef6504695cbd36a65fd8296338ee</id>
<content type='text'>
Min compiler version has been raised, so that's ok now.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio_config: cread/write cleanup</title>
<updated>2020-08-05T15:08:40Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2020-07-30T20:12:40Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=cacaf775c699e9e8473491197587535f1c10ac8f'/>
<id>urn:sha1:cacaf775c699e9e8473491197587535f1c10ac8f</id>
<content type='text'>
Use vars of the correct type instead of casting.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio_config: disallow native type fields</title>
<updated>2020-08-05T15:08:40Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2020-07-10T11:55:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4a04cfb0eb5e00432f9ff978f2b81bd1736e85db'/>
<id>urn:sha1:4a04cfb0eb5e00432f9ff978f2b81bd1736e85db</id>
<content type='text'>
Transitional devices should all use __virtioXX types (and __leXX for
fields not present in legacy devices).
Modern ones should use __leXX.
_uXX type would be a bug.
Let's prevent that.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio: allow __virtioXX, __leXX in config space</title>
<updated>2020-08-05T13:30:19Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2020-07-10T07:20:21Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a4235ec06acf05c58081700cda02dcd480d9e9cb'/>
<id>urn:sha1:a4235ec06acf05c58081700cda02dcd480d9e9cb</id>
<content type='text'>
Currently all config space fields are of the type __uXX.
This confuses people and some drivers (notably vdpa)
access them using CPU endian-ness - which only
works well for legacy or LE platforms.

Update virtio_cread/virtio_cwrite macros to allow __virtioXX
and __leXX field types. Follow-up patches will convert
config space to use these types.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Acked-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio: virtio_has_iommu_quirk -&gt; virtio_has_dma_quirk</title>
<updated>2020-08-03T20:11:42Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2020-06-24T23:17:04Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=24b6842ade6925199e182988259761504aacfbc0'/>
<id>urn:sha1:24b6842ade6925199e182988259761504aacfbc0</id>
<content type='text'>
Now that the corresponding feature bit has been renamed,
rename the quirk too - it's about special ways to
do DMA, not necessarily about the IOMMU.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
</feed>
