Up to [cvs.NetBSD.org] / src / sys / arch / xen / include
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.32 / (download) - annotate - [select for diffs], Thu May 7 19:48:58 2020 UTC (3 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
netbsd-10-base,
netbsd-10,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
HEAD
Changes since 1.31: +2 -3
lines
Diff to previous 1.31 (colored)
Change event_set_handler() to take the target CPU parameter. If ci is NULL, event_set_handler() will choose the CPU and bind the event. If ci is not NULL the caller is responsible for binding the event. Use a IPI xcall to register the handlers if needed. pull in a hack from x86 to force pirq handlers to be mpsafe if registered at a level != IPL_VM. This is for the com at isa interrupt handler, which registers at IPL_HIGH and has to way to tell it's mpsafe (taking KERNEL_LOCK at IPL_HIGH causes deadlocks on MP systems).
Revision 1.31 / (download) - annotate - [select for diffs], Mon May 4 15:55:56 2020 UTC (3 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.30: +1 -3
lines
Diff to previous 1.30 (colored)
add support for using MSI for XenPV Dom0 use PHYSDEVOP_map_pirq to get the pirq/gsi for MSI/MSI-X, switch also INTx to use it instead of PHYSDEVOP_alloc_irq_vector MSI confirmed working with single-vector MSI for wm(4), ahcisata(4), bge(4) XXX added some provision for MSI-X, but it doesn't actually work (no interrupts delivered), needs some further investigation; disable MSI-X for XENPV via flag in x86/pci/pci_machdep.c
Revision 1.30 / (download) - annotate - [select for diffs], Sat Apr 25 15:26:17 2020 UTC (3 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.29: +5 -4
lines
Diff to previous 1.29 (colored)
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.26.2.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:13 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.26.2.2: +1 -1
lines
Diff to previous 1.26.2.2 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored)
Sync with HEAD
Revision 1.28.2.3 / (download) - annotate - [select for diffs], Mon Apr 20 19:46:44 2020 UTC (3 years, 1 month ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.28.2.2: +3 -3
lines
Diff to previous 1.28.2.2 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)
Misc fixes after merge
Revision 1.28.2.2 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:00 2020 UTC (3 years, 1 month ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.28.2.1: +2 -2
lines
Diff to previous 1.28.2.1 (colored) to branchpoint 1.28 (colored)
Sync with HEAD
Revision 1.28.2.1 / (download) - annotate - [select for diffs], Sun Apr 19 11:40:30 2020 UTC (3 years, 1 month ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.28: +3 -2
lines
Diff to previous 1.28 (colored)
Add a struct pic * member to struct intrhand. This will be used for interrupt_get_count() For Xen remplace pic_type with a pointer to the pic, and add a pointer to intrhand, in struct pintrhand Make event_set_handler return the pointer to struct intrhand. Don't allocate a fake intrhand in xen_intr_establish_xname(), use the one returned by event_set_handler().
Revision 1.29 / (download) - annotate - [select for diffs], Mon Apr 13 22:54:12 2020 UTC (3 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: phil-wifi-20200421,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1
Changes since 1.28: +2 -2
lines
Diff to previous 1.28 (colored)
By default, events are bound to CPU 0 (exept for IPIs and VTIMERs which are bound to a different CPU at creation time). Recent MI changes caused the scheduler to choose a different CPU when probing and attaching xennet devices (I guess it's the xenbus thread which runs on a different CPU). This cause the callback to be called on a different CPU than the one expected by the kernel, and the event is ignored. It is handled when the clock causes the callback to be called on the right CPU, which is why xennet still run, but slowly. Change event_set_handler() to do a EVTCHNOP_bind_vcpu if requested to, and make sure we don't do it for IPIs and VIRQs (for theses, the op fails).
Revision 1.26.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:12 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.26.2.1: +1 -1
lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored)
Mostly merge changes from HEAD upto 20200411
Revision 1.26.2.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:59 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.26: +2 -2
lines
Diff to previous 1.26 (colored)
Merge changes from current as of 20200406
Revision 1.28 / (download) - annotate - [select for diffs], Mon Apr 6 19:26:00 2020 UTC (3 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-20200411,
bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Changes since 1.27: +2 -2
lines
Diff to previous 1.27 (colored)
add known_mpsafe parameter also to pirq_establish(), and pass the parameter to underlying event_set_handler()
Revision 1.27 / (download) - annotate - [select for diffs], Mon Apr 6 18:02:33 2020 UTC (3 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-20200406
Changes since 1.26: +2 -2
lines
Diff to previous 1.26 (colored)
remove restriction on interrupt level for MP-safe interrupt handlers
Revision 1.25.2.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:47 2018 UTC (4 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.25: +4 -3
lines
Diff to previous 1.25 (colored) next main 1.26 (colored)
Sync with HEAD
Revision 1.26 / (download) - annotate - [select for diffs], Sun Jun 24 13:35:32 2018 UTC (4 years, 11 months ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-base,
phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
netbsd-9-base,
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,
is-mlppp-base,
is-mlppp,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Branch point for: phil-wifi
Changes since 1.25: +4 -3
lines
Diff to previous 1.25 (colored)
add support for kern.intr.list aka intrctl(8) 'list' for xen event_set_handler() and pirq_establish() now have extra intrname parameter; shared intr_create_intrid() is used to provide the value xen drivers were changed to pass the specific driver instance name as the xname, e.g. 'vcpu0 clock' instead just 'clock', or 'xencons0' instead of 'xencons' associated evcnt is now changed to use intrname - this matches native x86
Revision 1.20.12.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:51 2017 UTC (5 years, 6 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.20: +5 -1
lines
Diff to previous 1.20 (colored) next main 1.21 (colored)
update from HEAD
Revision 1.25 / (download) - annotate - [select for diffs], Sat Nov 4 14:56:48 2017 UTC (5 years, 7 months ago) by cherry
Branch: 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
Changes since 1.24: +3 -1
lines
Diff to previous 1.24 (colored)
Retire xen/x86/intr.c and use the new xen specific glue in x86/x86/intr.c The purpose of this change is to expose the x86/include/intr.h API to drivers. Specifically the following functions: void *intr_establish_xname(...); void *intr_establish(...); void intr_disestablish(...); while maintaining the old API from xen/include/evtchn.h, specifically the following functions: int event_set_handler(...); int event_remove_handler(...); This is so that if things break, we can keep using the old API until everything stabilises. This is a stepping stone towards getting the actual XEN event callback path rework code in place - which can be done opaquely behind the intr.h API - NetBSD/XEN specific drivers that have been ported to the intr.h API should then work without significant further modifications.
Revision 1.22.14.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:57 2017 UTC (5 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.22.14.1: +2 -1
lines
Diff to previous 1.22.14.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)
Sync with HEAD
Revision 1.24.2.2 / (download) - annotate - [select for diffs], Sun Jul 16 05:03:37 2017 UTC (5 years, 10 months ago) by cherry
Branch: perseant-stdc-iso10646
Changes since 1.24.2.1: +73 -0
lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)
2752365
Revision 1.24.2.1, Sun Jul 16 05:03:36 2017 UTC (5 years, 10 months ago) by cherry
Branch: perseant-stdc-iso10646
Changes since 1.24: +0 -73
lines
FILE REMOVED
file evtchn.h was added on branch perseant-stdc-iso10646 on 2017-07-16 05:03:37 +0000
Revision 1.24 / (download) - annotate - [select for diffs], Sun Jul 16 05:03:36 2017 UTC (5 years, 10 months ago) by cherry
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base,
nick-nhusb-base-20170825
Branch point for: perseant-stdc-iso10646
Changes since 1.23: +2 -1
lines
Diff to previous 1.23 (colored)
Add a glue function to inspect event channel<->legacy IRQ mappings. This is towards getting xen to use more x86/ "native" code.
Revision 1.20.8.1 / (download) - annotate - [select for diffs], Tue Apr 14 14:59:11 2015 UTC (8 years, 1 month ago) by msaitoh
Branch: netbsd-6
Changes since 1.20: +2 -1
lines
Diff to previous 1.20 (colored) next main 1.21 (colored)
Pull up following revision(s) (requested by bouyer in ticket #1278): sys/arch/xen/include/evtchn.h: revision 1.23 sys/arch/xen/xen/evtchn.c: revision 1.71 sys/arch/xen/xen/pci_intr_machdep.c: revision 1.17 Properly implemement pci_intr_disestablish(9), so that interrupt handlers stop being called when the device has been detached. Should fix PR port-xen/47720 (which turns out to not be related to raidframe). While there fix possible races in event_remove_handler() and pirq_establish().
Revision 1.22.14.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:04 2015 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.22: +2 -1
lines
Diff to previous 1.22 (colored)
Sync with HEAD
Revision 1.22.12.1 / (download) - annotate - [select for diffs], Wed Mar 18 04:42:11 2015 UTC (8 years, 2 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-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,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Changes since 1.22: +2 -1
lines
Diff to previous 1.22 (colored) next main 1.23 (colored)
Pull up following revision(s) (requested by bouyer in ticket #618): sys/arch/xen/include/evtchn.h: revision 1.23 sys/arch/xen/xen/evtchn.c: revision 1.71 sys/arch/xen/xen/pci_intr_machdep.c: revision 1.17 Properly implemement pci_intr_disestablish(9), so that interrupt handlers stop being called when the device has been detached. Should fix PR port-xen/47720 (which turns out to not be related to raidframe). While there fix possible races in event_remove_handler() and pirq_establish().
Revision 1.23 / (download) - annotate - [select for diffs], Sat Mar 14 10:49:36 2015 UTC (8 years, 2 months ago) by bouyer
Branch: MAIN
CVS Tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
netbsd-8-base,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Changes since 1.22: +2 -1
lines
Diff to previous 1.22 (colored)
Properly implemement pci_intr_disestablish(9), so that interrupt handlers stop being called when the device has been detached. Should fix PR port-xen/47720 (which turns out to not be related to raidframe). While there fix possible races in event_remove_handler() and pirq_establish().
Revision 1.22 / (download) - annotate - [select for diffs], Sat Jan 12 17:39:46 2013 UTC (10 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base9,
yamt-pagecache-base8,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
rmind-smpnet,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
nick-nhusb-base,
netbsd-7-base,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: nick-nhusb,
netbsd-7
Changes since 1.21: +0 -3
lines
Diff to previous 1.21 (colored)
Back out this commit: http://mail-index.netbsd.org/source-changes/2012/12/28/msg039950.html which cause a panic when running tests on amd64, as shown on: http://www-soc.lip6.fr/~bouyer/NetBSD-tests/xen/HEAD/ (i386 hangs for unrelated reasons).
Revision 1.21 / (download) - annotate - [select for diffs], Fri Dec 28 06:29:56 2012 UTC (10 years, 5 months ago) by cherry
Branch: MAIN
Changes since 1.20: +4 -1
lines
Diff to previous 1.20 (colored)
Simplify the xen event handler callback by: - moving the interrupt handler callback traversal into a separate function. - using evt_iterate_bits() to scan through the pending bitfield - removing cross-cpu pending actions - events recieved on the wrong vcpu are re-routed via hypervisor_send_event(). - simplifying nested while() loops by encapsulating them in equivalent functions. Many thanks for multiple reviews by bouyer@ and jym@
Revision 1.20 / (download) - annotate - [select for diffs], Tue Sep 20 00:12:23 2011 UTC (11 years, 8 months ago) by jym
Branch: MAIN
CVS Tags: yamt-pagecache-tag8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
yamt-pagecache,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: tls-maxphys,
netbsd-6
Changes since 1.19: +4 -1
lines
Diff to previous 1.19 (colored)
Merge jym-xensuspend branch in -current. ok bouyer@. Goal: save/restore support in NetBSD domUs, for i386, i386 PAE and amd64. Executive summary: - split all Xen drivers (xenbus(4), grant tables, xbd(4), xennet(4)) in two parts: suspend and resume, and hook them to pmf(9). - modify pmap so that Xen hypervisor does not cry out loud in case it finds "unexpected" recursive memory mappings - provide a sysctl(7), machdep.xen.suspend, to command suspend from userland via powerd(8). Note: a suspend can only be handled correctly when dom0 requested it, so provide a mechanism that will prevent kernel to blindly validate user's commands The code is still in experimental state, use at your own risk: restore can corrupt backend communications rings; this can completely thrash dom0 as it will loop at a high interrupt level trying to honor all domU requests. XXX PAE suspend does not work in amd64 currently, due to (yet again!) page validation issues with hypervisor. Will fix. XXX secondary CPUs are not suspended, I will write the handlers in sync with cherry's Xen MP work. Tested under i386 and amd64, bear in mind ring corruption though. No build break expected, GENERICs and XEN* kernels should be fine. ./build.sh distribution still running. In any case: sorry if it does break for you, contact me directly for reports.
Revision 1.17.8.4 / (download) - annotate - [select for diffs], Sat Aug 27 15:37:31 2011 UTC (11 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.17.8.3: +5 -2
lines
Diff to previous 1.17.8.3 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)
Sync with HEAD. Most notably: uvm/pmap work done by rmind@, and MP Xen work of cherry@. No regression observed on suspend/restore.
Revision 1.18.10.3 / (download) - annotate - [select for diffs], Wed Aug 17 09:40:39 2011 UTC (11 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.18.10.2: +3 -4
lines
Diff to previous 1.18.10.2 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)
Pullup relevant changes from -current
Revision 1.19 / (download) - annotate - [select for diffs], Thu Aug 11 17:58:59 2011 UTC (11 years, 9 months ago) by cherry
Branch: MAIN
CVS Tags: jym-xensuspend-nbase,
jym-xensuspend-base
Changes since 1.18: +5 -2
lines
Diff to previous 1.18 (colored)
Make event/interrupt handling MP aware
Revision 1.18.10.2 / (download) - annotate - [select for diffs], Thu Aug 4 09:07:46 2011 UTC (11 years, 10 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.18.10.1: +4 -2
lines
Diff to previous 1.18.10.1 (colored) to branchpoint 1.18 (colored)
first cut at per-cpu event handling
Revision 1.18.10.1 / (download) - annotate - [select for diffs], Fri Jun 3 13:27:40 2011 UTC (12 years ago) by cherry
Branch: cherry-xenmp
Changes since 1.18: +3 -1
lines
Diff to previous 1.18 (colored)
Initial import of xen MP sources, with kernel and userspace tests. - this is a source priview. - boots to single user. - spurious interrupt and pmap related panics are normal
Revision 1.15.10.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:10 2010 UTC (13 years, 3 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15.10.1: +1 -6
lines
Diff to previous 1.15.10.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)
sync with head
Revision 1.17.8.3 / (download) - annotate - [select for diffs], Sun Nov 1 21:43:28 2009 UTC (13 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.17.8.2: +4 -1
lines
Diff to previous 1.17.8.2 (colored) to branchpoint 1.17 (colored)
- Upgrade suspend/resume code to comply with Xen2 removal. - Add support for PAE domUs suspend/resume. - Fix an issue regarding initialization of the xbd ring I/O that could end badly during resume, with invalid block operations submitted to dom0 backend. NetBSD supports PAE under x86_32 by considering the L2 page as being 4 pages long instead of 1. Xen validates the page types during resume. Sadly, the hypervisor handles alternative recursive mappings (== PG/PD entries pointing to pages other than self) inadequately, which could lead to incorrect page pinning. As a result, the important change with this patch is to clear these alternative mappings during suspend, and reset them back to their former self upon resume. For PAE, approx. all 4 PDIR_SLOT_PTEs could be considered as alternative recursive mappings. See comments in pmap.c for further details. Now, let the testing and bug hunting begin.
Revision 1.17.8.2 / (download) - annotate - [select for diffs], Sun Nov 1 13:58:45 2009 UTC (13 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.17.8.1: +1 -9
lines
Diff to previous 1.17.8.1 (colored) to branchpoint 1.17 (colored)
Sync with HEAD.
Revision 1.18 / (download) - annotate - [select for diffs], Fri Oct 23 02:32:33 2009 UTC (13 years, 7 months ago) by snj
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9,
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,
uebayasi-xip-base1,
uebayasi-xip-base,
uebayasi-xip,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
rmind-uvmplock,
matt-premerge-20091211,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
cherry-xenmp-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.17: +1 -6
lines
Diff to previous 1.17 (colored)
Remove 3rd and 4th clauses. OK cl@ (copyright holder).
Revision 1.15.10.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:12 2009 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15: +5 -4
lines
Diff to previous 1.15 (colored)
sync with head.
Revision 1.17.8.1 / (download) - annotate - [select for diffs], Mon Feb 9 00:03:55 2009 UTC (14 years, 4 months ago) by jym
Branch: jym-xensuspend
Changes since 1.17: +4 -1
lines
Diff to previous 1.17 (colored)
Initial code for xen save/restore/migrate facilities. - split the attach code of frontends in two half: one that is only needed during autoconf(9) attach/detach phases, and one used at each save/restore of device state (between suspend and resume). Applies to hypervisor, xencons, xenbus, xbd, and xennet. - add a rwlock(9) ("ptom_lock") to protect the different parts in the kernel that manipulate MFNs (which could change between a suspend and a resume, without the kernel noticing it). Parts that require MFNs acquire a reader lock, while suspend code will acquire a writer lock to ensure that no-other parts in kernel still use MFNs. - integrate the suspend code with sysmon. - various things in pmap(9), and clock. TODO: - factorize code a bit more inside frontends drivers. - remove all alternative recursive (APDP_PDE) mappings found in PD/PT during suspend, as Xen does not support them. - abstract the ptom_lock locking, it is only required when kernel preemption is enabled, or on MP systems. Current code works mostly. You may experience difficulties in some corner cases (dom0 warnings about xennet interface errors, and Xen tools failing to validate NetBSD's alternative pmaps).
Revision 1.15.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:39 2009 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.15.6.1: +3 -3
lines
Diff to previous 1.15.6.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)
Sync with HEAD.
Revision 1.16.2.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:13:39 2008 UTC (14 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.16: +4 -4
lines
Diff to previous 1.16 (colored) next main 1.17 (colored)
Update haad-dm branch to haad-dm-base2.
Revision 1.17 / (download) - annotate - [select for diffs], Fri Oct 24 21:09:24 2008 UTC (14 years, 7 months ago) by jym
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
nick-hppapmap,
netbsd-5-base,
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,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
mjf-devfs2-base,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
jymxensuspend-base,
haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.16: +4 -4
lines
Diff to previous 1.16 (colored)
- rename init_events() to events_init(), to better reflect netbsd semantics - change unbind_[pv]irq_from_evtch() so that they now return the event channel the [PV]IRQ was bound to. It reflects the opposite behaviour of the bind_[pv]irq_to_evtch() functions. - remove xenbus_suspend() and xenbus_resume() prototypes, as they are not used anywhere else, and will conflict with the xenbus pmf(9) handlers. - make start_info aligned on a page boundary, as Xen expects it to be so. - mask event channel during xbd detach before removing its handler (can avoid spurious events). - add the "protocol" entry in xenstore during xbd initialization. Normally created during domU's boot by xentools, it is under domU's responsibility in all other cases (save/restore, hot plugging, etc.). - modifications to xs_init(), so that it can properly return an error. Reviewed by Christoph (cegger@).
Revision 1.15.12.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:33:38 2008 UTC (14 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.15: +2 -1
lines
Diff to previous 1.15 (colored) next main 1.16 (colored)
Sync with wrstuden-revivesa-base-2.
Revision 1.15.14.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:37:57 2008 UTC (14 years, 11 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.15: +2 -1
lines
Diff to previous 1.15 (colored) next main 1.16 (colored)
Sync with head.
Revision 1.15.6.1 / (download) - annotate - [select for diffs], Wed Jul 2 19:08:19 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.15: +2 -1
lines
Diff to previous 1.15 (colored)
Sync with HEAD.
Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 1 18:49:21 2008 UTC (14 years, 11 months ago) by bouyer
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base,
haad-dm-base1
Branch point for: haad-dm
Changes since 1.15: +2 -1
lines
Diff to previous 1.15 (colored)
Raise ci_idepth (and switch to interrupt stack on i386) becore calling xenevt_event().
Revision 1.13.24.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:29 2008 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.13.24.1: +4 -1
lines
Diff to previous 1.13.24.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)
sync with HEAD
Revision 1.9.2.4 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:29 2008 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.2.3: +4 -1
lines
Diff to previous 1.9.2.3 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)
sync with head.
Revision 1.15 / (download) - annotate - [select for diffs], Tue Feb 19 13:25:53 2008 UTC (15 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
nick-net80211-sync-base,
nick-net80211-sync,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base,
ad-socklock-base1
Branch point for: yamt-nfs-mp,
wrstuden-revivesa,
simonb-wapbl,
mjf-devfs2
Changes since 1.14: +4 -1
lines
Diff to previous 1.14 (colored)
Fix xenevt to not call softint_schedule() above IPL_HIGH: Register a ipl callback for IPL_HIGH. if the current ipl level is too high, just record the event in a bitmap, and record IPL_HIGH as pending. The callback will process the pending events.
Revision 1.9.2.3 / (download) - annotate - [select for diffs], Mon Jan 21 09:40:24 2008 UTC (15 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.2.2: +4 -1
lines
Diff to previous 1.9.2.2 (colored) to branchpoint 1.9 (colored)
sync with head
Revision 1.13.24.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:50:05 2008 UTC (15 years, 5 months ago) by matt
Branch: matt-armv6
Changes since 1.13: +4 -1
lines
Diff to previous 1.13 (colored)
sync with HEAD
Revision 1.13.32.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:43:00 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.13: +4 -1
lines
Diff to previous 1.13 (colored) next main 1.14 (colored)
Sync with head.
Revision 1.13.36.1 / (download) - annotate - [select for diffs], Thu Dec 13 19:36:00 2007 UTC (15 years, 5 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.13: +4 -1
lines
Diff to previous 1.13 (colored) next main 1.14 (colored)
cleanup the way debug event is handled: make it bypass the IPL system completely, it's called by shortcuts in the normal path because we want it to be always called, even if the IPL is high. Fix debug even recursion on XEN2
Revision 1.13.34.1 / (download) - annotate - [select for diffs], Thu Dec 13 05:05:24 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-kmem
Changes since 1.13: +4 -1
lines
Diff to previous 1.13 (colored) next main 1.14 (colored)
sync with head.
Revision 1.14 / (download) - annotate - [select for diffs], Wed Dec 12 22:16:32 2007 UTC (15 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-kmem-base3,
vmlocking2-base3,
mjf-devfs-base,
matt-armv6-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Changes since 1.13: +4 -1
lines
Diff to previous 1.13 (colored)
cleanup the debug event handler to not use the IPL system at all. Fix debug event storm on XEN2.
Revision 1.11.20.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:01:02 2007 UTC (16 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.11.20.1: +2 -1
lines
Diff to previous 1.11.20.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)
Sync with head.
Revision 1.9.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:25 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.2.1: +4 -2
lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored)
sync with head.
Revision 1.11.22.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:43 2006 UTC (16 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.11.22.1: +2 -1
lines
Diff to previous 1.11.22.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)
sync with head.
Revision 1.13 / (download) - annotate - [select for diffs], Fri Dec 8 15:05:18 2006 UTC (16 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-idlelwp-base8,
yamt-idlelwp,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
vmlocking-base,
vmlocking,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
reinoud-bufcleanup,
ppcoea-renovation-base,
ppcoea-renovation,
post-newlock2-merge,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
newlock2-nbase,
newlock2-base,
mjf-ufs-trans-base,
mjf-ufs-trans,
mjf-devfs,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
jmcneill-pm-base,
jmcneill-pm,
jmcneill-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-kmem,
vmlocking2,
matt-armv6,
bouyer-xeni386
Changes since 1.12: +2 -1
lines
Diff to previous 1.12 (colored)
- pass intrframe by-pointer, not by-value. - make i386 and xen use per-cpu interrupt stack. xen part is reviewed by Manuel Bouyer.
Revision 1.11.20.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:29:39 2006 UTC (16 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.11: +3 -2
lines
Diff to previous 1.11 (colored)
Sync with head.
Revision 1.11.22.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:20 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.11: +3 -2
lines
Diff to previous 1.11 (colored)
sync with head
Revision 1.12 / (download) - annotate - [select for diffs], Thu Sep 28 18:53:15 2006 UTC (16 years, 8 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm
Changes since 1.11: +3 -2
lines
Diff to previous 1.11 (colored)
Add Xen3 support for ACPI and/or MPBIOS + IOAPIC. To help with this, physical CPUs are now configured on mainbus only in dom0, and only to know about their APIC id. virtual CPUs are attached to hypervisor as: vcpu* at hypervisor? and this is what's used as curcpu(). The kernel config files needs to be updated for this, see XEN3_DOM0 or XEN3_DOMU for examples. XEN3_DOM0 now has acpi, MPBIOS and ioapic by default. Note that a Xen dom0 kernel doens't have access to the lapic.
Revision 1.9.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:58:15 2006 UTC (16 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9: +2 -2
lines
Diff to previous 1.9 (colored)
sync with head.
Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 11 12:19:48 2005 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
yamt-pdpolicy,
simonb-timecounters-base,
simonb-timecounters,
simonb-timcounters-final,
rpaulo-netinet-merge-pcb-base,
rpaulo-netinet-merge-pcb,
peter-altq-base,
peter-altq,
gdamore-uart-base,
gdamore-uart,
elad-kernelauth-base,
elad-kernelauth,
chap-midi-nbase,
chap-midi-base,
chap-midi,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Changes since 1.10: +1 -1
lines
Diff to previous 1.10 (colored)
merge ktrace-lwp.
Revision 1.2.4.3 / (download) - annotate - [select for diffs], Thu Nov 10 14:00:34 2005 UTC (17 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.4.2: +12 -18
lines
Diff to previous 1.2.4.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)
Sync with HEAD. Here we go again...
Revision 1.2.2.8 / (download) - annotate - [select for diffs], Wed Sep 14 22:26:03 2005 UTC (17 years, 8 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0
Changes since 1.2.2.7: +1 -1
lines
Diff to previous 1.2.2.7 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)
Pull up following revision(s) (requested by bouyer in ticket #777): sys/arch/xen/include/evtchn.h: revision 1.10 The line number in the PCI interrupt register can be larger than 31 on some hardware, depending on how Xen set things up. So bump NR_PIRQ from 32 to 256.
Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 10 18:24:35 2005 UTC (17 years, 9 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Changes since 1.9: +2 -2
lines
Diff to previous 1.9 (colored)
The line number in the PCI interrupt register can be larger than 31 on some hardware, depending on how Xen set things up. So bump NR_PIRQ from 32 to 256.
Revision 1.2.2.7 / (download) - annotate - [select for diffs], Sun May 1 22:11:39 2005 UTC (18 years, 1 month ago) by tron
Branch: netbsd-3
Changes since 1.2.2.6: +2 -2
lines
Diff to previous 1.2.2.6 (colored) to branchpoint 1.2 (colored)
Pull up revision 1.9 (requested by yamt in ticket #238): rename do_event to evtchan_do_event. the former is too generic name and it actually hides a bug in xennetback.
Revision 1.1.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:29 2005 UTC (18 years, 1 month ago) by kent
Branch: kent-audio2
Changes since 1.1: +61 -0
lines
Diff to previous 1.1 (colored) next main 1.2 (colored)
sync with -current
Revision 1.9 / (download) - annotate - [select for diffs], Thu Apr 28 18:26:26 2005 UTC (18 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.8: +2 -2
lines
Diff to previous 1.8 (colored)
rename do_event to evtchan_do_event. the former is too generic name and it actually hides a bug in xennetback.
Revision 1.2.2.6 / (download) - annotate - [select for diffs], Thu Apr 28 10:39:11 2005 UTC (18 years, 1 month ago) by tron
Branch: netbsd-3
Changes since 1.2.2.5: +1 -2
lines
Diff to previous 1.2.2.5 (colored) to branchpoint 1.2 (colored)
Pull up revision 1.8 (requested by bouyer in ticket #192): Event handling optimisations: - sort the ih_evt_handler list by IPL, higher first. Otherwise some handlers would have been delayed, event if they could run at the current IPL. - As ih_evt_handler is sorted, remove IPLs that have been processed for an event when calling hypervisor_set_ipending() - In hypervisor_set_ipending(), enter the event in ipl_evt_mask only for the lowest IPL. As deffered IPLs are processed high to low, this ensure that hypervisor_enable_event() will be called only when all callbacks have been called for an event. We don't need the evtch_maskcount[] counters any more. Thanks to YAMAMOTO Takashi for ideas and feedback.
Revision 1.2.2.5 / (download) - annotate - [select for diffs], Thu Apr 28 10:33:00 2005 UTC (18 years, 1 month ago) by tron
Branch: netbsd-3
Changes since 1.2.2.4: +2 -1
lines
Diff to previous 1.2.2.4 (colored) to branchpoint 1.2 (colored)
Pull up revision 1.7 (requested by bouyer in ticket #192): don't unmask an event channel until all interrupts for it are served. fix problems with shared (physical) interrupts.
Revision 1.2.2.4 / (download) - annotate - [select for diffs], Thu Apr 28 10:28:12 2005 UTC (18 years, 1 month ago) by tron
Branch: netbsd-3
Changes since 1.2.2.3: +1 -1
lines
Diff to previous 1.2.2.3 (colored) to branchpoint 1.2 (colored)
Pull up revision 1.6 (requested by bouyer in ticket #192): Allow to pass a more descriptive name to event_set_handler() (e.g. IRQ number for physical IRQ, or device name for xen device drivers). This makes systat and vmstat output more usable, especially as the channel numbers change each time a guest reboots.
Revision 1.2.2.3 / (download) - annotate - [select for diffs], Thu Apr 28 10:19:17 2005 UTC (18 years, 1 month ago) by tron
Branch: netbsd-3
Changes since 1.2.2.2: +10 -16
lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored)
Pull up revision 1.5 (requested by bouyer in ticket #192): Get rid of the event to pseudo-irq mapping. We are limited to 32 pseudo-irq, including soft interrupt, and this is way too low in some use (lots of domains, or domains with lots of xennet, or even hardware with lots of devices at different interrupts). Based on idea from YAMAMOTO Takashi, keep one list of handler per-event and one per-IPL (so the same handler is now in 2 lists). In the common case were an event is received at low IPL, we can call the handlers quickly (there is usually only one handler per event, unless the event is mapped to a physical interrupt and this interrupt is shared by different devices). Deffered events and software interrupts are handled by a bitmask (as before) with one bit per IPL. When one IPL has an event pending all handlers for this IPL will be called. With this change, it is now possible to have all the 1024 events active. While here, handle debug event in a special way: the handler is always called, regardless of the current IPL. Make the handler print usefull informations about events and IPL states. Also remove code not used on Xen in files inherited from the x86 port.
Revision 1.8 / (download) - annotate - [select for diffs], Wed Apr 20 14:48:29 2005 UTC (18 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.7: +1 -2
lines
Diff to previous 1.7 (colored)
Event handling optimisations: - sort the ih_evt_handler list by IPL, higher first. Otherwise some handlers would have been delayed, event if they could run at the current IPL. - As ih_evt_handler is sorted, remove IPLs that have been processed for an event when calling hypervisor_set_ipending() - In hypervisor_set_ipending(), enter the event in ipl_evt_mask only for the lowest IPL. As deffered IPLs are processed high to low, this ensure that hypervisor_enable_event() will be called only when all callbacks have been called for an event. We don't need the evtch_maskcount[] counters any more. Thanks to YAMAMOTO Takashi for ideas and feedback.
Revision 1.7 / (download) - annotate - [select for diffs], Mon Apr 18 20:23:56 2005 UTC (18 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.6: +2 -1
lines
Diff to previous 1.6 (colored)
don't unmask an event channel until all interrupts for it are served. fix problems with shared (physical) interrupts.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Apr 17 14:50:11 2005 UTC (18 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.5: +2 -2
lines
Diff to previous 1.5 (colored)
Allow to pass a more descriptive name to event_set_handler() (e.g. IRQ number for physical IRQ, or device name for xen device drivers). This makes systat and vmstat output more usable, especially as the channel numbers change each time a guest reboots.
Revision 1.5 / (download) - annotate - [select for diffs], Sat Apr 16 22:49:37 2005 UTC (18 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.4: +10 -16
lines
Diff to previous 1.4 (colored)
Get rid of the event to pseudo-irq mapping. We are limited to 32 pseudo-irq, including soft interrupt, and this is way too low in some use (lots of domains, or domains with lots of xennet, or even hardware with lots of devices at different interrupts). Based on idea from YAMAMOTO Takashi, keep one list of handler per-event and one per-IPL (so the same handler is now in 2 lists). In the common case were an event is received at low IPL, we can call the handlers quickly (there is usually only one handler per event, unless the event is mapped to a physical interrupt and this interrupt is shared by different devices). Deffered events and software interrupts are handled by a bitmask (as before) with one bit per IPL. When one IPL has an event pending all handlers for this IPL will be called. With this change, it is now possible to have all the 1024 events active. While here, handle debug event in a special way: the handler is always called, regardless of the current IPL. Make the handler print usefull informations about events and IPL states. Also remove code not used on Xen in files inherited from the x86 port.
Revision 1.2.2.2 / (download) - annotate - [select for diffs], Wed Apr 13 21:38:52 2005 UTC (18 years, 1 month ago) by tron
Branch: netbsd-3
Changes since 1.2.2.1: +2 -2
lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)
Pull up revision 1.4 (requested by yamt in ticket #146): fix a bug which corrupts runqueue. when dealing with events, which are handed to xenevt pseudo device, don't call wakeup(9)/selnotify(9) at too high IPL. PR/29792.
Revision 1.2.2.1 / (download) - annotate - [select for diffs], Wed Apr 13 21:33:35 2005 UTC (18 years, 1 month ago) by tron
Branch: netbsd-3
Changes since 1.2: +2 -2
lines
Diff to previous 1.2 (colored)
Pull up revision 1.3 (requested by yamt in ticket #143): don't stamp soft interrupts.
Revision 1.4 / (download) - annotate - [select for diffs], Mon Apr 11 12:10:31 2005 UTC (18 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.3: +1 -1
lines
Diff to previous 1.3 (colored)
fix a bug which corrupts runqueue. when dealing with events, which are handed to xenevt pseudo device, don't call wakeup(9)/selnotify(9) at too high IPL. PR/29792.
Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 11 09:24:04 2005 UTC (18 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.2: +2 -2
lines
Diff to previous 1.2 (colored)
don't stamp soft interrupts.
Revision 1.2.4.2 / (download) - annotate - [select for diffs], Fri Apr 1 14:29:10 2005 UTC (18 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.4.1: +67 -0
lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored)
Sync with HEAD.
Revision 1.1.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:33:25 2005 UTC (18 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.1: +67 -0
lines
Diff to previous 1.1 (colored) next main 1.2 (colored)
sync with head. xen and whitespace. xen part is not finished.
Revision 1.2.4.1, Wed Mar 9 22:39:20 2005 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2: +0 -67
lines
FILE REMOVED
file evtchn.h was added on branch ktrace-lwp on 2005-04-01 14:29:10 +0000
Revision 1.2 / (download) - annotate - [select for diffs], Wed Mar 9 22:39:20 2005 UTC (18 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base
Branch point for: netbsd-3,
ktrace-lwp
Changes since 1.1: +67 -0
lines
Diff to previous 1.1 (colored)
Merge the bouyer-xen2 branch. This add supports for the Xen 2.0 virtual machine kernel (both privileged and non-privileged domains), and remove support for the old xen 1.2.
Revision 1.1.2.4 / (download) - annotate - [select for diffs], Tue Mar 8 19:31:39 2005 UTC (18 years, 3 months ago) by bouyer
Branch: bouyer-xen2
Changes since 1.1.2.3: +3 -1
lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)
Add infrastructure to unregsiter event callbacks.
Revision 1.1.2.3 / (download) - annotate - [select for diffs], Fri Jan 21 10:16:08 2005 UTC (18 years, 4 months ago) by bouyer
Branch: bouyer-xen2
Changes since 1.1.2.2: +3 -1
lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)
- Add a centralised handler for physical interrupts, which will call the real handler. This is not necessery but is usefull for debug. - make irq_needs_unmask_notify[] per-IRQ, instead of per physical IRQ - use a static physdev_op_t for PHYSDEVOP_IRQ_UNMASK_NOTIFY (it never changes, so no need to allocate a new one each time) - call pirq_notify() from hypervisor_enable_irq().
Revision 1.1.2.2 / (download) - annotate - [select for diffs], Tue Jan 18 14:52:15 2005 UTC (18 years, 4 months ago) by bouyer
Branch: bouyer-xen2
Changes since 1.1.2.1: +11 -1
lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)
Implement physical IRQ mapping.
Revision 1.1.2.1 / (download) - annotate - [select for diffs], Mon Dec 13 17:52:21 2004 UTC (18 years, 5 months ago) by bouyer
Branch: bouyer-xen2
Changes since 1.1: +53 -0
lines
Diff to previous 1.1 (colored)
Commit files from netbsd-2.0-xen-sparse/sys/arch/xen in the Xen-2.0 distribution. These are the files modified from the 2.0 tree to get NetBSD/xen working with Xen 2.
Revision 1.1, Mon Dec 13 17:52:21 2004 UTC (18 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-km-base2,
yamt-km-base
Branch point for: yamt-km,
kent-audio2,
bouyer-xen2
FILE REMOVED
file evtchn.h was initially added on branch bouyer-xen2.