The NetBSD Project

CVS log for src/sys/dev/pci/vio9p.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / pci

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.9 / (download) - annotate - [select for diffs], Wed Apr 20 22:08:10 2022 UTC (9 months, 2 weeks ago) by uwe
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

vio9p: avoid null pointer dereference on attach.

Pass "vqs" argument to virtio_child_attach_start().  The virtio API is
not quite clear to me here - there's also a separate setter
virtio_child_attach_set_vqs that performs some additional actions.

Queue setup for Virtio 1.0 accesses virtio_softc::sc_vqs and we didn't
set it.  QEMU exposes only the old virtio interface, so it doesn't
trigger the problem.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Apr 13 15:24:42 2022 UTC (9 months, 3 weeks ago) by uwe
Branch: MAIN
Changes since 1.7: +8 -3 lines
Diff to previous 1.7 (colored)

vio9p: Bump max tag len to match QEMU.

QEMU defines it to 32 but includes the final zero byte into the limit.
Our code counts the final zero byte separately, so adjust this define
appropriately.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Apr 13 15:08:52 2022 UTC (9 months, 3 weeks ago) by uwe
Branch: MAIN
Changes since 1.6: +5 -4 lines
Diff to previous 1.6 (colored)

vio9p: Properly negotiate MOUNT_TAG feature.

I _think_ that this is what is intended here.  The code used to
actually test for the presence of any random device independent
feature bits (the test would happen to succeed b/c of INDIRECT_DESC).

Revision 1.6 / (download) - annotate - [select for diffs], Wed Apr 13 13:50:37 2022 UTC (9 months, 3 weeks ago) by uwe
Branch: MAIN
Changes since 1.5: +9 -3 lines
Diff to previous 1.5 (colored)

vio9p: Add definition for the MOUNT_TAG feature bit.

From QEMU sources.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Mar 31 19:30:16 2022 UTC (10 months ago) by pgoyette
Branch: MAIN
Changes since 1.4: +5 -4 lines
Diff to previous 1.4 (colored)

For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence.  This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:

	devsw_attach()
	config_init_component() or config_cf*_attach()
	...
	config_fini_component() or config_cf*_detach()
	devsw_detach()

While here, add a few missing calls to some of the detach
routines.

Testing of these changes has been limited to:
	1. compile without build break
	2. no related test failures from atf
	3. modload/modunload work as well as
	   before.

No functional device testing done, since I don't have any
of these devices.  Let me know of any damage I might cause
here!

XXX Some of the modules affected by this commit are already
XXX broken;  see kern/56772.  This commit does not break
any additional modules (as far as I know).

Revision 1.4 / (download) - annotate - [select for diffs], Sun Sep 26 01:16:09 2021 UTC (16 months, 1 week ago) by thorpej
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.

This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.

NetBSD 9.99.89

Revision 1.1.10.2 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:49 2021 UTC (22 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.1.10.1: +11 -6 lines
Diff to previous 1.1.10.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jan 20 19:46:48 2021 UTC (2 years ago) by reinoud
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.2: +9 -4 lines
Diff to previous 1.2 (colored)

Add VirtIO PCI v1.0 attachments and fix the drivers affected.

The vioif, ld, scsi, viornd and viomb devices were adjusted when needed and
tested both in legacy 0.9 and v1.0 attachments trough PCI on amd64, sparc64,
aarch64 and aarch64-eb. ACPI/FDT attachments also tested on
aarch64/aarch64-eb.

Known issues

* viomb on aarch64 works only with ACPI/FDT attachment but not with PCI
  attachment. PCI and ACPI/FDT attachment works on aarch64-eb.

* virtio on sparc64 attaches but is it not functioning though not a
  regression.

Revision 1.1.10.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:35:01 2021 UTC (2 years, 1 month ago) by thorpej
Branch: thorpej-futex
Changes since 1.1: +5 -9 lines
Diff to previous 1.1 (colored)

Sync w/ HEAD.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Dec 18 02:55:32 2020 UTC (2 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.1: +5 -9 lines
Diff to previous 1.1 (colored)

Use sel{record,remove}_knote().

Revision 1.1.8.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:45 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.1.8.1: +643 -0 lines
Diff to previous 1.1.8.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.1.8.1, Mon Oct 28 02:56:40 2019 UTC (3 years, 3 months ago) by martin
Branch: phil-wifi
Changes since 1.1: +0 -643 lines
FILE REMOVED

file vio9p.c was added on branch phil-wifi on 2020-04-13 08:04:45 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 28 02:56:40 2019 UTC (3 years, 3 months ago) by ozaki-r
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex, phil-wifi

Implement a front-end driver of virtio-9p called vio9p

In conjunction with mount_9p, it enables a NetBSD system running as a VM guest
to mount an exported filesystem by the host via virtio-9p.  It exports a 9p
end-point of virtio-9p via a character device file for mount_9p.

Reviewed by yamaguchi@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>