The NetBSD Project

CVS log for src/sys/arch/xen/xen/xennetback_xenbus.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / xen / xen

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.125 / (download) - annotate - [select for diffs], Sat Dec 30 21:46:52 2023 UTC (2 months, 4 weeks ago) by riastradh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.124: +3 -3 lines
Diff to previous 1.124 (colored) to selected 1.27 (colored)

xennetback_xenbus.c: Nix trailing whitespace again.

No functional change intended.

Revision 1.108.4.3 / (download) - annotate - [select for diffs], Fri Dec 22 13:48:59 2023 UTC (3 months ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2
Changes since 1.108.4.2: +28 -8 lines
Diff to previous 1.108.4.2 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by bouyer in ticket #514):

	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.124 (patch)

sanity check the fragments we get from the guest and reject the whole packet
if it fails. Make sure we don't KASSERT() on data we get from the frontend.

Revision 1.124 / (download) - annotate - [select for diffs], Fri Dec 22 10:22:00 2023 UTC (3 months ago) by bouyer
Branch: MAIN
Changes since 1.123: +28 -8 lines
Diff to previous 1.123 (colored) to selected 1.27 (colored)

sanity check the fragments we get from the guest and reject the whole packet
if it fails. Make sure we don't KASSERT() on data we get from the frontend.

Revision 1.123 / (download) - annotate - [select for diffs], Wed Aug 9 08:38:57 2023 UTC (7 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.122: +2 -4 lines
Diff to previous 1.122 (colored) to selected 1.27 (colored)

xvif(4): Omit needless membars in xennetback_connect.

xneti is a private data structure to which we have exclusive access
here; ordering the stores doesn't make sense.

Revision 1.122 / (download) - annotate - [select for diffs], Wed Aug 9 08:38:47 2023 UTC (7 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.121: +2 -4 lines
Diff to previous 1.121 (colored) to selected 1.27 (colored)

xvif(4): Omit needless membars in xennetback_rx_copy_process.

- No need for barrier around touching req_cons and rsp_prod_pvt,
  which are private.

- RING_PUSH_RESPONSES_AND_CHECK_NOTIFY updates the shared req_prod and
  then issues xen_mb, which is all that we need between the update of
  shared req_prod and hypervisor_notify_via_evtchn.

  (Between updating the shared req_prod and issuing
  hypervisor_notify_via_evtchn, only xen_wmb is needed.  But after
  writing to the shared req_prod, RING_PUSH_REQUESTS_AND_CHECK_NOTIFY
  must also read from the shared rsp_event, which requires the
  store-before-load ordering that only xen_mb provides.)

Revision 1.121 / (download) - annotate - [select for diffs], Wed Aug 9 08:38:37 2023 UTC (7 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.120: +3 -5 lines
Diff to previous 1.120 (colored) to selected 1.27 (colored)

xvif(4): Simplify while loop in xennetback_evthandler.

No functional change intended.

Revision 1.120 / (download) - annotate - [select for diffs], Wed Aug 9 08:38:27 2023 UTC (7 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.119: +2 -11 lines
Diff to previous 1.119 (colored) to selected 1.27 (colored)

xvif(4): Omit needless membars in xennetback_evthandler.

This should improve throughput without any impact on correctness.

Revision 1.119 / (download) - annotate - [select for diffs], Wed Aug 9 08:38:16 2023 UTC (7 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.118: +7 -12 lines
Diff to previous 1.118 (colored) to selected 1.27 (colored)

xvif(4): Move expensive xen_mb out of xennetback_evthandler loop.

Use the cheaper RING_HAS_UNCONFIRMED_REQUESTS for most of the loop.

This should improve throughput without any impact on correctness.

Revision 1.118 / (download) - annotate - [select for diffs], Wed Aug 9 08:38:05 2023 UTC (7 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.117: +8 -9 lines
Diff to previous 1.117 (colored) to selected 1.27 (colored)

xvif(4): Omit local variable aliasing xneti->xni_txring.req_cons.

No functional change intended.

Revision 1.117 / (download) - annotate - [select for diffs], Wed Aug 9 08:37:55 2023 UTC (7 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.116: +9 -2 lines
Diff to previous 1.116 (colored) to selected 1.27 (colored)

xvif(4): Add missing xen_rmb in xennetback_evthandler.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Aug 9 08:37:44 2023 UTC (7 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.115: +15 -2 lines
Diff to previous 1.115 (colored) to selected 1.27 (colored)

xvif(4): Comment on memory barriers in xennetback_evthandler.

Note which ones appear unnecessary and which ones appear too strong,
but don't change them.

No functional change intended.

Revision 1.108.4.2 / (download) - annotate - [select for diffs], Fri Aug 4 19:53:43 2023 UTC (7 months, 3 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC1
Changes since 1.108.4.1: +16 -14 lines
Diff to previous 1.108.4.1 (colored) to branchpoint 1.108 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by riastradh in ticket #312):

	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.113
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.114
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.115

Revert "xennetback(4): Omit needless membars in xennetback_connect."
PR kern/57560

Revert "xennetback(4): Fix membars in xennetback_rx_copy_process."
PR kern/57560

Revert "xennetback(4): Fix xennetback_evthandler loop."
PR kern/57560

Revision 1.115 / (download) - annotate - [select for diffs], Fri Aug 4 18:41:01 2023 UTC (7 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.114: +12 -13 lines
Diff to previous 1.114 (colored) to selected 1.27 (colored)

Revert "xennetback(4): Fix xennetback_evthandler loop."

PR kern/57560

Revision 1.114 / (download) - annotate - [select for diffs], Fri Aug 4 18:40:49 2023 UTC (7 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.113: +4 -3 lines
Diff to previous 1.113 (colored) to selected 1.27 (colored)

Revert "xennetback(4): Fix membars in xennetback_rx_copy_process."

PR kern/57560

Revision 1.113 / (download) - annotate - [select for diffs], Fri Aug 4 18:40:36 2023 UTC (7 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.112: +4 -2 lines
Diff to previous 1.112 (colored) to selected 1.27 (colored)

Revert "xennetback(4): Omit needless membars in xennetback_connect."

PR kern/57560

Revision 1.108.4.1 / (download) - annotate - [select for diffs], Mon Jul 31 15:23:02 2023 UTC (7 months, 4 weeks ago) by martin
Branch: netbsd-10
Changes since 1.108: +17 -19 lines
Diff to previous 1.108 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by riastradh in ticket #268):

	sys/arch/xen/xenbus/xenbus_comms.c: revision 1.25
	sys/arch/xen/xenbus/xenbus_comms.c: revision 1.26
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.110
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.111
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.112
	sys/arch/xen/x86/cpu.c: revision 1.144
	sys/arch/xen/x86/cpu.c: revision 1.145
	sys/arch/xen/include/hypervisor.h: revision 1.56
	sys/arch/xen/include/hypervisor.h: revision 1.57
	sys/arch/xen/xen/xbdback_xenbus.c: revision 1.102
	sys/arch/xen/xen/xbdback_xenbus.c: revision 1.103
	sys/arch/xen/include/xenring.h: revision 1.7
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.109
	sys/arch/xen/xen/xengnt.c: revision 1.40
	sys/arch/xen/xen/xengnt.c: revision 1.41
	sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.129
	sys/arch/xen/xen/xencons.c: revision 1.51
	sys/arch/xen/xen/xencons.c: revision 1.52
	sys/arch/xen/xen/xencons.c: revision 1.53
	sys/arch/xen/xen/xbd_xenbus.c: revision 1.130 (patch)
	sys/arch/xen/xen/xbd_xenbus.c: revision 1.131 (patch)

xen: Fix sense of xen_rmb/wmb to make sense.

Use membar_acquire and membar_release, not membar_consumer and
membar_producer, out of paranoia -- that better matches Linux's
rmb/wmb (at least for non-I/O loads and stores).

Proposed on port-xen:
https://mail-index.netbsd.org/port-xen/2022/07/13/msg010248.html

xen/x86/cpu.c: Membar audit.

I see no reason for store-before-load ordering here; as far as I'm
aware, evtchn_upcall_mask is only shared between a (v)CPU and its
(hypervisor) interrupts, not other (v)CPUs.

xennet(4): Membar audit.
- xennet_tx_complete: Other side owns rsp_prod, giving us responses
  to tx commands.  We own rsp_cons, recording which responess we've
  processed already.
  1. Other side initializes responses before advancing rsp_prod, so
     we must observe rsp_prod before trying to examine the responses.
     Hence load from rsp_prod must be followed by xen_rmb.
     (Can this just use atomic_load_acquire?)
  2. As soon as other side observes rsp_event, it may start to
     overwrite now-unused response slots, so we must finish using the
     response before advancing rsp_cons.  Hence we must issue xen_wmb
     before store to rsp_event.
     (Can this just use atomic_store_release?)
     (Should this use RING_FINAL_CHECK_FOR_RESPONSES?)
  3. When loop is done and we set rsp_event, we must ensure the other
     side has had a chance to see that we want more before we check
     whether there is more to consume; otherwise the other side might
     not bother to send us an interrupt.  Hence after setting
     rsp_event, we must issue xen_mb (store-before-load) before
     re-checking rsp_prod.
- xennet_handler (rx): Same deal, except the xen_mb is buried in
  RING_FINAL_CHECK_FOR_RESPONSES.  Unclear why xennet_tx_complete has
  this open-coded while xennet_handler (rx) uses the macro.

xbd(4): Membar audit.
After consuming slots, must issue xen_wmb before notifying the other
side that we've consumed them in RING_FINAL_CHECK_FOR_RESPONSES.
xbdback(4): Membar audit.

After consuming request slots, must issue xen_wmb notifying the other
side that we've consumed them in RING_FINAL_CHECK_FOR_REQUESTS.

xencons(4): Membar audit.
- xenconscn_getc: Once we have consumed an input slot, it is clearer
  to issue xen_wmb (release, i.e., load/store-before-store) before
  advancing in_cons so that the update becomes a store-release
  freeing the input slot for the other side to reuse.
- xenconscn_putc: After filling an output slot, must issue xen_wmb
  (release, i.e., load/store-before-store) before advancing out_prod,
  and another one before notifying the other side of the advance.

xencons(4): Reduce unnecessary membars.
- xencons_handler: After advancing in_cons, only need one xen_wmb
  before notifying the hypervisor that we're ready for more.
  (XXX Should this do xen_mb and re-check in_prod at that point, or
  does hypervisor_notify_via_evtchn obviate the need for this?)
- xenvonscn_getc: After reading in_prod, only need one xen_rmb before
  using the slots it is telling us are now ready.

xengnt(4): Membar audit.
This had the sense of membars reversed, presumably because xen_rmb
and xen_wmb had gotten reversed at some point.
xenbus_comms.c: Membar audit.

This had the sense of membars reversed, presumably because xen_rmb
and xen_wmb had gotten reversed at some point.

xennetback(4): Fix xennetback_evthandler loop.
- After observing the other side has produced pending tx requests by
  reading sring->req_prod, must issue xen_rmb before touching them.
  Despite all the effort to use the heavy-weight
  RING_FINAL_CHECK_FOR_REQUESTS on each request in the loop, this
  barrier was missing.
- No need to update req_cons at each iteration in the loop.  It's
  private.  Just update it once at the end.
- After consuming requests, must issue xen_wmb before releasing the
  slots with RING_FINAL_CHECK_FOR_REQUEST for the other side to
  reuse.

xennetback(4): Fix membars in xennetback_rx_copy_process.
- No need for barrier around touching req_cons and rsp_prod_pvt,
  which are private.
- RING_PUSH_RESPONSES_AND_CHECK_NOTIFY already issues xen_wmb, no
  need to add one explicitly.
- After pushing responses, must issue xen_wmb (not xen_rmb) before
  hypervisor_notify_via_evtchn.

xennetback(4): Omit needless membars in xennetback_connect.
xneti is a private data structure to which we have exclusive access
here; ordering the stores doesn't make sense.

xen/hypervisor.h: Nix trailing whitespace.
No functional change intended.

xen/x86/cpu.c: Nix trailing whitespace.
No functional change intended.

xbd(4): Nix trailing whitespace.

xbdback(4): Nix trailing whitespace.
No functional change intended.

xencons(4): Nix trailing whitespace.
No functional change intended.

xengnt(4): Nix trailing whitespace.
No functional change intended.

xenbus_comms.c: Nix trailing whitespace.
No functional change intended.

xennetback(4): Nix trailing whitespace.
No functional change intended.

Revision 1.112 / (download) - annotate - [select for diffs], Sat Feb 25 00:37:47 2023 UTC (13 months ago) by riastradh
Branch: MAIN
Changes since 1.111: +5 -5 lines
Diff to previous 1.111 (colored) to selected 1.27 (colored)

xennetback(4): Nix trailing whitespace.

No functional change intended.

Revision 1.111 / (download) - annotate - [select for diffs], Sat Feb 25 00:34:36 2023 UTC (13 months ago) by riastradh
Branch: MAIN
Changes since 1.110: +2 -4 lines
Diff to previous 1.110 (colored) to selected 1.27 (colored)

xennetback(4): Omit needless membars in xennetback_connect.

xneti is a private data structure to which we have exclusive access
here; ordering the stores doesn't make sense.

Revision 1.110 / (download) - annotate - [select for diffs], Sat Feb 25 00:34:25 2023 UTC (13 months ago) by riastradh
Branch: MAIN
Changes since 1.109: +3 -4 lines
Diff to previous 1.109 (colored) to selected 1.27 (colored)

xennetback(4): Fix membars in xennetback_rx_copy_process.

- No need for barrier around touching req_cons and rsp_prod_pvt,
  which are private.

- RING_PUSH_RESPONSES_AND_CHECK_NOTIFY already issues xen_wmb, no
  need to add one explicitly.

- After pushing responses, must issue xen_wmb (not xen_rmb) before
  hypervisor_notify_via_evtchn.

Revision 1.109 / (download) - annotate - [select for diffs], Sat Feb 25 00:34:13 2023 UTC (13 months ago) by riastradh
Branch: MAIN
Changes since 1.108: +13 -12 lines
Diff to previous 1.108 (colored) to selected 1.27 (colored)

xennetback(4): Fix xennetback_evthandler loop.

- After observing the other side has produced pending tx requests by
  reading sring->req_prod, must issue xen_rmb before touching them.

  Despite all the effort to use the heavy-weight
  RING_FINAL_CHECK_FOR_REQUESTS on each request in the loop, this
  barrier was missing.

- No need to update req_cons at each iteration in the loop.  It's
  private.  Just update it once at the end.

- After consuming requests, must issue xen_wmb before releasing the
  slots with RING_FINAL_CHECK_FOR_REQUEST for the other side to
  reuse.

XXX pullup-8 (requires patch; at least add xen_rmb between
    RING_FINAL_CHECK_FOR_REQUESTS and RING_COPY_REQUEST)
XXX pullup-9 (requires patch; at least add xen_rmb between
    RING_FINAL_CHECK_FOR_REQUESTS and RING_COPY_REQUEST)
XXX pullup-10

Revision 1.108 / (download) - annotate - [select for diffs], Fri Sep 2 23:48:10 2022 UTC (18 months, 3 weeks ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.107: +2 -3 lines
Diff to previous 1.107 (colored) to selected 1.27 (colored)

Remove unnecessary inclusion of <net/netisr.h>.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Sep 1 15:33:23 2022 UTC (18 months, 3 weeks ago) by bouyer
Branch: MAIN
Changes since 1.106: +19 -123 lines
Diff to previous 1.106 (colored) to selected 1.27 (colored)

in backend drivers, use xen_shm_(un)map for the rings instead of inline,
mostly duplicate code.

Revision 1.106 / (download) - annotate - [select for diffs], Thu Sep 1 12:29:00 2022 UTC (18 months, 3 weeks ago) by bouyer
Branch: MAIN
Changes since 1.105: +74 -14 lines
Diff to previous 1.105 (colored) to selected 1.27 (colored)

Add PVH support for backend drivers grant operation.
Now a domU in a PVH dom0 boots multiuser.

Revision 1.75.4.2 / (download) - annotate - [select for diffs], Wed Feb 24 08:05:08 2021 UTC (3 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.75.4.1: +12 -8 lines
Diff to previous 1.75.4.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.27 (colored)

Apply patch, requested by jdolecek in ticket 1213:

Do not panic Dom0 when hypervisor grant_table_op(GNTTABOP_copy) fails
in xennet(4) backend driver, that can be triggered by malicious or buggy
DomU via bad grant reference.

Part of fixes for XSA-362.

Revision 1.75.4.1 / (download) - annotate - [select for diffs], Tue Feb 23 18:50:21 2021 UTC (3 years, 1 month ago) by martin
Branch: netbsd-9
Changes since 1.75: +10 -357 lines
Diff to previous 1.75 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by jdolecek in ticket #1211):

	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.92 (via patch)

remove support for legacy rx-flip mode for xennet(4)/xvif(4), making
rx-copy (first shipped in NetBSD 6.0 in 2012) the only supported
mode

this is mostly to simplify maintenance and future development
rx-flip is not supported by Linux Dom0/DomU, and NetBSD Dom0/DomU
defaults to rx-copy for over 8 years now too, so there is little
need to keep the support for compatibility

besides compatibility there is no other reason to keep rx-flip -
page transfer is generally slower than copy due to necessary MMU/TLB
manipulation, especially on MP systems

Revision 1.105 / (download) - annotate - [select for diffs], Tue May 5 17:02:01 2020 UTC (3 years, 10 months ago) by bouyer
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-futex, 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.104: +5 -4 lines
Diff to previous 1.104 (colored) to selected 1.27 (colored)

Make DOM0OPS build for PVH/PVHVM too

Revision 1.104 / (download) - annotate - [select for diffs], Mon May 4 08:22:45 2020 UTC (3 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.103: +6 -8 lines
Diff to previous 1.103 (colored) to selected 1.27 (colored)

remove IPv4 csum offloading for xennet(4) - it's not complete, and even
if it was, it doesn't work with Linux Dom0 as it expects the IPv4 csum present

Revision 1.103 / (download) - annotate - [select for diffs], Sun May 3 17:56:19 2020 UTC (3 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.102: +200 -124 lines
Diff to previous 1.102 (colored) to selected 1.27 (colored)

add support for scatter-gather also for frontend Rx path (backend -> frontend)

enable ETHERCAP_JUMBO_MTU and feature-sg

Revision 1.102 / (download) - annotate - [select for diffs], Sat May 2 11:28:02 2020 UTC (3 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.101: +5 -2 lines
Diff to previous 1.101 (colored) to selected 1.27 (colored)

fix gref offset when setting up copy of multi-fragment packet so data
for second and further fragments gets copied into correct place

Revision 1.101 / (download) - annotate - [select for diffs], Fri May 1 19:59:47 2020 UTC (3 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.100: +11 -2 lines
Diff to previous 1.100 (colored) to selected 1.27 (colored)

destroy dma maps in xennetback_xenbus_destroy() to avoid memory leak
when xvif(4) is destroyed

Revision 1.100 / (download) - annotate - [select for diffs], Fri May 1 19:53:17 2020 UTC (3 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.99: +21 -5 lines
Diff to previous 1.99 (colored) to selected 1.27 (colored)

make the csum blank/undefer counters per interface

Revision 1.99 / (download) - annotate - [select for diffs], Thu Apr 30 11:23:44 2020 UTC (3 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.98: +275 -107 lines
Diff to previous 1.98 (colored) to selected 1.27 (colored)

add support for scatter-gather when accepting packets on frontend Tx path
(frontend -> backend)

don't enable ETHERCAP_JUMBO_MTU nor feature-sg yet, need to implement
support also for the frontend Rx side

Revision 1.98 / (download) - annotate - [select for diffs], Sun Apr 26 13:09:52 2020 UTC (3 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.97: +12 -2 lines
Diff to previous 1.97 (colored) to selected 1.27 (colored)

bump send queue to 2*NET_TX_RING_SIZE to make it less likely packets
are dropped on load

m_defrag() short packets before calling bus_dmamap_load_mbuf() -
if it's fragmented load_mbuf would fail anyway, and even with
eventual feature-sg support it's way faster to pass the short packet
in single fragment

Revision 1.97 / (download) - annotate - [select for diffs], Sat Apr 25 11:33:28 2020 UTC (3 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.96: +5 -44 lines
Diff to previous 1.96 (colored) to selected 1.27 (colored)

use m_defrag() instead of local code now that it returns single mbuf

Revision 1.94.2.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:01 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.94: +131 -140 lines
Diff to previous 1.94 (colored) next main 1.95 (colored) to selected 1.27 (colored)

Sync with HEAD

Revision 1.65.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:12 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.65.2.2: +143 -145 lines
Diff to previous 1.65.2.2 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored) to selected 1.27 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.96 / (download) - annotate - [select for diffs], Sat Apr 11 11:48:20 2020 UTC (3 years, 11 months ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.95: +132 -130 lines
Diff to previous 1.95 (colored) to selected 1.27 (colored)

convert to bus_dma(9), no explicit xpmap_*() calls any more

as part of this move some global arrays into struct xnetback_instance,
and fix race for xnetif_lookup()

Revision 1.95 / (download) - annotate - [select for diffs], Thu Apr 9 10:57:02 2020 UTC (3 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.94: +2 -13 lines
Diff to previous 1.94 (colored) to selected 1.27 (colored)

remove check for matching ethernet address on Tx - the higher levels do this
check anyway, and the check did not handle VLANs

Revision 1.65.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:59 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.65.2.1: +155 -524 lines
Diff to previous 1.65.2.1 (colored) to branchpoint 1.65 (colored) to selected 1.27 (colored)

Merge changes from current as of 20200406

Revision 1.94 / (download) - annotate - [select for diffs], Tue Apr 7 11:47:06 2020 UTC (3 years, 11 months ago) by jdolecek
Branch: MAIN
CVS Tags: bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Changes since 1.93: +8 -9 lines
Diff to previous 1.93 (colored) to selected 1.27 (colored)

change xenbus_read() interface so that caller supplies the buffer and it's
size, caller doesn't free(9) the returned value any more

Revision 1.93 / (download) - annotate - [select for diffs], Mon Apr 6 19:52:38 2020 UTC (3 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.92: +10 -2 lines
Diff to previous 1.92 (colored) to selected 1.27 (colored)

pass and use feature-ipv6-csum-offload for ipv6 csum support, matches
Linux Dom0/DomU

Revision 1.92 / (download) - annotate - [select for diffs], Sun Apr 5 17:26:46 2020 UTC (3 years, 11 months ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-20200406
Changes since 1.91: +9 -355 lines
Diff to previous 1.91 (colored) to selected 1.27 (colored)

remove support for legacy rx-flip mode for xennet(4)/xvif(4), making
rx-copy (first shipped in NetBSD 6.0 in 2012) the only supported
mode

this is mostly to simplify maintenance and future development

rx-flip is not supported by Linux Dom0/DomU, and NetBSD Dom0/DomU
defaults to rx-copy for over 8 years now too, so there is little
need to keep the support for compatibility

besides compatibility there is no other reason to keep rx-flip -
page transfer is generally slower than copy due to necessary MMU/TLB
manipulation, especially on MP systems

Revision 1.91 / (download) - annotate - [select for diffs], Sat Apr 4 14:45:37 2020 UTC (3 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.90: +7 -7 lines
Diff to previous 1.90 (colored) to selected 1.27 (colored)

enable Rx checkum offload (i.e. skip) for xen netback; it works well
as long as netfront in DomU is configured to fill the checksum

documentation will be updated to recommend how the flags should be setup
on each side of the xennet(4)/xvif(4) pair

Revision 1.90 / (download) - annotate - [select for diffs], Mon Mar 30 19:07:32 2020 UTC (3 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.89: +6 -8 lines
Diff to previous 1.89 (colored) to selected 1.27 (colored)

don't check for IFF_OACTIVE, nothing sets it

Revision 1.89 / (download) - annotate - [select for diffs], Mon Mar 30 15:31:52 2020 UTC (3 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.88: +98 -59 lines
Diff to previous 1.88 (colored) to selected 1.27 (colored)

batch the GNTTABOP_copy hypervisor calls in xvif(4) when processing
DomU requests in xennetback_evthandler()

some 25% speed increase observed over the single-copy version

Revision 1.88 / (download) - annotate - [select for diffs], Sun Mar 29 15:38:29 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
Changes since 1.87: +2 -25 lines
Diff to previous 1.87 (colored) to selected 1.27 (colored)

completely g/c the #if 0'ed xennetback_tx_free(), it's not used any more

Revision 1.87 / (download) - annotate - [select for diffs], Sun Mar 29 15:35:31 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
Changes since 1.86: +49 -66 lines
Diff to previous 1.86 (colored) to selected 1.27 (colored)

in xennetback_evthandler() just copy the DomU packet into destination
mbuf via hypervisor GNTTABOP_copy op instead of mapping the buffer into
Dom0 memory

no performance difference observed for now - it would probably make more
difference if Dom0 was MP, or when Dom0 is under VM pressure

this will eventually be updated to batch copy the DomU packets

Revision 1.86 / (download) - annotate - [select for diffs], Fri Mar 27 18:37:30 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
Changes since 1.85: +17 -34 lines
Diff to previous 1.85 (colored) to selected 1.27 (colored)

use standard deferred if_start framework instead of custom variant

Revision 1.85 / (download) - annotate - [select for diffs], Sun Mar 22 11:20:59 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
Changes since 1.84: +6 -6 lines
Diff to previous 1.84 (colored) to selected 1.27 (colored)

actually in data_validated case, there is no need to inspect the data for Rx,
simply set the supported csum offload flags to skip the software csum
verification

Revision 1.84 / (download) - annotate - [select for diffs], Sun Mar 22 00:11:02 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
Changes since 1.83: +11 -5 lines
Diff to previous 1.83 (colored) to selected 1.27 (colored)

add support for skipping IPv6 checksum validation aka offloading -
for xennet(4) both Rx and Tx, for xvif(4) only Tx for now

Revision 1.83 / (download) - annotate - [select for diffs], Sat Mar 21 23:25:53 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
Changes since 1.82: +9 -2 lines
Diff to previous 1.82 (colored) to selected 1.27 (colored)

need to retain csum_flags in xennetback_copymbuf() when creating
new mbuf for the COPY transmit path, so that later NETRXF_csum_blank
flag is set correctly when passing request over to DomU

fixes bad checksums in DomU when xvif(4) TX offload is enabled;
problem observed when testing new IPv6 offloading, but it should
affect also existing IPv4 offloading

Note: code in xennet(4) is unaffected, there code consults the original
mbuf, rather than the new_m one

Revision 1.82 / (download) - annotate - [select for diffs], Thu Mar 19 11:19:25 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
Changes since 1.81: +6 -5 lines
Diff to previous 1.81 (colored) to selected 1.27 (colored)

allow skipping IPv4 checksum on Tx

Revision 1.81 / (download) - annotate - [select for diffs], Wed Mar 18 19:26:15 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored) to selected 1.27 (colored)

for now disable Rx offloading for xvif(4) again, network stack requires
some changes to support deferred checksum

Revision 1.80 / (download) - annotate - [select for diffs], Wed Mar 18 19:23:13 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
Changes since 1.79: +7 -6 lines
Diff to previous 1.79 (colored) to selected 1.27 (colored)

use NET[RT]XF_data_validated flag to mark when Tx packet has valid
checksum; this is used to skip software checksum validation on
xennet Rx side when configured for Rx offloading

in Dom0 assume that checksum is valid when the Tx mbuf has no offload flags
- in that case either it's local packet where checksum has just been
computed in software, or forwarded external packet already
verified when received on Dom0

practical offshot of this is that DomU doesn't re-verify checksum of
packets forwarded from external hosts, e.g. via bridge(4)

Revision 1.79 / (download) - annotate - [select for diffs], Tue Mar 17 05:04:10 2020 UTC (4 years ago) by kre
Branch: MAIN
Changes since 1.78: +6 -2 lines
Diff to previous 1.78 (colored) to selected 1.27 (colored)


#if 0 the declaration and definition of xennetback_tx_free()

Since it is never otherwise referenced, this cannot make any
current operational difference, but should fix the build.
(-Werror=unused-function)

The added #if/#endif lines are /* XXX */ commented, so they will be
easy to remove when needed.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Mar 16 20:51:36 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored) to selected 1.27 (colored)

drop the disabled M_EXT_ROMAP mbuf code, convert xennet_checksum_fill()
to use in_undefer_cksum() instead of custom code to compute the checksum
for Rx packets, and set csum_data appropriately for eventual hw offloading

make it possible to skip the sw checksum computation by appropriate Rx
flag similarily as we do for Tx

XXX for now, the Rx flag is mostly for testing as it only works for
dom0<->domu, need some further network stack changes to arrange for
the checksum to be eventually computed when packets goes outside xen

Revision 1.77 / (download) - annotate - [select for diffs], Mon Mar 16 20:49:22 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
Changes since 1.76: +23 -45 lines
Diff to previous 1.76 (colored) to selected 1.27 (colored)

drop the disabled M_EXT_ROMAP mbuf code, and convert xennet_checksum_fill()
to use in_undefer_cksum() instead of custom code to compute the checksum
for incoming packets

make it possible to defer/skip the checksum computation by appropriate Rx
flag similarily as we do for Tx; with

Revision 1.75.6.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:18:34 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.75: +11 -11 lines
Diff to previous 1.75 (colored) next main 1.76 (colored) to selected 1.27 (colored)

Sync with head.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Jan 29 05:41:48 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Changes since 1.75: +11 -11 lines
Diff to previous 1.75 (colored) to selected 1.27 (colored)

Adopt <net/if_stats.h>.

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:56 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.65: +115 -95 lines
Diff to previous 1.65 (colored) to selected 1.27 (colored)

Sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Sat Mar 9 08:42:25 2019 UTC (5 years ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: netbsd-9, ad-namecache
Changes since 1.74: +5 -5 lines
Diff to previous 1.74 (colored) to selected 1.27 (colored)

Start replacing the x86 PTE bits.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Feb 5 06:17:02 2019 UTC (5 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.73: +3 -4 lines
Diff to previous 1.73 (colored) to selected 1.27 (colored)

 Remove very old IFF_NOTRAILERS flag.

Revision 1.61.2.6 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:46 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.61.2.5: +80 -58 lines
Diff to previous 1.61.2.5 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.27 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.73 / (download) - annotate - [select for diffs], Mon Dec 24 14:55:42 2018 UTC (5 years, 3 months ago) by cherry
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.72: +4 -4 lines
Diff to previous 1.72 (colored) to selected 1.27 (colored)

Bifurcate the interrupt establish functions between XEN and non-XEN

Thus intr_establish_xname() becomes xen_intr_establish_xname() etc.

One consequence of this is that dom0 devices expect the native
function calls to be available and we thus provide weak aliasing for
dom0 builds to succeed. XEN and non-XEN devices are distinguished by
the PIC they are established on. XEN interrupts are exclusively
established on xen_pic, while dom0 interrupts are established on
natively available PICs.

This allows us an orthogonal path to xen device management (eg:
xenstore events) in XENPVHVM, without having to worry about unifying
the vector entry paths, etc., which is quite challenging.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Dec 23 12:09:45 2018 UTC (5 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.71: +78 -56 lines
Diff to previous 1.71 (colored) to selected 1.27 (colored)

Cleanup the TX path:
- split in sub-functions
- ratelimit printf for mbuf allocation failure
- don't loop forever on mbuf allocation failure

Revision 1.61.2.5 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:28 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.61.2.4: +4 -4 lines
Diff to previous 1.61.2.4 (colored) to branchpoint 1.61 (colored) to selected 1.27 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.71 / (download) - annotate - [select for diffs], Fri Oct 26 05:33:21 2018 UTC (5 years, 5 months ago) by cherry
Branch: MAIN
CVS Tags: pgoyette-compat-1126
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.27 (colored)

Decompose hypervisor_enable_event() into functional steps.

The hypervisor_unmask_event() step is relevant for any event.

The pirq related step is only relevant for pirq bound events.

Prune blanket usage of this, so that usage is semantically appropriate.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Oct 24 03:59:33 2018 UTC (5 years, 5 months ago) by cherry
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) to selected 1.27 (colored)

When using the intr_establish_xname() interface to register
XEN events, follow established x86/intr.c conventions - set
the 'legacy' irq value to -1, to indicate that the pic, pin
combination (&xen_pic, port) is used for registration.

Revision 1.61.2.4 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:44 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.61.2.3: +34 -35 lines
Diff to previous 1.61.2.3 (colored) to branchpoint 1.61 (colored) to selected 1.27 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.69 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:29 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.68: +4 -4 lines
Diff to previous 1.68 (colored) to selected 1.27 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.58.8.3 / (download) - annotate - [select for diffs], Wed Aug 15 12:04:02 2018 UTC (5 years, 7 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.58.8.2: +5 -3 lines
Diff to previous 1.58.8.2 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by dolecek in ticket #973):

	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.68 (patch)

disestablish interrupt handler regardless of the state whenever it was
setup, i.e. also when the instance is DISCONNECTING already
fixes PR port-xen/53487 by Bert Kiers; fix found and reported by
Dennis Lindroos

XXX pullup netbsd-8

Revision 1.68 / (download) - annotate - [select for diffs], Sat Aug 11 10:34:25 2018 UTC (5 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.67: +3 -4 lines
Diff to previous 1.67 (colored) to selected 1.27 (colored)

disestablish interrupt handler regardless of the state whenever it was
setup, i.e. also when the instance is DISCONNECTING already

fixes PR port-xen/53487 by Bert Kiers; fix found and reported by
Dennis Lindroos

XXX pullup netbsd-8

Revision 1.67 / (download) - annotate - [select for diffs], Thu Aug 9 17:32:44 2018 UTC (5 years, 7 months ago) by maxv
Branch: MAIN
Changes since 1.66: +5 -15 lines
Diff to previous 1.66 (colored) to selected 1.27 (colored)

Use an independent pool, don't steal pages from mcl_cache. This was a bad
hack.

No particular functional change, since the (MCLBYTES != PAGE_SIZE)
condition is already true.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Aug 9 17:26:00 2018 UTC (5 years, 7 months ago) by maxv
Branch: MAIN
Changes since 1.65: +28 -18 lines
Diff to previous 1.65 (colored) to selected 1.27 (colored)

style a bit

Revision 1.61.2.3 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:43 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.61.2.2: +4 -4 lines
Diff to previous 1.61.2.2 (colored) to branchpoint 1.61 (colored) to selected 1.27 (colored)

Sync with HEAD

Revision 1.58.8.2 / (download) - annotate - [select for diffs], Thu Jul 26 23:55:29 2018 UTC (5 years, 8 months ago) by snj
Branch: netbsd-8
Changes since 1.58.8.1: +2 -3 lines
Diff to previous 1.58.8.1 (colored) to branchpoint 1.58 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #938):
	sys/arch/acorn32/podulebus/if_ie.c: revision 1.41
	sys/arch/amiga/dev/if_es.c: revision 1.58
	sys/arch/amiga/dev/if_qn.c: revision 1.45
	sys/arch/arm/at91/at91emac.c: revision 1.20
	sys/arch/arm/ep93xx/epe.c: revision 1.37
	sys/arch/emips/ebus/if_le_ebus.c: revision 1.14
	sys/arch/emips/ebus/if_le_ebus.c: revision 1.15
	sys/arch/mac68k/dev/if_mc.c: revision 1.46
	sys/arch/macppc/dev/am79c950.c: revision 1.39
	sys/arch/newsmips/apbus/if_sn.c: revision 1.40
	sys/arch/next68k/dev/mb8795.c: revision 1.59
	sys/arch/playstation2/dev/if_smap.c: revision 1.25
	sys/arch/playstation2/dev/if_smap.c: revision 1.26
	sys/arch/sun2/dev/if_ec.c: revision 1.28
	sys/arch/sun3/dev/if_ie.c: revision 1.63
	sys/arch/x68k/dev/if_ne_intio.c: revision 1.19
	sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.75
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.63
	sys/dev/bi/if_ni.c: revision 1.45
	sys/dev/cadence/if_cemac.c: revision 1.12
	sys/dev/ic/am7990.c: revision 1.78
	sys/dev/ic/am79900.c: revision 1.27
	sys/dev/ic/an.c: revision 1.67
	sys/dev/ic/cs89x0.c: revision 1.40
	sys/dev/ic/dm9000.c: revision 1.13
	sys/dev/ic/dm9000.c: revision 1.14
	sys/dev/ic/dp8390.c: revision 1.88
	sys/dev/ic/elink3.c: revision 1.141
	sys/dev/ic/elinkxl.c: revision 1.122
	sys/dev/ic/hme.c: revision 1.98
	sys/dev/ic/i82586.c: revision 1.77
	sys/dev/ic/lance.c: revision 1.53
	sys/dev/ic/mb86950.c: revision 1.27
	sys/dev/ic/mb86960.c: revision 1.86
	sys/dev/ic/mtd803.c: revision 1.34
	sys/dev/ic/pdq_ifsubr.c: revision 1.59
	sys/dev/ic/rrunner.c: revision 1.86
	sys/dev/ic/seeq8005.c: revision 1.58
	sys/dev/ic/sgec.c: revision 1.47
	sys/dev/ic/smc90cx6.c: revision 1.72
	sys/dev/ic/smc91cxx.c: revision 1.96
	sys/dev/ic/tropic.c: revision 1.49
	sys/dev/ic/wi.c: revision 1.245
	sys/dev/isa/if_eg.c: revision 1.93
	sys/dev/isa/if_el.c: revision 1.95
	sys/dev/isa/if_iy.c: revision 1.101
	sys/dev/ofw/ofnet.c: revision 1.58
	sys/dev/pci/if_alc.c: revision 1.27
	sys/dev/pci/if_de.c: revision 1.152
	sys/dev/pci/if_fpa.c: revision 1.61
	sys/dev/pci/if_jme.c: revision 1.34
	sys/dev/pci/if_tl.c: revision 1.108
	sys/dev/pci/if_vte.c: revision 1.19
	sys/dev/pci/ixgbe/ixgbe.h: revision 1.50
	sys/dev/pcmcia/if_cnw.c: revision 1.62
	sys/dev/pcmcia/if_malo_pcmcia.c: revision 1.17
	sys/dev/pcmcia/if_ray.c: revision 1.89
	sys/dev/pcmcia/if_xi.c: revision 1.81
	sys/dev/pcmcia/mhzc.c: revision 1.51
	sys/dev/pcmcia/xirc.c: revision 1.34
	sys/dev/qbus/if_de.c: revision 1.33
	sys/dev/qbus/if_qe.c: revision 1.78
	sys/dev/qbus/if_qt.c: revision 1.22
	sys/dev/sbus/be.c: revision 1.87
	sys/dev/sbus/qe.c: revision 1.68
	sys/dev/scsipi/if_se.c: revision 1.96
	sys/dev/usb/if_atu.c: revision 1.59
	sys/net/if_l2tp.c: revision 1.28 via patch
	sys/net/if_ppp.c: revision 1.160
It's not required to include net/bpfdesc.h. Remove it.
--
Simplify like other drivers. NULL check of ifp->if_bpf is done in
bpf_mtap(), so it's not required to do it here.
--
Remove duplicated inclusion of net/bpf.h.
--
Remove duplicated inclusion of net/bpf.h.
--
Simplify bpf_mtap() call. No functional change.

Revision 1.58.8.1 / (download) - annotate - [select for diffs], Sun Jul 15 10:54:03 2018 UTC (5 years, 8 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE
Changes since 1.58: +48 -32 lines
Diff to previous 1.58 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by jdolecek in ticket #909):

	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.64 (patch)

Fix panic of DOM0 in xennetback_xenbus_destroy() on xl destroy of
DOMU with created, but non CONNECTED xennet (such as when DOMU
panics during boot); only try to disestablish the intr if it was
actually setup.

While here protect xnetback_instances with mutex, and switch to use
kmem_zalloc() + KM_SLEEP / kmem_free() like xbdback_xenbus.c; add XXXSMP
to the other global variables, and at least mark them static

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:00 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728
Branch point for: phil-wifi
Changes since 1.64: +4 -4 lines
Diff to previous 1.64 (colored) to selected 1.27 (colored)

 Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

 This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.

Revision 1.61.2.2 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:48 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.61.2.1: +49 -33 lines
Diff to previous 1.61.2.1 (colored) to branchpoint 1.61 (colored) to selected 1.27 (colored)

Sync with HEAD

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jun 24 19:53:50 2018 UTC (5 years, 9 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-compat-0625
Changes since 1.63: +49 -32 lines
Diff to previous 1.63 (colored) to selected 1.27 (colored)

fix panic of DOM0 in xennetback_xenbus_destroy() on xl destroy of
DOMU with created, but non CONNECTED xennet (such as when DOMU
panics during boot); only try to disestablish the intr if it was
actually setup

while here protect xnetback_instances with mutex, and switch to use
kmem_zalloc() + KM_SLEEP / kmem_free() like xbdback_xenbus.c; add XXXSMP
to the other global variables, and at least mark them static

Revision 1.63 / (download) - annotate - [select for diffs], Fri Jun 22 04:17:41 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.62: +2 -3 lines
Diff to previous 1.62 (colored) to selected 1.27 (colored)

 It's not required to include net/bpfdesc.h. Remove it.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Wed May 2 07:20:06 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored) to selected 1.27 (colored)

Synch with HEAD

Revision 1.62 / (download) - annotate - [select for diffs], Fri Apr 27 07:53:07 2018 UTC (5 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0521, pgoyette-compat-0502
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored) to selected 1.27 (colored)

M_CLUSTER -> M_EXT_CLUSTER

Revision 1.50.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:51 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.50.2.2: +79 -67 lines
Diff to previous 1.50.2.2 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored) to selected 1.27 (colored)

update from HEAD

Revision 1.61 / (download) - annotate - [select for diffs], Sat Nov 11 21:03:01 2017 UTC (6 years, 4 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.60: +5 -4 lines
Diff to previous 1.60 (colored) to selected 1.27 (colored)

Restore MP-safety annotations in intr_establish_xname.

In the old API, event_set_handler would assume MP-unsafe for IPL_VM
and MP-safe for all other levels (IPL_SCHED, IPL_HIGH).  The recent
Xen interrupt rototill started passing known_mpsafe=true for _all_
interrupt handlers.  Change it to known_mpsafe=false for the IPL_VM
(= IPL_CLOCK, IPL_NET) ones.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Nov 6 15:27:09 2017 UTC (6 years, 4 months ago) by cherry
Branch: MAIN
Changes since 1.59: +9 -6 lines
Diff to previous 1.59 (colored) to selected 1.27 (colored)

Switch XEN drivers to use intr_establish_xname()/intr_disestablish()

This completes the API transition.

Revision 1.52.4.2 / (download) - annotate - [select for diffs], Sun Sep 24 20:05:03 2017 UTC (6 years, 6 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.52.4.1: +27 -16 lines
Diff to previous 1.52.4.1 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by manu in ticket #1409):
	sys/arch/xen/xen/if_xennet_xenbus.c: 1.65
	sys/arch/xen/xen/xennetback_xenbus.c: 1.53, 1.56 via patch
	sys/net/if_bridge.c: 1.105
	sys/net/if_ether.h: 1.65
	sys/net/if_ethersubr.c: 1.215, 1.235
	sys/net/if_vlan.c: 1.76, 1.77, 1.83, 1.88, 1.94
Protect vlan_unconfig with a mutex
It is not thread-safe but is likely to be executed in concurrent.
See PR 49264 for more detail.
--
Tweak vlan_unconfig
No functional change.
--
Add handling of VLAN packets in if_bridge where the parent interface supports
them (Jean-Jacques.Puig%espci.fr@localhost). Factor out the vlan_mtu enabling and
disabling code.
--
Enable the VLAN mtu capability and check for the adjusted packet size
(Jean-Jacques.Puig at espci.fr).
Factor out the packet-size checking function for clarity.
--
Don't increment the reference count only when it was 0...
From Jean-Jacques.Puig
--
Account for the CRC len (Jean-Jacques.Puig)
--
Fix a bug that the parent interface's callback wasn't called when the vlan
interface is configured. A callback function uses VLAN_ATTACHED() function
which check ec->ec_nvlans, the value should be incremented before calling the
callback. This bug was added in if_vlan.c rev. 1.83 (2015/11/19).

Revision 1.59 / (download) - annotate - [select for diffs], Wed Aug 30 16:01:55 2017 UTC (6 years, 6 months ago) by maxv
Branch: MAIN
Changes since 1.58: +10 -14 lines
Diff to previous 1.58 (colored) to selected 1.27 (colored)

Make these pages non-executable, and style.

Revision 1.52.6.5 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:24 2017 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.52.6.4: +2 -4 lines
Diff to previous 1.52.6.4 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.27 (colored)

Sync with HEAD

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:29 2017 UTC (7 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.57: +2 -4 lines
Diff to previous 1.57 (colored) next main 1.58 (colored) to selected 1.27 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.58 / (download) - annotate - [select for diffs], Thu Dec 15 09:28:04 2016 UTC (7 years, 3 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.57: +2 -4 lines
Diff to previous 1.57 (colored) to selected 1.27 (colored)

Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input

The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
  - Where/When if_ipackets is counted up
  - Note that some drivers still update packet statistics in their own
    way (periodical update)
- Moved bpf_mtap run in softint
  - This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net

Revision 1.52.6.4 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:00 2016 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.52.6.3: +3 -3 lines
Diff to previous 1.52.6.3 (colored) to branchpoint 1.52 (colored) to selected 1.27 (colored)

Sync with HEAD

Revision 1.57 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:13 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored) to selected 1.27 (colored)

Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.

Revision 1.52.6.3 / (download) - annotate - [select for diffs], Sun May 29 08:44:20 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.52.6.2: +5 -4 lines
Diff to previous 1.52.6.2 (colored) to branchpoint 1.52 (colored) to selected 1.27 (colored)

Sync with HEAD

Revision 1.56 / (download) - annotate - [select for diffs], Mon May 9 15:11:35 2016 UTC (7 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.55: +5 -4 lines
Diff to previous 1.55 (colored) to selected 1.27 (colored)

Account for the CRC len (Jean-Jacques.Puig)

Revision 1.52.6.2 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:07 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.52.6.1: +40 -38 lines
Diff to previous 1.52.6.1 (colored) to branchpoint 1.52 (colored) to selected 1.27 (colored)

Sync with HEAD

Revision 1.55 / (download) - annotate - [select for diffs], Tue Feb 9 08:32:10 2016 UTC (8 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.27 (colored)

Introduce softint-based if_input

This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!

Revision 1.47.8.1 / (download) - annotate - [select for diffs], Fri Jan 8 21:26:15 2016 UTC (8 years, 2 months ago) by snj
Branch: netbsd-6
Changes since 1.47: +42 -40 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1358):
	sys/arch/xen/include/xen-public/io/ring.h: revision 1.3 via patch
	sys/arch/xen/xen/pciback.c: revision 1.10 via patch
	sys/arch/xen/xen/xbdback_xenbus.c: revision 1.62 via patch
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.54 via patch
Apply patch from xsa155: make sure that the backend won't read parts of the
request again (possibly because of compiler optimisations), by using
copies and barrier.
From XSA155:
The compiler can emit optimizations in the PV backend drivers which
can lead to double fetch vulnerabilities. Specifically the shared
memory between the frontend and backend can be fetched twice (during
which time the frontend can alter the contents) possibly leading to
arbitrary code execution in backend.

Revision 1.47.14.1 / (download) - annotate - [select for diffs], Fri Jan 8 21:25:28 2016 UTC (8 years, 2 months ago) by snj
Branch: netbsd-6-1
Changes since 1.47: +42 -40 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1358):
	sys/arch/xen/include/xen-public/io/ring.h: revision 1.3 via patch
	sys/arch/xen/xen/pciback.c: revision 1.10 via patch
	sys/arch/xen/xen/xbdback_xenbus.c: revision 1.62 via patch
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.54 via patch
Apply patch from xsa155: make sure that the backend won't read parts of the
request again (possibly because of compiler optimisations), by using
copies and barrier.
From XSA155:
The compiler can emit optimizations in the PV backend drivers which
can lead to double fetch vulnerabilities. Specifically the shared
memory between the frontend and backend can be fetched twice (during
which time the frontend can alter the contents) possibly leading to
arbitrary code execution in backend.

Revision 1.47.12.1 / (download) - annotate - [select for diffs], Fri Jan 8 21:24:37 2016 UTC (8 years, 2 months ago) by snj
Branch: netbsd-6-0
Changes since 1.47: +42 -40 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1358):
	sys/arch/xen/include/xen-public/io/ring.h: revision 1.3 via patch
	sys/arch/xen/xen/pciback.c: revision 1.10 via patch
	sys/arch/xen/xen/xbdback_xenbus.c: revision 1.62 via patch
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.54 via patch
Apply patch from xsa155: make sure that the backend won't read parts of the
request again (possibly because of compiler optimisations), by using
copies and barrier.
From XSA155:
The compiler can emit optimizations in the PV backend drivers which
can lead to double fetch vulnerabilities. Specifically the shared
memory between the frontend and backend can be fetched twice (during
which time the frontend can alter the contents) possibly leading to
arbitrary code execution in backend.

Revision 1.52.8.1 / (download) - annotate - [select for diffs], Fri Jan 8 21:06:07 2016 UTC (8 years, 2 months ago) by snj
Branch: netbsd-7-0
CVS Tags: netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Changes since 1.52: +42 -40 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1071):
	sys/arch/xen/include/xen-public/io/ring.h: revision 1.3 via patch
	sys/arch/xen/xen/pciback.c: revision 1.10 via patch
	sys/arch/xen/xen/xbdback_xenbus.c: revision 1.62 via patch
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.54 via patch
Apply patch from xsa155: make sure that the backend won't read parts of the
request again (possibly because of compiler optimisations), by using
copies and barrier.
From XSA155:
The compiler can emit optimizations in the PV backend drivers which
can lead to double fetch vulnerabilities. Specifically the shared
memory between the frontend and backend can be fetched twice (during
which time the frontend can alter the contents) possibly leading to
arbitrary code execution in backend.

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Fri Jan 8 21:05:14 2016 UTC (8 years, 2 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.52: +42 -40 lines
Diff to previous 1.52 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1071):
	sys/arch/xen/include/xen-public/io/ring.h: revision 1.3 via patch
	sys/arch/xen/xen/pciback.c: revision 1.10 via patch
	sys/arch/xen/xen/xbdback_xenbus.c: revision 1.62 via patch
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.54 via patch
Apply patch from xsa155: make sure that the backend won't read parts of the
request again (possibly because of compiler optimisations), by using
copies and barrier.
From XSA155:
The compiler can emit optimizations in the PV backend drivers which
can lead to double fetch vulnerabilities. Specifically the shared
memory between the frontend and backend can be fetched twice (during
which time the frontend can alter the contents) possibly leading to
arbitrary code execution in backend.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Jan 6 15:28:40 2016 UTC (8 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.53: +39 -37 lines
Diff to previous 1.53 (colored) to selected 1.27 (colored)

Apply patch from xsa155: make sure that the backend won't read parts of the
request again (possibly because of compiler optimisations), by using
copies and barrier.
From XSA155:
The compiler can emit optimizations in the PV backend drivers which
can lead to double fetch vulnerabilities. Specifically the shared
memory between the frontend and backend can be fetched twice (during
which time the frontend can alter the contents) possibly leading to
arbitrary code execution in backend.

Revision 1.52.6.1 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:45 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.52: +27 -16 lines
Diff to previous 1.52 (colored) to selected 1.27 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.53 / (download) - annotate - [select for diffs], Thu Nov 19 17:01:40 2015 UTC (8 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226
Changes since 1.52: +27 -16 lines
Diff to previous 1.52 (colored) to selected 1.27 (colored)

Enable the VLAN mtu capability and check for the adjusted packet size
(Jean-Jacques.Puig at espci.fr).
Factor out the packet-size checking function for clarity.

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:30 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.50.2.1: +1 -0 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored) to selected 1.27 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:14 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.47.2.1: +4 -3 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.27 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.51.6.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:30 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.51: +3 -2 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.27 (colored)

sync with head

Revision 1.52 / (download) - annotate - [select for diffs], Sun Oct 20 11:37:53 2013 UTC (10 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1
Branch point for: nick-nhusb, netbsd-7-0, netbsd-7
Changes since 1.51: +3 -2 lines
Diff to previous 1.51 (colored) to selected 1.27 (colored)

Fix memory leak if the provided mac address isn't valid.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:14 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.27 (colored)

resync from head

Revision 1.51 / (download) - annotate - [select for diffs], Wed Mar 6 11:37:23 2013 UTC (11 years ago) by yamt
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.27 (colored)

fix debug print

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:20:37 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.47: +5 -7 lines
Diff to previous 1.47 (colored) to selected 1.27 (colored)

sync with head

Revision 1.50 / (download) - annotate - [select for diffs], Sat Jun 30 23:36:20 2012 UTC (11 years, 9 months ago) by jym
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored) to selected 1.27 (colored)

Use setter to set xenguest_handles.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Jun 30 22:50:37 2012 UTC (11 years, 9 months ago) by jym
Branch: MAIN
Changes since 1.48: +3 -4 lines
Diff to previous 1.48 (colored) to selected 1.27 (colored)

Extend the xpmap API, as described in [1]. This change is mechanical and
avoids exposing the MD phys_to_machine/machine_to_phys tables directly.
Added:

- xpmap_ptom handles PFN (pseudo physical) to MFN (machine frame number)
translations, and is under control of the domain.
- xpmap_mtop is its counterpart (MFN to PFN), and is under control of
hypervisor.

xpmap_ptom_map()      map a pseudo-phys address to a machine address
xpmap_ptom_unmap()    unmap a pseudo-phys address (invalidation)
xpmap_ptom_isvalid()  check for pseudo-phys address validity

The parameters are physical/machine addresses, like bus_dma/bus_space(9).
As x86 MFNs are tracked by u_long (Xen's choice) while machine addresses
can be 64 bits entities (PAE), use ptoa() to avoid truncation when bit
shifting by PAGE_SHIFT.

I kept the same namespace (xpmap_) to avoid code churn.

[1] http://mail-index.netbsd.org/port-xen/2009/05/09/msg004951.html

XXX will document ptoa/atop/trunc_page separately.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Jun 27 00:37:10 2012 UTC (11 years, 9 months ago) by jym
Branch: MAIN
Changes since 1.47: +5 -6 lines
Diff to previous 1.47 (colored) to selected 1.27 (colored)

Retire XEN_COMPAT_030001 as detailed on port-xen@:

http://mail-index.netbsd.org/port-xen/2012/06/25/msg007431.html

The xen_p2m API comes next.

ok bouyer@.
Tested on i386 PAE and amd64 (Xen 3.3 on private test bed, and
Xen 3.4 for Amazon EC2).

FWIW, Amazon always reported:

hypervisor0 at mainbus0: Xen version 3.4.3-kaos_t1micro

multiple times for Europe and US West-1, so I guess they are now at
3.4 (32 and 64 bits).

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Tue Sep 20 18:57:54 2011 UTC (12 years, 6 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.46.2.1: +2 -4 lines
Diff to previous 1.46.2.1 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored) to selected 1.27 (colored)

Remove the "xpq lock", since we have per-cpu mmu queues now. This may need further testing. Also add some preliminary locking around queue-ops in the network backend driver

Revision 1.47 / (download) - annotate - [select for diffs], Sun Aug 28 22:36:17 2011 UTC (12 years, 7 months ago) by jym
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6-1, netbsd-6-0, netbsd-6
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored) to selected 1.27 (colored)

KNF, white spaces and comment typo fixes.

Revision 1.27.2.9 / (download) - annotate - [select for diffs], Sat Aug 27 15:37:33 2011 UTC (12 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27.2.8: +3 -3 lines
Diff to previous 1.27.2.8 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored) to selected 1.27 (colored)

Sync with HEAD. Most notably: uvm/pmap work done by rmind@, and MP Xen
work of cherry@.

No regression observed on suspend/restore.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Sun Aug 21 11:24:10 2011 UTC (12 years, 7 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.46: +4 -2 lines
Diff to previous 1.46 (colored) to selected 1.27 (colored)

add locking around mmu flush xpq ops

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:07:12 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.37: +188 -127 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.33.4.4 / (download) - annotate - [select for diffs], Tue May 31 03:04:25 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33.4.3: +169 -135 lines
Diff to previous 1.33.4.3 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.27 (colored)

sync with head

Revision 1.46 / (download) - annotate - [select for diffs], Mon May 30 14:34:58 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) to selected 1.27 (colored)

Use format string for the device name

Revision 1.24.4.4 / (download) - annotate - [select for diffs], Thu May 19 21:13:07 2011 UTC (12 years, 10 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.24.4.3: +3 -1 lines
Diff to previous 1.24.4.3 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by jym in ticket #1609):
	sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.50
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.43
Check that xvif(4) is not already connected before proceeding in the
XenbusStateConnected mode. Under rare occasions, the xenbus watcher
can fire multiple times, overwriting the I/O ring memory mappings with
invalid values. This will lead sooner or later to dom0 panic().
Will ask for pullup. FWIW, xbdback(4) is not affected.
Check status before proceeding further. Avoids spurious watch calls.

Revision 1.27.2.8 / (download) - annotate - [select for diffs], Mon May 2 22:49:59 2011 UTC (12 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27.2.7: +172 -117 lines
Diff to previous 1.27.2.7 (colored) to branchpoint 1.27 (colored) to selected 1.27 (colored)

Sync with head.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Apr 29 22:58:46 2011 UTC (12 years, 11 months ago) by jym
Branch: MAIN
Changes since 1.44: +166 -139 lines
Diff to previous 1.44 (colored) to selected 1.27 (colored)

Move the connection code of xbdback(4) and xvif(4) backends in separate
functions. The frontend watch function is easier to read, and mixing
switch() with goto's error paths is rather error-prone.

While here, sprinkle some aprint_*.

Tested under amd64 dom0 with i386 PAE and amd64 domUs.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Apr 25 00:22:37 2011 UTC (12 years, 11 months ago) by jym
Branch: MAIN
Changes since 1.43: +4 -1 lines
Diff to previous 1.43 (colored) to selected 1.27 (colored)

use __KERNEL_RCSID()

Revision 1.43 / (download) - annotate - [select for diffs], Mon Apr 25 00:14:06 2011 UTC (12 years, 11 months ago) by jym
Branch: MAIN
Changes since 1.42: +3 -1 lines
Diff to previous 1.42 (colored) to selected 1.27 (colored)

Check that xvif(4) is not already connected before proceeding in the
XenbusStateConnected mode. Under rare occasions, the xenbus watcher
can fire multiple times, overwriting the I/O ring memory mappings with
invalid values. This will lead sooner or later to dom0 panic().

Will ask for pullup. FWIW, xbdback(4) is not affected.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Apr 21 13:06:20 2011 UTC (12 years, 11 months ago) by jym
Branch: MAIN
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (colored) to selected 1.27 (colored)

Disestablish softint in the error path.

Revision 1.33.4.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:35 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33.4.2: +23 -2 lines
Diff to previous 1.33.4.2 (colored) to branchpoint 1.33 (colored) to selected 1.27 (colored)

sync with head

Revision 1.41 / (download) - annotate - [select for diffs], Wed Apr 20 20:32:38 2011 UTC (12 years, 11 months ago) by jym
Branch: MAIN
Changes since 1.40: +23 -2 lines
Diff to previous 1.40 (colored) to selected 1.27 (colored)

Unmap rings before freeing their associated VAs, or we will get a
non-recoverable fault in the error path.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Apr 6 23:51:55 2011 UTC (12 years, 11 months ago) by jym
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) to selected 1.27 (colored)

Alright, set xvif(4) syntax once and for all. Tested with ipf(4) under
XEN3_DOM0 amd64.

Fixes PR misc/39376.

See http://mail-index.netbsd.org/port-xen/2011/04/06/msg006603.html

Revision 1.39 / (download) - annotate - [select for diffs], Sun Apr 3 23:21:37 2011 UTC (12 years, 11 months ago) by jym
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.27 (colored)

Now that pkgsrc-2011Q1 has arrived, and before -6 chimes in, change
ifxname for xvif(4) from xvif%d.%d to xvif%d-%d. This is needed
to avoid sysctl(9) EINVAL errors when creating interface nodes.

See http://mail-index.netbsd.org/port-xen/2011/01/11/msg006405.html

Revision 1.27.2.7 / (download) - annotate - [select for diffs], Mon Mar 28 23:04:57 2011 UTC (13 years ago) by jym
Branch: jym-xensuspend
Changes since 1.27.2.6: +23 -10 lines
Diff to previous 1.27.2.6 (colored) to branchpoint 1.27 (colored) to selected 1.27 (colored)

Sync with HEAD. TODO before merge:
- shortcut for suspend code in sysmon, when powerd(8) is not running.
Borrow ``xs_watch'' thread context?
- bug hunting in xbd + xennet resume. Rings are currently thrashed upon
resume, so current implementation force flush them on suspend. It's not
really needed.

Revision 1.33.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:52:35 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33.4.1: +28 -15 lines
Diff to previous 1.33.4.1 (colored) to branchpoint 1.33 (colored) to selected 1.27 (colored)

sync with head

Revision 1.38 / (download) - annotate - [select for diffs], Tue Jan 18 21:34:31 2011 UTC (13 years, 2 months ago) by jym
Branch: MAIN
CVS Tags: uebayasi-xip-base7, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.37: +16 -10 lines
Diff to previous 1.37 (colored) to selected 1.27 (colored)

Fix bad pasto cooking: xennet backend is not xbdback: use
aprint_error_ifnet() with the proper ifnet device for error messages.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Jan 11 23:22:19 2011 UTC (13 years, 2 months ago) by jym
Branch: MAIN
CVS Tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr
Changes since 1.36: +8 -1 lines
Diff to previous 1.36 (colored) to selected 1.27 (colored)

Introduce "vifname" keys for Xen domains. Its value is the interface
name for the vif, e.g. xvif(4) for dom0, and xennet(4) for domU.

ok bouyer@.

See http://mail-index.netbsd.org/port-xen/2011/01/11/msg006405.html

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jan 11 01:21:32 2011 UTC (13 years, 2 months ago) by jym
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.27 (colored)

Typo fix.

Revision 1.27.2.6 / (download) - annotate - [select for diffs], Mon Jan 10 00:37:39 2011 UTC (13 years, 2 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27.2.5: +6 -6 lines
Diff to previous 1.27.2.5 (colored) to branchpoint 1.27 (colored) to selected 1.27 (colored)

Sync with HEAD

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jan 8 05:23:19 2011 UTC (13 years, 2 months ago) by jym
Branch: MAIN
Changes since 1.34: +6 -6 lines
Diff to previous 1.34 (colored) to selected 1.27 (colored)

Move if_xname setting earlier for xvif creation, so we can grab domid
and handle values sooner for error cases.

Revision 1.27.2.5 / (download) - annotate - [select for diffs], Sun Oct 24 22:48:23 2010 UTC (13 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27.2.4: +5 -17 lines
Diff to previous 1.27.2.4 (colored) to branchpoint 1.27 (colored) to selected 1.27 (colored)

Sync with HEAD

Revision 1.22.4.3 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:00 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22.4.2: +4 -7 lines
Diff to previous 1.22.4.2 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.27 (colored)

sync with head.

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:14 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33: +4 -7 lines
Diff to previous 1.33 (colored) to selected 1.27 (colored)

sync with head

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:40:01 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.33: +4 -7 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.24.8.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:33:45 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.24: +289 -21 lines
Diff to previous 1.24 (colored) next main 1.25 (colored) to selected 1.27 (colored)

sync to netbsd-5

Revision 1.34 / (download) - annotate - [select for diffs], Mon Apr 5 07:19:32 2010 UTC (13 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, matt-mips64-premerge-20101231
Changes since 1.33: +4 -7 lines
Diff to previous 1.33 (colored) to selected 1.27 (colored)

Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.

Revision 1.22.4.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:11 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22.4.1: +288 -34 lines
Diff to previous 1.22.4.1 (colored) to branchpoint 1.22 (colored) to selected 1.27 (colored)

sync with head

Revision 1.24.4.3 / (download) - annotate - [select for diffs], Sat Jan 30 19:14:20 2010 UTC (14 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.24.4.2: +2 -2 lines
Diff to previous 1.24.4.2 (colored) to branchpoint 1.24 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1271):
	sys/arch/xen/x86/xen_bus_dma.c: revision 1.16
	sys/arch/xen/xen/xengnt.c: revision 1.17 via patch
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.33
fix address overflow with 32bit PAE.
Reported and tested by Mark Davies on port-xen@.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Jan 23 22:32:42 2010 UTC (14 years, 2 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored) to selected 1.27 (colored)

fix address overflow with 32bit PAE.
Reported and tested by Mark Davies on port-xen@.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jan 19 22:06:23 2010 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.31: +4 -13 lines
Diff to previous 1.31 (colored) to selected 1.27 (colored)

Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.

Revision 1.27.2.4 / (download) - annotate - [select for diffs], Sun Nov 1 13:58:48 2009 UTC (14 years, 4 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27.2.3: +287 -27 lines
Diff to previous 1.27.2.3 (colored) to branchpoint 1.27 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Oct 19 18:41:12 2009 UTC (14 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.30: +1 -6 lines
Diff to previous 1.30 (colored) to selected 1.27 (colored)

Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !

Revision 1.24.4.2 / (download) - annotate - [select for diffs], Mon Sep 28 01:47:49 2009 UTC (14 years, 6 months ago) by snj
Branch: netbsd-5
Changes since 1.24.4.1: +5 -2 lines
Diff to previous 1.24.4.1 (colored) to branchpoint 1.24 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1030):
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.30
Don't disestablish a soft interrupt which has not been established.

Revision 1.24.4.1 / (download) - annotate - [select for diffs], Mon Sep 28 01:46:48 2009 UTC (14 years, 6 months ago) by snj
Branch: netbsd-5
Changes since 1.24: +284 -19 lines
Diff to previous 1.24 (colored) to selected 1.27 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1030):
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.29 via patch
Announce feature-rx-copy and feature-rx-flip.
Add support for request-rx-copy. Tested with a Debian lenny install.
Should fix PR port-xen/40650

Revision 1.30 / (download) - annotate - [select for diffs], Sun Sep 27 19:48:57 2009 UTC (14 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.29: +5 -2 lines
Diff to previous 1.29 (colored) to selected 1.27 (colored)

Don't disestablish a soft interrupt which has not been established.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Sep 25 23:11:57 2009 UTC (14 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.28: +283 -18 lines
Diff to previous 1.28 (colored) to selected 1.27 (colored)

Announce feature-rx-copy and feature-rx-flip.
Add support for request-rx-copy. Tested with a Debian lenny install.
Should fix PR port-xen/40650

Revision 1.27.2.3 / (download) - annotate - [select for diffs], Sun May 31 20:15:37 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27.2.2: +1 -5 lines
Diff to previous 1.27.2.2 (colored) to branchpoint 1.27 (colored) to selected 1.27 (colored)

Modifications for the Xen suspend/migrate/resume branch:

- introduce xenbus_device_{suspend,resume}() functions. These are routines
used to suspend/resume MI parts of the Xenbus device interfaces, like updating
frontend/backend devices' paths found in XenStore.

- introduce HYPERVISOR_sysctl(), an hypercall used only by Xentools to obtain
information from hypervisor (listing VMs, printing console, etc.). I use it
to query xenconsole from ddb(), as a last resort in case of a panic() in
dom0 (xm being not available). Currently unused in the branch; could be, if
requested.

- disable the rwlock(9) used to protect code that could use transient MFNs.
It could trigger nasty context switches in place it should not to.

- fix some bugs in the xennet/xbd suspend/resume pmf(9) handlers.

- following XenSource's design, talk_to_otherend() is now called
watch_otherend(), and free_otherend_details() is used by Xenbus device
suspend/resume routines.

- some slight modifications in pmap regarding APDP. Introduce an inline
function (pmap_unmap_apdp_pde()) that clears APDP entry for the current pmap.

- similarly, implement pmap_unmap_all_apdp_pdes() that iterates through all
pmaps and tears down APDP, as Xen does not handle them properly.

TODO/XXX:

- pmap_unmap_apdp_pde() does not handle APDP shadow entry of PAE. It will,
once I figure out how PAE uses it.

- revisit the pmap locking issue regarding transient MFNs. As NetBSD does not
use kernel preemption and MP for Xen, this could be skipped momentarily. See
http://mail-index.netbsd.org/port-xen/2009/04/27/msg004903.html for details.

- fix a bug regarding grant tables which could technically DoS a dom0 if
ridiculously high consumer/producer indexes are passed down in the ring during
a resume.

All in all, once the grant table index issue and APDP PAE are fixed, next step
is to torture test this branch.

Tested under i386 PAE and non-PAE, Xen3 dom0 and domU. amd64 is only compile
tested.

Revision 1.27.2.2 / (download) - annotate - [select for diffs], Wed May 13 17:18:51 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27.2.1: +1 -6 lines
Diff to previous 1.27.2.1 (colored) to branchpoint 1.27 (colored) to selected 1.27 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:14 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22: +34 -39 lines
Diff to previous 1.22 (colored) to selected 1.27 (colored)

sync with head.

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:29:49 2009 UTC (15 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.24.2.1: +1 -6 lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Feb 12 20:57:45 2009 UTC (15 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, jymxensuspend-base
Changes since 1.27: +1 -6 lines
Diff to previous 1.27 (colored)

Remove dead code

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Mon Feb 9 00:03:55 2009 UTC (15 years, 1 month ago) by jym
Branch: jym-xensuspend
Changes since 1.27: +8 -1 lines
Diff to previous 1.27 (colored)

Initial code for xen save/restore/migrate facilities.

- split the attach code of frontends in two half: one that is only needed
during autoconf(9) attach/detach phases, and one used at each save/restore
of device state (between suspend and resume).

Applies to hypervisor, xencons, xenbus, xbd, and xennet.

- add a rwlock(9) ("ptom_lock") to protect the different parts in the kernel
 that manipulate MFNs (which could change between a suspend and a resume,
without the kernel noticing it). Parts that require MFNs acquire a reader lock,
while suspend code will acquire a writer lock to ensure that no-other parts
in kernel still use MFNs.

- integrate the suspend code with sysmon.

- various things in pmap(9), and clock.

TODO:
- factorize code a bit more inside frontends drivers.
- remove all alternative recursive (APDP_PDE) mappings found in PD/PT during
suspend, as Xen does not support them.
- abstract the ptom_lock locking, it is only required when kernel preemption
is enabled, or on MP systems.

Current code works mostly. You may experience difficulties in some corner
cases (dom0 warnings about xennet interface errors, and Xen tools failing to
 validate NetBSD's alternative pmaps).

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:12 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.24: +27 -27 lines
Diff to previous 1.24 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.21.14.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:40 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.21.14.2: +32 -32 lines
Diff to previous 1.21.14.2 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.27 / (download) - annotate - [selected], Fri Jan 16 20:16:47 2009 UTC (15 years, 2 months ago) by jym
Branch: MAIN
CVS Tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.26: +12 -12 lines
Diff to previous 1.26 (colored)

Replace x86 memory fences in Xen drivers by their Xen equivalents, to reduce
MD dependency:

x86_lfence() => xen_rmb()
x86_sfence() => xen_wmb()
x86_mfence() => xen_mb()

Discussed in
http://mail-index.netbsd.org/port-xen/2009/01/15/msg004655.html

Ok by bouyer@.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jan 6 00:57:47 2009 UTC (15 years, 2 months ago) by jym
Branch: MAIN
Changes since 1.25: +15 -15 lines
Diff to previous 1.25 (colored) to selected 1.27 (colored)

- fix some typos in comments
- remove trailing spaces
- replace a check against 0 with a check against GNTST_okay

No functional change.

Revision 1.23.4.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:13:43 2008 UTC (15 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.23: +8 -8 lines
Diff to previous 1.23 (colored) next main 1.24 (colored) to selected 1.27 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Nov 13 18:44:51 2008 UTC (15 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored) to selected 1.27 (colored)

Finish preparation to new interface.
New interface not yet used by default. It needs some testing first.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Oct 24 18:02:58 2008 UTC (15 years, 5 months ago) by jym
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64
Changes since 1.23: +7 -7 lines
Diff to previous 1.23 (colored) to selected 1.27 (colored)

- printf -> aprint_*
- fix and add comments
- make some panic/error messages more relevant
- remove last '\n' in DPRINTK() macros, not required as it is already part of format string.

No functional changes.

Revision 1.22.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:51 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.27 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Tue Jun 17 09:14:24 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.27 (colored)

sync with head.

Revision 1.21.14.2 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:35 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.21.14.1: +1 -1 lines
Diff to previous 1.21.14.1 (colored) to branchpoint 1.21 (colored) to selected 1.27 (colored)

Sync with HEAD.

Also fix build.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jun 4 12:41:42 2008 UTC (15 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, haad-dm-base1
Branch point for: haad-dm
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) to selected 1.27 (colored)

vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both.

Revision 1.21.14.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:55 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Apr 14 13:38:03 2008 UTC (15 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) to selected 1.27 (colored)

- use POSIX integer types
- ansify functions

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:50:24 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.16.2.2: +11 -10 lines
Diff to previous 1.16.2.2 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored) to selected 1.27 (colored)

sync with HEAD

Revision 1.15.16.4 / (download) - annotate - [select for diffs], Sun Dec 9 19:36:34 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.15.16.3: +6 -5 lines
Diff to previous 1.15.16.3 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:18:30 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.17.2.1: +11 -10 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.3.8.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:27:25 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.8.5: +11 -10 lines
Diff to previous 1.3.8.5 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.27 (colored)

sync with head

Revision 1.14.2.3 / (download) - annotate - [select for diffs], Mon Dec 3 18:40:52 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.14.2.2: +21 -23 lines
Diff to previous 1.14.2.2 (colored) next main 1.15 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Dec 3 15:34:31 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.20: +6 -5 lines
Diff to previous 1.20 (colored) to selected 1.27 (colored)

Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.

Revision 1.15.16.3 / (download) - annotate - [select for diffs], Tue Nov 27 19:36:34 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.15.16.2: +6 -6 lines
Diff to previous 1.15.16.2 (colored) to branchpoint 1.15 (colored) to selected 1.27 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Nov 22 16:17:11 2007 UTC (16 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.19: +6 -6 lines
Diff to previous 1.19 (colored) to selected 1.27 (colored)

Pull up the bouyer-xenamd64 branch to HEAD. This brings in amd64 support
to NetBSD/Xen, both Dom0 and DomU.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:47:10 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.17: +11 -14 lines
Diff to previous 1.17 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.3.8.5 / (download) - annotate - [select for diffs], Thu Nov 15 11:43:47 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.8.4: +11 -14 lines
Diff to previous 1.3.8.4 (colored) to branchpoint 1.3 (colored) to selected 1.27 (colored)

sync with head.

Revision 1.16.6.2 / (download) - annotate - [select for diffs], Tue Nov 13 16:00:31 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.16.6.1: +11 -14 lines
Diff to previous 1.16.6.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored) to selected 1.27 (colored)

Sync with HEAD

Revision 1.15.16.2 / (download) - annotate - [select for diffs], Sun Nov 11 16:47:08 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.15.16.1: +11 -14 lines
Diff to previous 1.15.16.1 (colored) to branchpoint 1.15 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Thu Nov 8 10:59:45 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.16.2.1: +11 -14 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored) to selected 1.27 (colored)

sync with -HEAD

Revision 1.19 / (download) - annotate - [select for diffs], Wed Nov 7 15:38:11 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) to selected 1.27 (colored)

Make it compile.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Nov 7 00:23:17 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.17: +11 -14 lines
Diff to previous 1.17 (colored) to selected 1.27 (colored)

Merge from vmlocking:

- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:24:37 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (colored) to selected 1.27 (colored)

sync with HEAD

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Wed Oct 17 21:08:27 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored) to selected 1.27 (colored)

Prepare for xenamd64:
- kill xen/i386/identcpu.c, use i386/i386/identcpu.c instead (with a few
  #ifndef XEN)
- move some files that can be shared between i386 and amd64 from
  xen/i386 to xen/x86 (or to xen/xen for non-cpu-specific code)
- split assembly out of xen/include/hypervisor.h to xen/include/hypercalls.h
- use <xen/...> instead of <machine/...> for cpu-independant include files.

more work needed here, i386-specific files should got out of arch/xen to
arch/xeni386, and more code shared with arch/i386.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 17 19:58:33 2007 UTC (16 years, 5 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, jmcneill-base
Branch point for: mjf-devfs
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (colored) to selected 1.27 (colored)

Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Tue Oct 9 13:38:59 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.14.2.1: +2 -2 lines
Diff to previous 1.14.2.1 (colored) to selected 1.27 (colored)

Sync with head.

Revision 1.15.8.1 / (download) - annotate - [select for diffs], Wed Oct 3 19:26:17 2007 UTC (16 years, 5 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) next main 1.16 (colored) to selected 1.27 (colored)

Sync with HEAD

Revision 1.15.16.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:47:50 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.3.8.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:31:39 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.8.3: +11 -10 lines
Diff to previous 1.3.8.3 (colored) to branchpoint 1.3 (colored) to selected 1.27 (colored)

sync with head.

Revision 1.15.12.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:19:55 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) next main 1.16 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Aug 26 22:32:47 2007 UTC (16 years, 7 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5
Branch point for: matt-armv6, bouyer-xenamd64
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.27 (colored)

Constify.

Revision 1.12.4.2 / (download) - annotate - [select for diffs], Sat Mar 24 14:55:07 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.12.4.1: +4 -3 lines
Diff to previous 1.12.4.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored) to selected 1.27 (colored)

sync with head.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:50:16 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored) to selected 1.27 (colored)

Sync with head.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Mar 12 18:18:29 2007 UTC (17 years ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: ppcoea-renovation, nick-csl-alignment, jmcneill-pm
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored) to selected 1.27 (colored)

Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:51:50 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.12: +7 -7 lines
Diff to previous 1.12 (colored) to selected 1.27 (colored)

Sync with HEAD.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 5 04:03:57 2007 UTC (17 years ago) by dogcow
Branch: MAIN
Branch point for: vmlocking
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.27 (colored)

fix more caddr_t -> void * fallout.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:11 2007 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.12: +7 -7 lines
Diff to previous 1.12 (colored) to selected 1.27 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.3.8.3 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:25 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.8.2: +83 -34 lines
Diff to previous 1.3.8.2 (colored) to branchpoint 1.3 (colored) to selected 1.27 (colored)

sync with head.

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:29:39 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.11: +6 -4 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.27 (colored)

Sync with head.

Revision 1.11.8.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:20 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.11: +6 -4 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.27 (colored)

sync with head

Revision 1.12 / (download) - annotate - [select for diffs], Sun Oct 15 13:34:17 2006 UTC (17 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.11: +6 -4 lines
Diff to previous 1.11 (colored) to selected 1.27 (colored)

Set appropriate value for if_snd.ifq_maxlen; keeping it too low has a
bad impact on performances.

Revision 1.11.6.2 / (download) - annotate - [select for diffs], Sat Sep 9 02:45:05 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.11.6.1: +1139 -0 lines
Diff to previous 1.11.6.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored) to selected 1.27 (colored)

sync with head

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Fri Aug 11 15:43:16 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.1.2.3: +62 -22 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.27 (colored)

sync with head

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:07 2006 UTC (17 years, 8 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.3: +78 -31 lines
Diff to previous 1.3 (colored) next main 1.4 (colored) to selected 1.27 (colored)

Merge from HEAD.

Revision 1.11.6.1, Wed Jul 12 15:03:08 2006 UTC (17 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.11: +0 -1139 lines
FILE REMOVED

file xennetback_xenbus.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:45:05 +0000

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jul 12 15:03:08 2006 UTC (17 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, rpaulo-netinet-merge-pcb, newlock2
Changes since 1.10: +7 -1 lines
Diff to previous 1.10 (colored) to selected 1.27 (colored)

implement NETRXF_csum_blank/NETTXF_csum_blank tx checksum "offloading".

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jul 12 15:02:15 2006 UTC (17 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.9: +9 -1 lines
Diff to previous 1.9 (colored) to selected 1.27 (colored)

implement a simple NETTXF_csum_blank/NETRXF_csum_blank workaround
so that we can talk with linux guests at least.
just fill checksum field of received packets if the flag is set.
maybe should be revisited later.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jul 2 18:54:25 2006 UTC (17 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.27 (colored)

Fix a bogus gcc4 uninitialized warning.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jul 2 16:32:49 2006 UTC (17 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.7: +47 -21 lines
Diff to previous 1.7 (colored) to selected 1.27 (colored)

Fix a off by one error in xstart_mmu[] that would cause bad corruption
when handling full batch of requests.
Linux expects to have 16 btyes free between the start of the RX buffer and the
start of the packet, handle this.
Get rid of the "hotplug-status" hack, we now have proper tools to deal with
it in userland.
Various minor fixes and code reorg.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Mon Jun 26 12:45:40 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.1.2.2: +31 -51 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) to selected 1.27 (colored)

sync with head.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jun 25 19:46:52 2006 UTC (17 years, 9 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.6: +4 -3 lines
Diff to previous 1.6 (colored) to selected 1.27 (colored)

Use the right test for ring full condition. Avoid an infinite loop when the
ring is full (because the domU is in ddb for example).

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 25 18:34:09 2006 UTC (17 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.27 (colored)

Don't loop forever if we receive a packet while the interface is down.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jun 25 16:46:59 2006 UTC (17 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.4: +6 -6 lines
Diff to previous 1.4 (colored) to selected 1.27 (colored)

Add a 'base' argument to xenbus_read_ul, so that we can read number is base
other than 10.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 25 15:20:39 2006 UTC (17 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.3: +11 -5 lines
Diff to previous 1.3 (colored) to selected 1.27 (colored)

Adapt for new xen_shm_* signatures.
While here add more xenbus_dev_fatal() calls for some failure cases.

Revision 1.3.8.2 / (download) - annotate - [select for diffs], Wed Jun 21 14:58:23 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.8.1: +1092 -0 lines
Diff to previous 1.3.8.1 (colored) to branchpoint 1.3 (colored) to selected 1.27 (colored)

sync with head.

Revision 1.3.6.2 / (download) - annotate - [select for diffs], Mon Jun 19 03:45:36 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.3.6.1: +1092 -0 lines
Diff to previous 1.3.6.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.27 (colored)

Sync with head.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:35:39 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.3.2.1: +1092 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.27 (colored)

Sync with head.

Revision 1.3.8.1, Sat May 27 13:54:35 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3: +0 -1092 lines
FILE REMOVED

file xennetback_xenbus.c was added on branch yamt-lazymbuf on 2006-06-21 14:58:23 +0000

Revision 1.3.6.1, Sat May 27 13:54:35 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.3: +0 -1092 lines
FILE REMOVED

file xennetback_xenbus.c was added on branch chap-midi on 2006-06-19 03:45:36 +0000

Revision 1.3.2.1, Sat May 27 13:54:35 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
Changes since 1.3: +0 -1092 lines
FILE REMOVED

file xennetback_xenbus.c was added on branch simonb-timecounters on 2006-06-01 22:35:39 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 27 13:54:35 2006 UTC (17 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: simonb-timecounters-base, gdamore-uart-base, chap-midi-nbase, chap-midi-base
Branch point for: yamt-lazymbuf, simonb-timecounters, gdamore-uart, chap-midi
Changes since 1.2: +7 -1 lines
Diff to previous 1.2 (colored) to selected 1.27 (colored)

A lot of work is needed in the tcp stack to handle read-only ext storage
so always copy packets from the domU to a fresh mbuf for now.

Revision 1.2 / (download) - annotate - [select for diffs], Thu May 25 21:28:38 2006 UTC (17 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.1: +8 -41 lines
Diff to previous 1.1 (colored) to selected 1.27 (colored)

Use xen_shm_* to map the packet sent to us by the domU, and attach it
as external storage to the mbuf.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Wed May 24 15:48:26 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.1.4.1: +1119 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.27 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Wed May 24 10:57:23 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.1.2.1: +1119 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) to selected 1.27 (colored)

sync with head.

Revision 1.1.4.1, Tue May 23 21:10:42 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.1: +0 -1119 lines
FILE REMOVED

file xennetback_xenbus.c was added on branch peter-altq on 2006-05-24 15:48:26 +0000

Revision 1.1.2.1, Tue May 23 21:10:42 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.1: +0 -1119 lines
FILE REMOVED

file xennetback_xenbus.c was added on branch yamt-pdpolicy on 2006-05-24 10:57:23 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Tue May 23 21:10:42 2006 UTC (17 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5
Branch point for: yamt-pdpolicy, peter-altq
Diff to selected 1.27 (colored)

Add a network backend driver for Xen3. This will appear as a xvif pseudo
device in kernel config files.

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>