CVS log for src/sys/arch/xen/xen/xbdback_xenbus.c
Up to [cvs.NetBSD.org] / src / sys / arch / xen / xen
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.101.4.2: download - view: text, markup, annotated - select for diffs
Sat Jun 22 18:30:13 2024 UTC (5 months, 2 weeks ago) by martin
Branches: netbsd-10
Diff to: previous 1.101.4.1: preferred, colored; branchpoint 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101.4.1: +332 -169
lines
Pull up the following, requested by bouyer in ticket #726:
sys/arch/xen/xen/xbdback_xenbus.c upto 1.107
Restore "sparse" segements support which was lost in rev 1.83, causing
VBD corruption with linux guests.
The segments in a single request are not always contigous in VA; this means
that the end of a segment is not always 7 and the start of the next one is not
always 0. When this happens this means that a contigous chunk of data from
disk has to be dispatched to various non-contigous VA, in chunks of VBD_BSIZE
bytes (or the other way round for writes).
Linux I/O subsystems seems to support this natively; to emulate this allocate
a MAXPHYS bounce buffer to do the I/O and then memcpy() the data from/to
the segments as requested. If the request is contigous do the I/O
directly to the mapped VA.
This means that we need to keep segments details until iodone(); so move
the blkif_request_segment array from xbdback_instance to xbdback_io. The
array is allocated separately to guarantee proper page alignement.
non-contigous segments seems rare so allocate one bounce buffer per
xbdback_instance, and stall the ring if the bounce buffer is already in use.
For this add back a mechanism to restart an I/O at a specific point
after thread sleep/wakeup.
While there guard some more printfs with ratecheck() and add more checks on
segments bounds.
Tested with a HVM scientific linux install from iso image; the install would
fail with a xfs corruption when installing grub.
(Plus mostly cosmetic/minor changes.)
Revision 1.107: download - view: text, markup, annotated - select for diffs
Thu Jun 20 15:17:27 2024 UTC (5 months, 3 weeks ago) by bouyer
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +20 -19
lines
Fix various cosmetic issues pointed out by Roland Illig. NFC.
While there add 2024 to copyright.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Wed Jun 19 09:43:22 2024 UTC (5 months, 3 weeks ago) by martin
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -3
lines
Fix format string for size_t argument
Revision 1.105: download - view: text, markup, annotated - select for diffs
Wed Jun 19 09:02:48 2024 UTC (5 months, 3 weeks ago) by bouyer
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +333 -180
lines
Restore "sparse" segements support which was lost in rev 1.83, causing
VBD corruption with linux guests.
The segments in a single request are not always contigous in VA; this means
that the end of a segment is not always 7 and the start of the next one is not
always 0. When this happens this means that a contigous chunk of data from
disk has to be dispatched to various non-contigous VA, in chunks of VBD_BSIZE
bytes (or the other way round for writes).
Linux I/O subsystems seems to support this natively; to emulate this allocate
a MAXPHYS bounce buffer to do the I/O and then memcpy() the data from/to
the segments as requested. If the request is contigous do the I/O
directly to the mapped VA.
This means that we need to keep segments details until iodone(); so move
the blkif_request_segment array from xbdback_instance to xbdback_io. The
array is allocated separately to guarantee proper page alignement.
non-contigous segments seems rare so allocate one bounce buffer per
xbdback_instance, and stall the ring if the bounce buffer is already in use.
For this add back a mechanism to restart an I/O at a specific point
after thread sleep/wakeup.
While there guard some more printfs with ratecheck() and add more checks on
segments bounds.
Tested with a HVM scientific linux install from iso image; the install would
fail with a xfs corruption when installing grub.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Thu Jun 13 14:47:54 2024 UTC (5 months, 4 weeks ago) by bouyer
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +23 -14
lines
Get req->handle and req->sector_number from the correct structure for the
current opertation. They happen to be at the same offset in all structures
so NFC, but better be correct, it may help for future changes.
While there KASSERT() that our indirect segments fits in a single page.
Revision 1.101.4.1: download - view: text, markup, annotated - select for diffs
Mon Jul 31 15:23:02 2023 UTC (16 months, 1 week ago) by martin
Branches: 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,
netbsd-10-0-RC1
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +15 -14
lines
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.103: download - view: text, markup, annotated - select for diffs
Sat Feb 25 00:35:28 2023 UTC (21 months, 2 weeks ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +14 -14
lines
xbdback(4): Nix trailing whitespace.
No functional change intended.
Revision 1.102: download - view: text, markup, annotated - select for diffs
Sat Feb 25 00:33:15 2023 UTC (21 months, 2 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -2
lines
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.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Sep 1 15:33:23 2022 UTC (2 years, 3 months ago) by bouyer
Branches: MAIN
CVS tags: netbsd-10-base,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +13 -73
lines
in backend drivers, use xen_shm_(un)map for the rings instead of inline,
mostly duplicate code.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Thu Sep 1 12:29:00 2022 UTC (2 years, 3 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +52 -12
lines
Add PVH support for backend drivers grant operation.
Now a domU in a PVH dom0 boots multiuser.
Revision 1.97.4.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:19 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +4 -5
lines
Sync with HEAD.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Wed Jul 28 22:17:49 2021 UTC (3 years, 4 months ago) by jdolecek
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +3 -3
lines
fix off-by-one check in another KASSERT() for bcount
still related to PR port-xen/56328
Revision 1.98: download - view: text, markup, annotated - select for diffs
Wed Jul 28 21:38:50 2021 UTC (3 years, 4 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -4
lines
fix intentional, but eventually faulty off-by-one for the maximum number
of segments for I/O - this was supposed to allow MAXPHYS-size I/O even
with page offset, but actually ended up letting through I/O up to
MAXPHYS+PAGE_SIZE
the KASSERT(bcount < MAXPHYS) is kept as-is, since at that place the number
of segments should already be validated, so it's kernel bug if the size
is still too big there
fixes PR port-xen/56328 by Greg Oster
Revision 1.96.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:42 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.96: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96: +5 -7
lines
Sync with HEAD.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Sun Feb 21 20:02:25 2021 UTC (3 years, 9 months ago) by jdolecek
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-cfargs-base,
thorpej-cfargs,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +5 -7
lines
reset xio_xv before calling xbdback_io_error() so it won't try to unmap
the non-initialized handles when xen_shm_map() fails
remove the ratechecked error printf for shm error - xbdback_io_error() prints
the error too
part of fixes for XSA-362
Revision 1.96: download - view: text, markup, annotated - select for diffs
Thu May 7 19:49:29 2020 UTC (4 years, 7 months ago) by bouyer
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +3 -3
lines
This should be mpsafe, register the event handler as such.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Wed May 6 20:09:26 2020 UTC (4 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +3 -3
lines
Drop xbdi_lock() before calling intr_disestablish(), it needs to take
cpu_lock.
Revision 1.94: download - view: text, markup, annotated - select for diffs
Wed May 6 19:49:00 2020 UTC (4 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +5 -2
lines
We can't take v_interlock with a spin lock held. Release xbdi_lock
before scheduling the I/O, and take again once queued.
It looks safe to drop the lock here.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Tue May 5 17:02:01 2020 UTC (4 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +5 -4
lines
Make DOM0OPS build for PVH/PVHVM too
Revision 1.92: download - view: text, markup, annotated - select for diffs
Sat Apr 25 20:05:25 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +34 -21
lines
parse indirect_op using appropriate 32/64-bit access types, this fixes
the BLKIF_OP_INDIRECT handling for 32-bit DomU running against 64-bit Dom0,
problem reported and fix tested by Manuel
make sure to use the provided indirect_op when reporting back errors
Revision 1.91: download - view: text, markup, annotated - select for diffs
Sat Apr 25 15:26:18 2020 UTC (4 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +2 -2
lines
Merge the bouyer-xenpvh branch, bringing in Xen PV drivers support under HVM
guests in GENERIC.
Xen support can be disabled at runtime with
boot -c
disable hypervisor
Revision 1.77.2.4: download - view: text, markup, annotated - select for diffs
Sat Apr 25 13:16:48 2020 UTC (4 years, 7 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.77.2.3: preferred, colored; branchpoint 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77.2.3: +311 -185
lines
sync with bouyer-xenpvh-base2 (HEAD)
Revision 1.90: download - view: text, markup, annotated - select for diffs
Thu Apr 23 09:16:21 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
CVS tags: bouyer-xenpvh-base2
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +72 -58
lines
make xbdback actually MPSAFE and stop using KERNEL_LOCK()
remove no longer necessary atomics, the counters are now always
updated with held mutex
Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Apr 23 08:09:25 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +63 -64
lines
allocate xbdback_io instances as part of struct xbdback_instance and
stop using pool_cache(9), to remove possibility for the allocation to sleep
Revision 1.88: download - view: text, markup, annotated - select for diffs
Thu Apr 23 07:39:07 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +2 -6
lines
g/c no longer used xbdi_same_page and xbdi_lastfragio_time
Revision 1.87: download - view: text, markup, annotated - select for diffs
Thu Apr 23 07:24:40 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +11 -19
lines
g/c no longer needed xbdi_io structure member, just pass it as continuation
parameter
Revision 1.67.2.4: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:13 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.67.2.3: preferred, colored; branchpoint 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.2.3: +291 -597
lines
Sync with HEAD
Revision 1.86: download - view: text, markup, annotated - select for diffs
Tue Apr 21 13:56:18 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
CVS tags: phil-wifi-20200421
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +175 -47
lines
add support for indirect segments, which makes it possible to pass
up to MAXPHYS (implementation limit, interface allows more) using
single request
request using indirect segment requires 1 extra copy hypercall per
request, but saves 2 shared memory hypercalls (map_grant/unmap_grant),
so should be net performance boost due to less TLB flushing
this also effectively doubles disk queue size for xbd(4)
Revision 1.77.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 20 19:40:51 2020 UTC (4 years, 7 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.77.2.2: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.2.2: +2 -4
lines
Fix build with DIAGNOSTIC
Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Apr 20 19:29:09 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +2 -5
lines
xbdback_fragio_intvl is also no longer used
Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Apr 20 19:20:35 2020 UTC (4 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +2 -4
lines
Fix build with DIAGNOSTIC
Revision 1.77.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 20 18:50:46 2020 UTC (4 years, 7 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.77.2.1: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.2.1: +78 -443
lines
Bring in 1.82 and 1.83 from HEAD
Revision 1.83: download - view: text, markup, annotated - select for diffs
Mon Apr 20 16:12:28 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
CVS tags: bouyer-xenpvh-base1
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +76 -442
lines
remove I/O defragmentation logic, pass requests straight to the
underlying block device without trying to coalesce them
it seems rarely useful, and it makes the handling logic unnecessarily complex -
ultimately it's the DomU operating system responsibility to issue optimal I/O
might also help with the ZFS problem reported on port-xen, and will surely
simplify eventual indirect segment support
Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon Apr 20 14:11:04 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +4 -3
lines
do not retry when xen_shm_map() fails after having returned error for it,
it corrupts the ring; just go to next request
should fix the problem with ZFS causing failscade when req fails,
reported by Brian Buhrow on port-xen
Revision 1.77.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:01 2020 UTC (4 years, 7 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +66 -130
lines
Sync with HEAD
Revision 1.81: download - view: text, markup, annotated - select for diffs
Mon Apr 20 03:00:33 2020 UTC (4 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3
lines
Fix typo to make compilable.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sun Apr 19 20:53:20 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -2
lines
SLIST_INIT() xbdi->xbdi_va_free just for clarity
Revision 1.79: download - view: text, markup, annotated - select for diffs
Sun Apr 19 18:47:40 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +61 -123
lines
change interface for xen_shm_map() so that caller always supplies the VA,
it now fails only if the Xen hypercall fails, in which case the failure
is final
change xbdback to pre-allocate KVA on xbdback attach (and free on detach),
so it has always KVA to map the request pages
remove no longer needed KVA allocation failure handling
Revision 1.67.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:12 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.67.2.2: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.2.2: +8 -14
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Apr 13 00:27:17 2020 UTC (4 years, 7 months ago) by chs
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +6 -9
lines
slightly change and fix the semantics of pool_set*wat(), pool_sethardlimit()
and pool_prime() (and their pool_cache_* counterparts):
- the pool_set*wat() APIs are supposed to specify thresholds for the count of
free items in the pool before pool pages are automatically allocated or freed
during pool_get() / pool_put(), whereas pool_sethardlimit() and pool_prime()
are supposed to specify minimum and maximum numbers of total items
in the pool (both free and allocated). these were somewhat conflated
in the existing code, so separate them as they were intended.
- change pool_prime() to take an absolute number of items to preallocate
rather than an increment over whatever was done before, and wait for
any memory allocations to succeed. since pool_prime() can no longer fail
after this, change its return value to void and adjust all callers.
- pool_setlowat() is documented as not immediately attempting to allocate
any memory, but it was changed some time ago to immediately try to allocate
up to the lowat level, so just fix the manpage to describe the current
behaviour.
- add a pool_cache_prime() to complete the API set.
Revision 1.67.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:59 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.67.2.1: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.2.1: +5 -2
lines
Merge changes from current as of 20200406
Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Apr 7 14:07:01 2020 UTC (4 years, 8 months ago) by jdolecek
Branches: MAIN
CVS tags: phil-wifi-20200411,
bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +5 -7
lines
convert the node watch code to use kmem_alloc() instead of malloc()
Revision 1.76: download - view: text, markup, annotated - select for diffs
Tue Apr 7 13:36:22 2020 UTC (4 years, 8 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -2
lines
revert the watch.node change, xenbus_watch_path() and xenbus_watch_path2()
need to use non-constant path
Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue Apr 7 11:47:06 2020 UTC (4 years, 8 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +7 -11
lines
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.74: download - view: text, markup, annotated - select for diffs
Tue Apr 7 09:18:00 2020 UTC (4 years, 8 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +2 -3
lines
no need to malloc()+copy watch.node, it's constant string - either "device"
or "backend"; just use the strings direct
Revision 1.72.6.1: download - view: text, markup, annotated - select for diffs
Fri Jan 17 21:47:28 2020 UTC (4 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +5 -2
lines
Sync with head.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Fri Jan 17 19:30:51 2020 UTC (4 years, 10 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +5 -2
lines
Acquire kernel_lock in the bp->b_iodone callback.
Revision 1.67.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:06:56 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +10 -9
lines
Sync with HEAD
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sun Apr 7 12:21:20 2019 UTC (5 years, 8 months ago) by bouyer
Branches: MAIN
CVS tags: phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
isaki-audio2-base,
isaki-audio2,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +5 -5
lines
Adjyst some debug printfs
Revision 1.71: download - view: text, markup, annotated - select for diffs
Sat Feb 2 12:32:55 2019 UTC (5 years, 10 months ago) by cherry
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -3
lines
Switch NetBSD/xen to use XEN api tag RELEASE-4.11.1
The headers for this api are in sys/external/mit/xen-include-public/dist/
Revision 1.65.2.3: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:46 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.65.2.2: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.2.2: +4 -4
lines
Sync with HEAD, resolve a few conflicts
Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Dec 24 14:55:42 2018 UTC (5 years, 11 months ago) by cherry
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4
lines
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.65.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:28 2018 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.65.2.1: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.1: +4 -4
lines
Sync with HEAD, resolve a couple of conflicts
Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Oct 26 05:33:21 2018 UTC (6 years, 1 month ago) by cherry
Branches: MAIN
CVS tags: pgoyette-compat-1126
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3
lines
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.68: download - view: text, markup, annotated - select for diffs
Wed Oct 24 03:59:33 2018 UTC (6 years, 1 month ago) by cherry
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -3
lines
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.63.8.1: download - view: text, markup, annotated - select for diffs
Sun Sep 23 17:58:51 2018 UTC (6 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +7 -6
lines
Apply patch, requested by manu in ticket #1034:
Avoid sleeping with a spin lock held (solved differently on HEAD).
Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:48 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +24 -11
lines
Sync with HEAD
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Jun 24 20:28:58 2018 UTC (6 years, 5 months ago) by jdolecek
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625
Branch point for: phil-wifi
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -4
lines
mark with XXXSMP all remaining spl*() and tsleep() calls
Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Jun 24 20:15:00 2018 UTC (6 years, 5 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +22 -9
lines
similar treatment as xennetback_xenbus.c:
- protect instance list with mutex
- mark more local variables static
- mark with XXXSMP what looks suspicious
- in pciback.c use kmem_zalloc() et.al to allocate the device structures
Revision 1.57.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:51 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.57.2.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.2.1: +10 -8
lines
update from HEAD
Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Nov 11 21:03:01 2017 UTC (7 years, 1 month ago) by riastradh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
pgoyette-compat-base,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +5 -4
lines
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.64: download - view: text, markup, annotated - select for diffs
Mon Nov 6 15:27:09 2017 UTC (7 years, 1 month ago) by cherry
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +7 -6
lines
Switch XEN drivers to use intr_establish_xname()/intr_disestablish()
This completes the API transition.
Revision 1.63.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 27 05:36:34 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +12 -4
lines
Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).
The branch now builds, and installs via anita. There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.
Revision 1.60.2.3: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:24 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.60.2.2: preferred, colored; branchpoint 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.2.2: +3 -4
lines
Sync with HEAD
Revision 1.62.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:29 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.62.2.1: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.2.1: +3 -4
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Dec 26 08:16:28 2016 UTC (7 years, 11 months ago) by skrll
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
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-RELEASE,
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: prg-localcount2,
netbsd-8
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -4
lines
Hold the interlock before cv_broadcast as per condvar(9)
Revision 1.62.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 20 23:50:56 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +12 -4
lines
Adapt the machine/arch dependent code to the new {b,c}devsw reference
counting.
XXX Most of these will require testing by someone other than myself, as
I have a limited selection of hardware!
Revision 1.60.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:07 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.60.2.1: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.1: +3 -2
lines
Sync with HEAD
Revision 1.55.2.4: download - view: text, markup, annotated - select for diffs
Fri Jan 8 21:26:15 2016 UTC (8 years, 11 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.55.2.3: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.2.3: +3 -2
lines
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.55.2.1.6.3: download - view: text, markup, annotated - select for diffs
Fri Jan 8 21:25:28 2016 UTC (8 years, 11 months ago) by snj
Branches: netbsd-6-1
Diff to: previous 1.55.2.1.6.2: preferred, colored; branchpoint 1.55.2.1: preferred, colored; next MAIN 1.55.2.2: preferred, colored
Changes since revision 1.55.2.1.6.2: +3 -2
lines
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.55.2.1.4.3: download - view: text, markup, annotated - select for diffs
Fri Jan 8 21:24:37 2016 UTC (8 years, 11 months ago) by snj
Branches: netbsd-6-0
Diff to: previous 1.55.2.1.4.2: preferred, colored; branchpoint 1.55.2.1: preferred, colored; next MAIN 1.55.2.2: preferred, colored
Changes since revision 1.55.2.1.4.2: +3 -2
lines
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.59.4.1.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 8 21:06:07 2016 UTC (8 years, 11 months ago) by snj
Branches: netbsd-7-0
CVS tags: netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE
Diff to: previous 1.59.4.1.2.1: preferred, colored; branchpoint 1.59.4.1: preferred, colored; next MAIN 1.59.4.2: preferred, colored
Changes since revision 1.59.4.1.2.1: +3 -2
lines
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.59.4.3: download - view: text, markup, annotated - select for diffs
Fri Jan 8 21:05:14 2016 UTC (8 years, 11 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-2-RELEASE,
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
Diff to: previous 1.59.4.2: preferred, colored; branchpoint 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.4.2: +3 -2
lines
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.62: download - view: text, markup, annotated - select for diffs
Wed Jan 6 15:28:40 2016 UTC (8 years, 11 months ago) by bouyer
Branches: 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,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -2
lines
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.60.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:45 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3
lines
Sync with HEAD (as of 26th Dec)
Revision 1.55.2.1.4.2: download - view: text, markup, annotated - select for diffs
Mon Nov 16 07:53:01 2015 UTC (9 years ago) by msaitoh
Branches: netbsd-6-0
Diff to: previous 1.55.2.1.4.1: preferred, colored; branchpoint 1.55.2.1: preferred, colored
Changes since revision 1.55.2.1.4.1: +3 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #1347):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.61
Fix typo which caused the kenrel thread to be created with a 0 priority.
This would cause the thread to be almost never scheduled when a userland
process could use all CPU.
Should fix the problem reported by Torbj?rn Granlund on port-xen@
Revision 1.55.2.1.6.2: download - view: text, markup, annotated - select for diffs
Mon Nov 16 07:52:12 2015 UTC (9 years ago) by msaitoh
Branches: netbsd-6-1
Diff to: previous 1.55.2.1.6.1: preferred, colored; branchpoint 1.55.2.1: preferred, colored
Changes since revision 1.55.2.1.6.1: +3 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #1347):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.61
Fix typo which caused the kenrel thread to be created with a 0 priority.
This would cause the thread to be almost never scheduled when a userland
process could use all CPU.
Should fix the problem reported by Torbj?rn Granlund on port-xen@
Revision 1.55.2.3: download - view: text, markup, annotated - select for diffs
Mon Nov 16 07:51:12 2015 UTC (9 years ago) by msaitoh
Branches: netbsd-6
Diff to: previous 1.55.2.2: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.2: +3 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #1347):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.61
Fix typo which caused the kenrel thread to be created with a 0 priority.
This would cause the thread to be almost never scheduled when a userland
process could use all CPU.
Should fix the problem reported by Torbj?rn Granlund on port-xen@
Revision 1.59.4.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 16 07:35:32 2015 UTC (9 years ago) by msaitoh
Branches: netbsd-7-0
Diff to: previous 1.59.4.1: preferred, colored
Changes since revision 1.59.4.1: +3 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #1040):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.61
Fix typo which caused the kenrel thread to be created with a 0 priority.
This would cause the thread to be almost never scheduled when a userland
process could use all CPU.
Should fix the problem reported by Torbj?rn Granlund on port-xen@
Revision 1.59.4.2: download - view: text, markup, annotated - select for diffs
Mon Nov 16 07:34:08 2015 UTC (9 years ago) by msaitoh
Branches: netbsd-7
Diff to: previous 1.59.4.1: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.4.1: +3 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #1040):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.61
Fix typo which caused the kenrel thread to be created with a 0 priority.
This would cause the thread to be almost never scheduled when a userland
process could use all CPU.
Should fix the problem reported by Torbj?rn Granlund on port-xen@
Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Nov 15 14:42:03 2015 UTC (9 years ago) by bouyer
Branches: MAIN
CVS tags: nick-nhusb-base-20151226
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3
lines
Fix typo which caused the kenrel thread to be created with a 0 priority.
This would cause the thread to be almost never scheduled when a userland
process could use all CPU.
Should fix the problem reported by Torbjörn Granlund on port-xen@
Revision 1.59.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 22 11:15:57 2014 UTC (10 years, 2 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1
Branch point for: netbsd-7-0
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #115):
sys/arch/xen/x86/hypervisor_machdep.c: revision 1.28
sys/arch/xen/xenbus/xenbus_client.c: revision 1.13
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.60
sys/arch/xen/xen/clock.c: revision 1.63
Make Xen kernels compile without DIAGNOSTIC
Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Sep 21 12:46:15 2014 UTC (10 years, 2 months ago) by bouyer
Branches: MAIN
CVS tags: nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3
lines
Make Xen kernels compile without DIAGNOSTIC
Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:30 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +14 -7
lines
Rebase to HEAD as of a few days ago.
Revision 1.48.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:14 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.48.2.2: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.2: +14 -7
lines
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.57.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:30 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +14 -7
lines
sync with head
Revision 1.55.2.1.6.1: download - view: text, markup, annotated - select for diffs
Thu Nov 7 20:19:40 2013 UTC (11 years, 1 month ago) by snj
Branches: netbsd-6-1
CVS tags: netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE
Diff to: previous 1.55.2.1: preferred, colored
Changes since revision 1.55.2.1: +12 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #974):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.58
Add more XENPRINTF() to xbdback_connect()
in xbdback_backend_changed(), fix memory leak.
Do not free an uninitialized pointer in xbdback_connect(). Should fix
hypervisor or dom0 reboot when using windows PV drivers, as reported
by several users on port-xen.
Revision 1.55.2.1.4.1: download - view: text, markup, annotated - select for diffs
Thu Nov 7 20:18:50 2013 UTC (11 years, 1 month ago) by snj
Branches: netbsd-6-0
CVS tags: netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE
Diff to: previous 1.55.2.1: preferred, colored
Changes since revision 1.55.2.1: +12 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #974):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.58
Add more XENPRINTF() to xbdback_connect()
in xbdback_backend_changed(), fix memory leak.
Do not free an uninitialized pointer in xbdback_connect(). Should fix
hypervisor or dom0 reboot when using windows PV drivers, as reported
by several users on port-xen.
Revision 1.55.2.2: download - view: text, markup, annotated - select for diffs
Thu Nov 7 20:16:48 2013 UTC (11 years, 1 month ago) by snj
Branches: netbsd-6
Diff to: previous 1.55.2.1: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.1: +12 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #974):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.58
Add more XENPRINTF() to xbdback_connect()
in xbdback_backend_changed(), fix memory leak.
Do not free an uninitialized pointer in xbdback_connect(). Should fix
hypervisor or dom0 reboot when using windows PV drivers, as reported
by several users on port-xen.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Nov 6 06:23:15 2013 UTC (11 years, 1 month ago) by mrg
Branches: 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,
netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -6
lines
- move variables inside their #ifdef use
- remove unused and set-but-unused variables
- use __USE() in a particularly ugly case
with these, and a couple of other changes, amd64 gcc 4.8.1 world
is able to complete build.sh release.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Oct 20 11:37:11 2013 UTC (11 years, 1 month ago) by bouyer
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +12 -3
lines
Add more XENPRINTF() to xbdback_connect()
in xbdback_backend_changed(), fix memory leak.
Do not free an uninitialized pointer in xbdback_connect(). Should fix
hypervisor or dom0 reboot when using windows PV drivers, as reported
by several users on port-xen.
Revision 1.48.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:37 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.48.2.1: preferred, colored; branchpoint 1.48: preferred, colored
Changes since revision 1.48.2.1: +12 -6
lines
sync with head
Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Jul 23 01:31:01 2012 UTC (12 years, 4 months ago) by jym
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys,
rmind-smpnet
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +10 -6
lines
Add more ratechecks to avoid console spam when the backend gets a
stream of errors.
Remove the unused xbdi_errps (error per second) variable. Errors should
rather be tracked in absolute, with a threshold that forces a time penalty
to the xbdback thread when frontend goes nuts.
Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 5 15:36:00 2012 UTC (12 years, 6 months ago) by jdc
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
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-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Branch point for: netbsd-6-1,
netbsd-6-0
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -2
lines
Pull up revision 1.56 (requested by cegger in ticket #282).
destroy mutex and cv first.
Fixes LOCKDEBUG crash when a guest shut down.
Revision 1.54.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:12 2012 UTC (12 years, 6 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.54.2.1: preferred, colored; branchpoint 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54.2.1: +4 -2
lines
sync to latest -current.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed May 23 10:01:51 2012 UTC (12 years, 6 months ago) by cegger
Branches: MAIN
CVS tags: jmcneill-usbmp-base10
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -2
lines
destroy mutex and cv first.
Fixes LOCKDEBUG crash when a guest shut down.
Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:12 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +367 -280
lines
sync with head
Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:33:47 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3
lines
merge to -current.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Wed Dec 7 15:47:43 2011 UTC (13 years ago) by cegger
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
netbsd-6-base,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3
lines
switch from xen3-public to xen-public.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Dec 3 22:36:28 2011 UTC (13 years ago) by bouyer
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +9 -7
lines
xbdback_disconnect() can be called twice, from XenbusStateClosing then from
xbdback_xenbus_destroy(). The second call will wait forever as the first
already caused the xbd thread to exit.
Have xbdback_disconnect() check if we're already disconnected and if so,
do nothing.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Nov 24 18:34:56 2011 UTC (13 years ago) by joerg
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3
lines
Don't use variables as format string.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Thu Nov 24 01:47:18 2011 UTC (13 years ago) by jym
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +350 -253
lines
Deep rework of the xbdback(4) driver; it now uses a thread per instance
instead of continuations directly from shm callbacks or interrupt
handlers. The whole CPS design remains but is adapted to cope with
a thread model.
This patch allows scheduling away I/O requests of domains that behave
abnormally, or even destroy them if there is a need to (without thrashing
dom0 with lots of error messages at IPL_BIO).
I took this opportunity to make the driver MPSAFE, so multiple instances
can run concurrently. Moved from home-grown pool(9) queues to
pool_cache(9), and rework the callback mechanism so that it delegates
I/O processing to thread instead of handling it itself through the
continuation trampoline.
This one fixes the potential DoS many have seen in a dom0 when trying to
suspend a NetBSD domU with a corrupted I/O ring.
Benchmarks (build.sh release runs and bonnie++) do not show any
performance regression, the "new" driver is on-par with the "old" one.
ok bouyer@.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Nov 14 21:34:50 2011 UTC (13 years ago) by christos
Branches: MAIN
CVS tags: jmcneill-audiomp3-base,
jmcneill-audiomp3
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +10 -8
lines
Use getdiskinfo() to print the name of the device; the previous code
constructed the wrong name if it was a wedge.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Nov 14 16:04:29 2011 UTC (13 years ago) by hannken
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -2
lines
Bring back sys/disklabel.h for DISKUNIT and DISKPART.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Nov 13 23:02:06 2011 UTC (13 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +5 -20
lines
use getdiskinfo()
Revision 1.20.4.8: download - view: text, markup, annotated - select for diffs
Wed Nov 2 20:34:52 2011 UTC (13 years, 1 month ago) by riz
Branches: 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
Diff to: previous 1.20.4.7: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.4.7: +3 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #1685):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.48
Fix bogus KASSERT: if there is a xbdi_io, xbdi_pendingreqs must *NOT* be 0.
Not sure why it has stayed unoticed for so long ...
Revision 1.20.4.3.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 2 20:31:40 2011 UTC (13 years, 1 month ago) by riz
Branches: netbsd-5-1
CVS tags: 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
Diff to: previous 1.20.4.3.2.2: preferred, colored; branchpoint 1.20.4.3: preferred, colored; next MAIN 1.20.4.4: preferred, colored
Changes since revision 1.20.4.3.2.2: +10 -4
lines
Pull up following revision(s) (requested by bouyer in ticket #1682):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.45
Guard against spurious xbdback_backend_changed() calls which would result
in the block device being opened twice. Fixes port-xen/45158,
although the underlying cause (multiple open of the same device not
properly handled any more) is not fixed.
Revision 1.20.6.1: download - view: text, markup, annotated - select for diffs
Wed Nov 2 20:31:18 2011 UTC (13 years, 1 month ago) by riz
Branches: netbsd-5-0
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +12 -6
lines
Pull up following revision(s) (requested by bouyer in ticket #1682):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.45
Guard against spurious xbdback_backend_changed() calls which would result
in the block device being opened twice. Fixes port-xen/45158,
although the underlying cause (multiple open of the same device not
properly handled any more) is not fixed.
Revision 1.20.4.7: download - view: text, markup, annotated - select for diffs
Wed Nov 2 20:30:41 2011 UTC (13 years, 1 month ago) by riz
Branches: netbsd-5
Diff to: previous 1.20.4.6: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.6: +10 -4
lines
Pull up following revision(s) (requested by bouyer in ticket #1682):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.45
Guard against spurious xbdback_backend_changed() calls which would result
in the block device being opened twice. Fixes port-xen/45158,
although the underlying cause (multiple open of the same device not
properly handled any more) is not fixed.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Oct 25 17:25:47 2011 UTC (13 years, 1 month ago) by bouyer
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3
lines
Fix bogus KASSERT: if there is a xbdi_io, xbdi_pendingreqs must *NOT* be 0.
Not sure why it has stayed unoticed for so long ...
Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Oct 24 18:13:50 2011 UTC (13 years, 1 month ago) by jym
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +23 -14
lines
Move disconnection code to a separate function, similar to what is done
with xbdback_connect.
Revision 1.24.2.6: download - view: text, markup, annotated - select for diffs
Sat Aug 27 15:37:32 2011 UTC (13 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.24.2.5: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.2.5: +202 -87
lines
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: download - view: text, markup, annotated - select for diffs
Wed Aug 24 20:49:34 2011 UTC (13 years, 3 months ago) by jym
Branches: MAIN
CVS tags: jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +12 -5
lines
Protect xbdback(4) ring indexes from overflowing; leave the continuation
prematurely in case they do, to avoid looping "endlessly" (or at least
a very long time) at IPL_BIO while trying to handle requests.
This should not happen in a nominal scenario, but the ring can get
corrupted for whatever reason (memory errors, domU failures or
exploitation).
Revision 1.20.4.6: download - view: text, markup, annotated - select for diffs
Fri Aug 12 20:48:47 2011 UTC (13 years, 4 months ago) by riz
Branches: netbsd-5
Diff to: previous 1.20.4.5: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.5: +51 -9
lines
Pull up following revision(s) (requested by bouyer in ticket #1654):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.42
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.43
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.44
Make sure to call xbdback_trampoline() at splbio()
Several fixes to the continuation engine:
- make sure to enter the continuation loop at splbio(), and add some
KASSERT() for this.
- When a flush operation is enqueued to the workqueue, make sure the
continuation loop can't be restarted by a previous workqueue
completion or an event. We can't restart it at this point because
the flush even is still recorded as the current I/O.
For this add a xbdback_co_cache_doflush_wait() which acts as a noop;
the workqueue callback will restart the loop once the flush is complete.
Should fix "kernel diagnostic assertion xbd_io->xio_mapped == 0" panics
reported by Jeff Rizzo on port-xen@.
Add a comment explaing why a flush workqueue is handled differently from
read/write workqueue requests.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Aug 7 17:39:34 2011 UTC (13 years, 4 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +12 -6
lines
Guard against spurious xbdback_backend_changed() calls which would result
in the block device being opened twice. Fixes port-xen/45158,
although the underlying cause (multiple open of the same device not
properly handled any more) is not fixed.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Aug 7 17:15:40 2011 UTC (13 years, 4 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +8 -3
lines
Add a comment explaing why a flush workqueue is handled differently from
read/write workqueue requests.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Aug 7 17:10:35 2011 UTC (13 years, 4 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +43 -6
lines
Several fixes to the continuation engine:
- make sure to enter the continuation loop at splbio(), and add some
KASSERT() for this.
- When a flush operation is enqueued to the workqueue, make sure the
continuation loop can't be restarted by a previous workqueue
completion or an event. We can't restart it at this point because
the flush even is still recorded as the current I/O.
For this add a xbdback_co_cache_doflush_wait() which acts as a noop;
the workqueue callback will restart the loop once the flush is complete.
Should fix "kernel diagnostic assertion xbd_io->xio_mapped == 0" panics
reported by Jeff Rizzo on port-xen@.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Aug 4 18:01:49 2011 UTC (13 years, 4 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -6
lines
Make sure to call xbdback_trampoline() at splbio()
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Jul 24 23:56:34 2011 UTC (13 years, 4 months ago) by jym
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +132 -70
lines
Add more comments to xbdback(4) code. These make the continuations a bit
easier to follow (and understand). Helped tracking down a regression
between save/restore xbdback(4) states.
A few minor fixes, which are merely cosmetic:
- call graph is (somewhat) more readable
- rework the xbdback_do_io routine with a switch statement, so as to
trigger a panic() in case an invalid operation passed through the sanity
checks. panic might be overkill here, but I am sure to catch errrors in
case it happens.
Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:50 2011 UTC (13 years, 5 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +9 -9
lines
Catchup with rmind-uvmplock merge.
Revision 1.20.4.3.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 18 16:39:10 2011 UTC (13 years, 5 months ago) by bouyer
Branches: netbsd-5-1
Diff to: previous 1.20.4.3.2.1: preferred, colored; branchpoint 1.20.4.3: preferred, colored
Changes since revision 1.20.4.3.2.1: +29 -8
lines
Pull up following revision(s) (requested by jym in ticket #1630):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.37
In xbdback(4), move the code that copies segments after the bound checks
of the ``nr_segments'' variable.
In cases where we are running domUs with an architecture different from the
dom0 one (for example: 32 bits domUs on 64 bits dom0), copying segments
with an invalid nr_segments value will lead to the corruption of the
xbdback instance structure and quickly crash the dom0 backend.
Tested under 64 bits dom0 with 32 bits domUs. No regression observed.
ok bouyer@.
Will be pulled up to -4 and -5.
Revision 1.20.4.5: download - view: text, markup, annotated - select for diffs
Sat Jun 18 16:38:26 2011 UTC (13 years, 5 months ago) by bouyer
Branches: netbsd-5
Diff to: previous 1.20.4.4: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.4: +29 -8
lines
Pull up following revision(s) (requested by jym in ticket #1630):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.37
In xbdback(4), move the code that copies segments after the bound checks
of the ``nr_segments'' variable.
In cases where we are running domUs with an architecture different from the
dom0 one (for example: 32 bits domUs on 64 bits dom0), copying segments
with an invalid nr_segments value will lead to the corruption of the
xbdback instance structure and quickly crash the dom0 backend.
Tested under 64 bits dom0 with 32 bits domUs. No regression observed.
ok bouyer@.
Will be pulled up to -4 and -5.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Jun 12 03:35:50 2011 UTC (13 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +5 -5
lines
Welcome to 5.99.53! Merge rmind-uvmplock branch:
- Reorganize locking in UVM and provide extra serialisation for pmap(9).
New lock order: [vmpage-owner-lock] -> pmap-lock.
- Simplify locking in some pmap(9) modules by removing P->V locking.
- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).
- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.
- Unify /dev/mem et al in MI code and provide required locking (removes
kernel-lock on some ports). Also, avoid cache-aliasing issues.
Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.
Revision 1.31.4.5: download - view: text, markup, annotated - select for diffs
Sun Jun 12 00:24:11 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.31.4.4: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.4.4: +4 -4
lines
sync with head
Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Jun 7 16:41:14 2011 UTC (13 years, 6 months ago) by jym
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +6 -6
lines
Be more consistent for event handler naming with block backend: it is
xbdback(4) rather than xbd(4), and use i for identifier separation
(like xvif(4)).
The name is not used outside from event counters (vmstat -i), so
should be transparent to Xen block scripts.
Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:12 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +180 -146
lines
Sync with HEAD.
Revision 1.31.4.4: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:24 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.31.4.3: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.4.3: +175 -144
lines
sync with head
Revision 1.24.2.5: download - view: text, markup, annotated - select for diffs
Thu May 26 22:26:52 2011 UTC (13 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.24.2.4: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.2.4: +36 -17
lines
Pull-up some modifications from -current to my branch.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu May 26 22:16:42 2011 UTC (13 years, 6 months ago) by jym
Branches: MAIN
CVS tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3
lines
Reuse the pointer to the request operation, as set above.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat May 21 15:22:49 2011 UTC (13 years, 6 months ago) by jym
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +31 -10
lines
In xbdback(4), move the code that copies segments after the bound checks
of the ``nr_segments'' variable.
In cases where we are running domUs with an architecture different from the
dom0 one (for example: 32 bits domUs on 64 bits dom0), copying segments
with an invalid nr_segments value will lead to the corruption of the
xbdback instance structure and quickly crash the dom0 backend.
Tested under 64 bits dom0 with 32 bits domUs. No regression observed.
ok bouyer@.
Will be pulled up to -4 and -5.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun May 15 20:58:54 2011 UTC (13 years, 6 months ago) by jym
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -5
lines
As noted by rmind@, use the _nv() to fetch the new value. A race is
possible between the decrement and the fetch of the ref counter value,
hence we might call the G/C routine twice. Not good.
Also remove the 'volatile' attribute, refcnt is only use by xbdi_put/_get
and should not be exposed anywhere else (except for initialization).
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun May 15 07:24:15 2011 UTC (13 years, 7 months ago) by jym
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +7 -8
lines
Use atomic_ops(3) for ref counting.
Revision 1.24.2.4: download - view: text, markup, annotated - select for diffs
Mon May 2 22:49:59 2011 UTC (13 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.24.2.3: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.2.3: +143 -131
lines
Sync with head.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Apr 29 22:58:46 2011 UTC (13 years, 7 months ago) by jym
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +143 -131
lines
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.24.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 28 23:04:57 2011 UTC (13 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.24.2.2: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.2.2: +5 -2
lines
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.20.4.3.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 7 04:19:42 2011 UTC (13 years, 9 months ago) by riz
Branches: netbsd-5-1
Diff to: previous 1.20.4.3: preferred, colored
Changes since revision 1.20.4.3: +5 -2
lines
Pull up following revision(s) (requested by bouyer in ticket #1573):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.33
Test and set xbdi->xbdi_cont at splbio(). Otherwise we could overwrite
xbdi->xbdi_cont and process the same request twice.
Revision 1.20.4.4: download - view: text, markup, annotated - select for diffs
Mon Mar 7 04:19:13 2011 UTC (13 years, 9 months ago) by riz
Branches: netbsd-5
Diff to: previous 1.20.4.3: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.3: +5 -2
lines
Pull up following revision(s) (requested by bouyer in ticket #1573):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.33
Test and set xbdi->xbdi_cont at splbio(). Otherwise we could overwrite
xbdi->xbdi_cont and process the same request twice.
Revision 1.31.4.3: download - view: text, markup, annotated - select for diffs
Sun Mar 6 00:26:59 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.31.4.2: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.4.2: +5 -2
lines
sync with head (and fix few botches with this)
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Mar 5 15:12:16 2011 UTC (13 years, 9 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -2
lines
Test and set xbdi->xbdi_cont at splbio(). Otherwise we could overwrite
xbdi->xbdi_cont and process the same request twice.
Revision 1.24.2.2: download - view: text, markup, annotated - select for diffs
Sun Oct 24 22:48:23 2010 UTC (14 years, 1 month ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.24.2.1: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.2.1: +23 -27
lines
Sync with HEAD
Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:45:36 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +3 -3
lines
Sync with HEAD.
Revision 1.16.4.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:00 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.16.4.2: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.4.2: +3 -3
lines
sync with head.
Revision 1.31.4.2: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:30 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.31.4.1: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.4.1: +3 -3
lines
sync with head
Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Jun 24 13:03:06 2010 UTC (14 years, 5 months ago) by hannken
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base7,
uebayasi-xip-base6,
uebayasi-xip-base5,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3
lines
Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.
Welcome to 5.99.32.
Discussed on tech-kern.
Revision 1.20.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:33:45 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +151 -10
lines
sync to netbsd-5
Revision 1.31.4.1: download - view: text, markup, annotated - select for diffs
Tue Mar 16 15:38:04 2010 UTC (14 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -5
lines
Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc(). It allows us to share the locks among UVM objects.
Revision 1.16.4.2: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:11 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.16.4.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.4.1: +171 -39
lines
sync with head
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Jan 24 04:06:31 2010 UTC (14 years, 10 months ago) by haad
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base1,
uebayasi-xip-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +17 -23
lines
Finaly fix problems with using WEDGE like devices as xen backend devices.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Jan 17 12:08:29 2010 UTC (14 years, 10 months ago) by haad
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +5 -5
lines
Fix problem where xbdi->xbdi_size was set to 0 after succesfull DIOCGWEDGEINFO
call. Problem reported in private mail.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Dec 15 00:19:52 2009 UTC (14 years, 11 months ago) by haad
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +18 -16
lines
Fix problem with using wedge like devicesi(LVM Logical Volumes, ZFS Zvols)
as xkbd backend. This problem was reported by Hugo Silva on port-xen.
Now we call DIOCGWEDGEINFO for all partitions, when it is not implemented
we use DIOCGPART to get information about volume size.
Fix oked by jym@.
Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Sun Nov 1 13:58:47 2009 UTC (15 years, 1 month ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +151 -15
lines
Sync with HEAD.
Revision 1.20.4.3: download - view: text, markup, annotated - select for diffs
Sat Oct 31 12:53:21 2009 UTC (15 years, 1 month ago) by sborrill
Branches: netbsd-5
CVS tags: netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
matt-nb5-pq3-base,
matt-nb5-pq3
Branch point for: netbsd-5-1
Diff to: previous 1.20.4.2: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.2: +3 -2
lines
Pull up the following revisions(s) (requested by bouyer in ticket #1117):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.28
Fix stalled xbdback detach that would stall the whole xenbus thread,
preventing new domU from be created.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Oct 25 13:47:43 2009 UTC (15 years, 1 month ago) by bouyer
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -2
lines
When we stall the continuation waiting for the queued I/O to complete
in xbdback_co_cache_flush2(), we don't advance the req pointer. In this
case call xbdi_put() to compensate for the xbdi_get() that will be done again
in xbdback_co_main_loop().
Fix stalled xbdback detach that would stall the whole xenbus thread,
preventing new domU from be created.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Oct 19 18:41:11 2009 UTC (15 years, 1 month ago) by bouyer
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -7
lines
Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !
Revision 1.20.4.2: download - view: text, markup, annotated - select for diffs
Fri Oct 16 07:04:37 2009 UTC (15 years, 1 month ago) by snj
Branches: netbsd-5
Diff to: previous 1.20.4.1: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.1: +4 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #1093):
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.26
Don't pass a NULL arg to DIOCCACHESYNC, sd(4) dereferences it.
Pass a pointer to a int initialized to 1, so that a DIOCCACHESYNC will be
forced on sd(4).
Should fix dom0 panic reported by Sarton O'Brien.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Oct 14 18:54:00 2009 UTC (15 years, 2 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -3
lines
Don't pass a NULL arg to DIOCCACHESYNC, sd(4) dereferences it.
Pass a pointer to a int initialized to 1, so that a DIOCCACHESYNC will be
forced on sd(4).
Should fix dom0 panic reported by Sarton O'Brien.
Revision 1.20.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 28 01:25:22 2009 UTC (15 years, 2 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +149 -10
lines
Pull up following revision(s) (requested by bouyer in ticket #1026):
sys/arch/xen/xen/xbd_xenbus.c: revision 1.43 via patch
sys/arch/xen/xen/xbdback_xenbus.c: revision 1.25
xbdback: implement and publish "feature-flush-cache".
xbd: if feature-flush-cache is present, use it for DIOCCACHESYNC.
If not present, make DIOCCACHESYNC return EOPNOTSUPP and warn on
first call.
Should improve WAPBL reliability of Xen guests on a NetBSD dom0.
Unfortunably not all linux guests seems to support this feature, and using
feature-write-barrier would require a B_BARRIER flag in the buffer.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Sep 23 17:48:55 2009 UTC (15 years, 2 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +149 -10
lines
xbdback: implement and publish "feature-flush-cache".
xbd: if feature-flush-cache is present, use it for DIOCCACHESYNC.
If not present, make DIOCCACHESYNC return EOPNOTSUPP and warn on
first call.
Should improve WAPBL reliability of Xen guests on a NetBSD dom0.
Unfortunably not all linux guests seems to support this feature, and using
feature-write-barrier would require a B_BARRIER flag in the buffer.
Revision 1.16.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:14 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +45 -28
lines
sync with head.
Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:29:49 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.1: +4 -4
lines
Sync with HEAD.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Jan 21 09:55:53 2009 UTC (15 years, 10 months ago) by cegger
Branches: 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
Branch point for: jym-xensuspend
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -4
lines
buildfix: re-adapt to major()/minor() returning a 32bit value.
Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:12 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +22 -19
lines
Sync with HEAD.
Revision 1.14.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:40 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.14.6.3: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.6.3: +23 -19
lines
Sync with HEAD.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jan 16 20:16:47 2009 UTC (15 years, 10 months ago) by jym
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3
lines
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.22: download - view: text, markup, annotated - select for diffs
Mon Jan 12 08:55:48 2009 UTC (15 years, 11 months ago) by cegger
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +20 -18
lines
use PRI macro formats to printf type dev_t
Revision 1.17.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:13:43 2008 UTC (16 years ago) by haad
Branches: haad-dm
Diff to: previous 1.17.2.1: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.1: +6 -4
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Nov 17 14:12:52 2008 UTC (16 years ago) by cegger
Branches: MAIN
CVS tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -2
lines
build fix: include <sys/buf.h>
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Oct 24 18:02:58 2008 UTC (16 years, 1 month ago) by jym
Branches: 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,
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-0,
netbsd-5,
matt-nb5-mips64
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -4
lines
- 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.17.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:13 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +22 -9
lines
Sync with HEAD.
Revision 1.14.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:14 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.14.6.2: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.6.2: +20 -7
lines
Sync with HEAD.
Revision 1.16.6.3: download - view: text, markup, annotated - select for diffs
Wed Sep 24 16:38:50 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.16.6.2: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.6.2: +5 -5
lines
Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
Revision 1.16.6.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:33:39 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.16.6.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.6.1: +19 -6
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Sep 16 19:53:05 2008 UTC (16 years, 2 months ago) by bouyer
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
haad-dm-base1
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +5 -5
lines
Fix typos and pasto, from Jean-Yves Migeon (jean-yves dot migeon at espci
dot fr). Luckily this pasto is fatal only in case of a 64bit domU on a
32bit dom0, which we don't support yet as dom0.
Revision 1.3.12.2: download - view: text, markup, annotated - select for diffs
Thu Sep 4 08:46:44 2008 UTC (16 years, 3 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.3.12.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.12.1: +45 -23
lines
Sync with netbsd-4.
Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 31 14:47:38 2008 UTC (16 years, 3 months ago) by jdc
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +45 -23
lines
Pull up revisions:
sys/arch/xen/include/xenbus.h:1.8
sys/arch/xen/xen/xbd_xenbus.c:1.24
sys/arch/xen/xen/xbdback_xenbus.c:1.15
sys/arch/xen/xenbus/xenbus_xs.c:1.14
via patch (requested by bouyer in ticket #1149).
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Aug 24 21:00:49 2008 UTC (16 years, 3 months ago) by bouyer
Branches: MAIN
CVS tags: wrstuden-revivesa-base-2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +19 -6
lines
Defer xbdback_do_io() to a workqueue; which allow us to take the
xbd_io->xio_buf.b_vp->v_interlock mutex before v_numoutput++;
which should fix the "vwakeup: neg numoutput" panic.
Revision 1.14.6.2: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:02 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.14.6.1: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.6.1: +1 -1
lines
Sync with HEAD.
Revision 1.16.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:30:51 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.16.8.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:32:55 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +3 -3
lines
Sync with head.
Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:14:24 2008 UTC (16 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +3 -3
lines
sync with head.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Jun 13 22:59:03 2008 UTC (16 years, 6 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base
Branch point for: haad-dm
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
correct spelling in error message
Revision 1.3.12.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:18 2008 UTC (16 years, 6 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -1
lines
Sync with netbsd-4.
Revision 1.14.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:31 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +45 -25
lines
Sync with HEAD.
Revision 1.3.4.8: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:38:40 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.7: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.7: +5 -5
lines
sync with head.
Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:10 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +44 -24
lines
sync with head.
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 10:26:05 2008 UTC (16 years, 8 months ago) by jdc
Branches: netbsd-4
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -1
lines
Pull up revisions (requested by bouyer in ticket #1086):
src/sys/arch/xen/i386/xen_shm_machdep.c 1.3
src/sys/arch/xen/x86/xenfunc.c 1.4
src/sys/arch/xen/xen/pci_intr_machdep.c 1.4
src/sys/arch/xen/xen/pci_machdep.c 1.12
src/sys/arch/xen/xen/xbdback.c 1.30
src/sys/arch/xen/xen/xbdback_xenbus.c 1.14
src/sys/arch/xen/xen/xen_acpi_machdep.c 1.4
src/sys/arch/xen/xen/xenevt.c 1.20
src/sys/arch/xen/xen/xengnt.c 1.6
src/sys/arch/xen/xen/xennetback.c 1.31
Add missing __KERNEL_RCSID()
Revision 1.6.6.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:30 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.6.6.2: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.6.2: +46 -23
lines
sync with HEAD
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Mar 22 14:21:56 2008 UTC (16 years, 8 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
hpcarm-cleanup-nbase,
ad-socklock-base1
Branch point for: yamt-pf42,
yamt-nfs-mp,
wrstuden-revivesa,
simonb-wapbl
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -5
lines
vn_close no longer takes a 'struct lwp' argument.
Revision 1.3.4.7: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:36 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.6: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.6: +44 -24
lines
sync with head.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Mar 13 22:19:39 2008 UTC (16 years, 9 months ago) by bouyer
Branches: MAIN
CVS tags: matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +44 -24
lines
Add swedge support to xbd backed, and make the virtual block device handle
sizes larger than 4TB. Tested by Jukka Marin.
Should fix kern/37370.
Revision 1.3.4.6: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:29 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.5: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.5: +4 -1
lines
sync with head.
Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:21 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.1: +15 -5
lines
Sync with HEAD.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Feb 17 14:03:16 2008 UTC (16 years, 9 months ago) by bouyer
Branches: MAIN
CVS tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
hpcarm-cleanup-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -1
lines
Add missing __KERNEL_RCSID()
Revision 1.3.4.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:40:36 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.4: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.4: +12 -5
lines
sync with head
Revision 1.6.6.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:50:22 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.6.6.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.6.1: +174 -58
lines
sync with HEAD
Revision 1.11.6.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:10:43 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.11.6.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.6.1: +1 -0
lines
Sync with HEAD
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jan 6 12:43:42 2008 UTC (16 years, 11 months ago) by bouyer
Branches: MAIN
CVS tags: matt-armv6-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -1
lines
Fix fallout from vmlocking2: in xbdback_co_io_loop(), return the right object.
Revision 1.11.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:51:34 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +11 -5
lines
Sync with HEAD
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Jan 2 11:48:33 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +11 -5
lines
Merge vmlocking2 to head.
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 1 15:42:09 2008 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +11 -5
lines
Make it build. XXX does not use getiobuf/putiobuf.
Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:18:28 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +163 -54
lines
Sync with HEAD.
Revision 1.3.4.4: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:27:23 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.3: +163 -54
lines
sync with head
Revision 1.3.10.4: download - view: text, markup, annotated - select for diffs
Mon Dec 3 18:40:48 2007 UTC (17 years ago) by ad
Branches: vmlocking
Diff to: previous 1.3.10.3: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.10.3: +163 -54
lines
Sync with HEAD.
Revision 1.6.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:36:31 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +163 -54
lines
Sync with HEAD. amd64 Xen support needs testing.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Nov 26 19:01:28 2007 UTC (17 years ago) by pooka
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf
Branch point for: vmlocking2,
bouyer-xeni386
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3
lines
Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start. In case the calling lwp is desired, curlwp should
be used.
quick consensus on tech-kern
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Nov 25 23:23:09 2007 UTC (17 years ago) by bouyer
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -1
lines
Ops, don't forget break in switch statements ...
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Nov 25 22:44:39 2007 UTC (17 years ago) by bouyer
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +151 -46
lines
Add support for the "protocol" entry in xenstore, which really specifies
the ABI used by the front-end (x86 32 or 64 bit). A linux 32bit PAE kernel
can now boot on a NetBSD 64bit dom0 and use the block devices.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Nov 22 16:17:09 2007 UTC (17 years ago) by bouyer
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +8 -7
lines
Pull up the bouyer-xenamd64 branch to HEAD. This brings in amd64 support
to NetBSD/Xen, both Dom0 and DomU.
Revision 1.6.10.3: download - view: text, markup, annotated - select for diffs
Fri Nov 16 17:29:59 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.6.10.2: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.10.2: +3 -2
lines
Fix printf formap for i386
Revision 1.6.10.2: download - view: text, markup, annotated - select for diffs
Fri Nov 16 17:18:04 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.6.10.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.10.1: +2 -2
lines
Initial domain0 support for xenamd64. The kernel boots multiuser, but
xen tools have not been tried yet.
In this process, cleanup some more the page table bootstrap, and properly
handle event counters for soft interrupts.
Revision 1.6.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:24:35 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -1
lines
sync with HEAD
Revision 1.6.10.1: download - view: text, markup, annotated - select for diffs
Wed Oct 17 21:08:25 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -5
lines
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.7: download - view: text, markup, annotated - select for diffs
Wed Oct 17 19:58:33 2007 UTC (17 years, 1 month ago) by garbled
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: mjf-devfs
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -1
lines
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.4.8.1: download - view: text, markup, annotated - select for diffs
Wed Oct 3 19:26:16 2007 UTC (17 years, 2 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +3 -4
lines
Sync with HEAD
Revision 1.3.4.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:31:38 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.2: +6 -7
lines
sync with head.
Revision 1.3.10.3: download - view: text, markup, annotated - select for diffs
Sun Aug 19 19:24:19 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3.10.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.10.2: +2 -3
lines
- Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).
Revision 1.5.4.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:48:02 2007 UTC (17 years, 4 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +2 -3
lines
Sync with HEAD.
Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 7 18:05:56 2007 UTC (17 years, 4 months ago) by matt
Branches: matt-mips64
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +2 -3
lines
Sync with HEAD.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:15:43 2007 UTC (17 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
vmlocking-base,
ppcoea-renovation-base,
nick-csl-alignment-base5,
matt-mips64-base,
hpcarm-cleanup
Branch point for: matt-armv6,
jmcneill-pm,
bouyer-xenamd64
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -3
lines
It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
Revision 1.3.10.2: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:17:22 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3.10.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.10.1: +2 -2
lines
Sync with head.
Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:03:38 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +2 -2
lines
Sync with head.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jul 9 20:52:40 2007 UTC (17 years, 5 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base,
mjf-ufs-trans-base
Branch point for: nick-csl-alignment,
matt-mips64
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2
lines
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
Revision 1.3.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 24 14:55:07 2007 UTC (17 years, 8 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +4 -4
lines
sync with head.
Revision 1.3.10.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:50:16 2007 UTC (17 years, 9 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4
lines
Sync with head.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Mar 12 18:18:29 2007 UTC (17 years, 9 months ago) by ad
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: ppcoea-renovation,
mjf-ufs-trans
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4
lines
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:47:25 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.1: +1380 -0
lines
sync with head.
Revision 1.1.12.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:16:43 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.1.12.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.12.1: +8 -1
lines
sync with head.
Revision 1.1.8.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:29:39 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +31 -8
lines
Sync with head.
Revision 1.3.4.1
Tue Nov 14 22:14:56 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.3: +0 -1380
lines
file xbdback_xenbus.c was added on branch yamt-lazymbuf on 2006-12-30 20:47:25 +0000
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Nov 14 22:14:56 2006 UTC (18 years, 1 month ago) by bouyer
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-base-1,
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,
matt-nb4-arm-base,
matt-nb4-arm,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-lazymbuf,
yamt-idlelwp,
wrstuden-fixsa,
vmlocking,
netbsd-4
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +8 -1
lines
vn_lock() the vnode we got from bdevvp(), otherwise if something else uses
this device in userland (e.g. qemu-dm when running a HVM guest), we'll reuse
the existing vnode and we'll panic in VOP_UNLOCK(). We don't have this issue
most of the time because when xbdback is the only user, we get a specfs
vnode for which locking operation are NOPs.
Thanks to Antti Kantee for spotting the missing vn_lock() in sources and
giving details about vnode locking.
Revision 1.1.12.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:20 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +24 -8
lines
sync with head
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Oct 15 21:34:48 2006 UTC (18 years, 2 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +24 -8
lines
Don't rely on the /dev entry in the xenstore to get the handle; extract
it from the xenstore path. /dev will have whatever is in the guest's config
file disk entry, and this may not be a number (in the case of HVM guests
it's a string starting with 'ioemu').
Revision 1.1.10.2: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:45:05 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.1.10.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.10.1: +1357 -0
lines
sync with head
Revision 1.1.6.2: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:43:16 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.1.6.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.6.1: +1357 -0
lines
sync with head
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 13 17:49:07 2006 UTC (18 years, 5 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +1357 -0
lines
Merge from HEAD.
Revision 1.1.10.1
Sun Jul 2 16:35:24 2006 UTC (18 years, 5 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
FILE REMOVED
Changes since revision 1.1: +0 -1357
lines
file xbdback_xenbus.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:45:05 +0000
Revision 1.1.6.1
Sun Jul 2 16:35:24 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
FILE REMOVED
Changes since revision 1.1: +0 -1357
lines
file xbdback_xenbus.c was added on branch yamt-pdpolicy on 2006-08-11 15:43:16 +0000
Revision 1.1.2.1
Sun Jul 2 16:35:24 2006 UTC (18 years, 5 months ago) by gdamore
Branches: gdamore-uart
FILE REMOVED
Changes since revision 1.1: +0 -1357
lines
file xbdback_xenbus.c was added on branch gdamore-uart on 2006-07-13 17:49:07 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jul 2 16:35:24 2006 UTC (18 years, 5 months ago) by bouyer
Branches: 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,
yamt-pdpolicy,
rpaulo-netinet-merge-pcb,
newlock2,
gdamore-uart
block device backend driver for Xen3. Add
pseudo-device xbdback
in your config file to use.
CVSweb <webmaster@jp.NetBSD.org>