CVS commit: src/sys/arch

2010-07-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Tue Jul  6 15:00:10 UTC 2010

Modified Files:
src/sys/arch/amd64/conf: XEN3_DOM0 XEN3_DOMU
src/sys/arch/i386/conf: XEN3_DOM0 XEN3_DOMU
src/sys/arch/xen/conf: files.xen
src/sys/arch/xen/xenbus: xenbus_probe.c
Added Files:
src/sys/arch/xen/include: balloon.h
src/sys/arch/xen/xen: balloon.c

Log Message:
The Xen balloon driver enables growing and shrinking
PV domains on the fly, by collaborating with UVM and the hypervisor


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/amd64/conf/XEN3_DOM0
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/amd64/conf/XEN3_DOMU
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/i386/conf/XEN3_DOM0
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/i386/conf/XEN3_DOMU
cvs rdiff -u -r1.107 -r1.108 src/sys/arch/xen/conf/files.xen
cvs rdiff -u -r0 -r1.1 src/sys/arch/xen/include/balloon.h
cvs rdiff -u -r0 -r1.1 src/sys/arch/xen/xen/balloon.c
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/xen/xenbus/xenbus_probe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2010-07-08 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Jul  8 14:19:53 UTC 2010

Modified Files:
src/sys/arch/xen/xen: balloon.c

Log Message:
make read-only, and return sane values in balloon related sysctl(7)
nodes when  'options XEN_BALLOON' is disabled.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/xen/xen/balloon.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2010-07-08 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Jul  8 14:51:14 UTC 2010

Modified Files:
src/sys/arch/xen/xen: balloon.c

Log Message:
Provide the sysctl(7) interface to the balloon driver only to dom0


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/xen/xen/balloon.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2010-07-10 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Jul 10 11:20:49 UTC 2010

Modified Files:
src/sys/arch/xen/xen: balloon.c

Log Message:
Provide and accept memory reservation information from the hypervisor
in KiloBytes. This is valid both for the xenbus interface, as well as
the dom0 only sysctl interface.

Thanks cegger@ for testing.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/xen/xen/balloon.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-03-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Mar  7 02:24:57 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: fpu.c

Log Message:
Use macros clts/stts instead of directly manipulating CR0 flags.
Expose fpuinit to XEN build. (remove #ifdef XEN)


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/amd64/amd64/fpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2011-06-02 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Jun  2 22:15:22 UTC 2011

Modified Files:
src/doc: BRANCHES

Log Message:
Add note about cherry-xenmp branch


To generate a diff of this commit:
cvs rdiff -u -r1.307 -r1.308 src/doc/BRANCHES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src

2011-06-03 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Jun  3 13:27:44 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64 [cherry-xenmp]: db_interface.c fpu.c machdep.c
src/sys/arch/amd64/conf [cherry-xenmp]: XEN3_DOMU std.xen
src/sys/arch/amd64/include [cherry-xenmp]: frameasm.h intrdefs.h pmap.h
src/sys/arch/x86/include [cherry-xenmp]: cpu.h cpuvar.h intrdefs.h
pmap.h
src/sys/arch/x86/x86 [cherry-xenmp]: ipi.c pmap.c x86_machdep.c
src/sys/arch/xen/conf [cherry-xenmp]: files.xen
src/sys/arch/xen/include [cherry-xenmp]: evtchn.h intr.h xenpmap.h
src/sys/arch/xen/include/amd64 [cherry-xenmp]: hypercalls.h
src/sys/arch/xen/x86 [cherry-xenmp]: cpu.c hypervisor_machdep.c intr.c
x86_xpmap.c xen_bus_dma.c xenfunc.c
src/sys/arch/xen/xen [cherry-xenmp]: clock.c evtchn.c hypervisor.c
src/sys/sys [cherry-xenmp]: resourcevar.h
Added Files:
src/sys/arch/xen/include [cherry-xenmp]: intrdefs.h
src/sys/arch/xen/x86 [cherry-xenmp]: xen_ipi.c
src/sys/arch/xen/xen [cherry-xenmp]: xentests.c
src/tests/kernel/port-xen [cherry-xenmp]: Makefile arrayalloc.c
arrayalloc.h barriers.c barriers.h system.c system.h t_tlb_thrash.c
t_xen_ipi.c thread.c thread.h

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.23.2.1 src/sys/arch/amd64/amd64/db_interface.c
cvs rdiff -u -r1.34 -r1.34.2.1 src/sys/arch/amd64/amd64/fpu.c
cvs rdiff -u -r1.160 -r1.160.2.1 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.30 -r1.30.2.1 src/sys/arch/amd64/conf/XEN3_DOMU
cvs rdiff -u -r1.6 -r1.6.10.1 src/sys/arch/amd64/conf/std.xen
cvs rdiff -u -r1.15 -r1.15.6.1 src/sys/arch/amd64/include/frameasm.h
cvs rdiff -u -r1.1 -r1.1.140.1 src/sys/arch/amd64/include/intrdefs.h
cvs rdiff -u -r1.24 -r1.24.2.1 src/sys/arch/amd64/include/pmap.h
cvs rdiff -u -r1.34 -r1.34.2.1 src/sys/arch/x86/include/cpu.h
cvs rdiff -u -r1.43 -r1.43.2.1 src/sys/arch/x86/include/cpuvar.h
cvs rdiff -u -r1.16 -r1.16.6.1 src/sys/arch/x86/include/intrdefs.h
cvs rdiff -u -r1.38 -r1.38.2.1 src/sys/arch/x86/include/pmap.h
cvs rdiff -u -r1.18 -r1.18.6.1 src/sys/arch/x86/x86/ipi.c
cvs rdiff -u -r1.121 -r1.121.2.1 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.50 -r1.50.2.1 src/sys/arch/x86/x86/x86_machdep.c
cvs rdiff -u -r1.118 -r1.118.2.1 src/sys/arch/xen/conf/files.xen
cvs rdiff -u -r1.18 -r1.18.10.1 src/sys/arch/xen/include/evtchn.h
cvs rdiff -u -r1.31 -r1.31.10.1 src/sys/arch/xen/include/intr.h
cvs rdiff -u -r0 -r1.9.34.2 src/sys/arch/xen/include/intrdefs.h
cvs rdiff -u -r1.27 -r1.27.2.1 src/sys/arch/xen/include/xenpmap.h
cvs rdiff -u -r1.6 -r1.6.2.1 src/sys/arch/xen/include/amd64/hypercalls.h
cvs rdiff -u -r1.56 -r1.56.2.1 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.14 -r1.14.2.1 src/sys/arch/xen/x86/hypervisor_machdep.c
cvs rdiff -u -r1.27 -r1.27.6.1 src/sys/arch/xen/x86/intr.c
cvs rdiff -u -r1.26 -r1.26.2.1 src/sys/arch/xen/x86/x86_xpmap.c
cvs rdiff -u -r1.22 -r1.22.6.1 src/sys/arch/xen/x86/xen_bus_dma.c
cvs rdiff -u -r0 -r1.1.2.1 src/sys/arch/xen/x86/xen_ipi.c
cvs rdiff -u -r1.11 -r1.11.6.1 src/sys/arch/xen/x86/xenfunc.c
cvs rdiff -u -r1.54 -r1.54.6.1 src/sys/arch/xen/xen/clock.c
cvs rdiff -u -r1.47 -r1.47.6.1 src/sys/arch/xen/xen/evtchn.c
cvs rdiff -u -r1.55 -r1.55.2.1 src/sys/arch/xen/xen/hypervisor.c
cvs rdiff -u -r0 -r1.1.2.1 src/sys/arch/xen/xen/xentests.c
cvs rdiff -u -r1.52 -r1.52.2.1 src/sys/sys/resourcevar.h
cvs rdiff -u -r0 -r1.1.2.1 src/tests/kernel/port-xen/Makefile \
src/tests/kernel/port-xen/arrayalloc.c \
src/tests/kernel/port-xen/arrayalloc.h \
src/tests/kernel/port-xen/barriers.c src/tests/kernel/port-xen/barriers.h \
src/tests/kernel/port-xen/system.c src/tests/kernel/port-xen/system.h \
src/tests/kernel/port-xen/t_tlb_thrash.c \
src/tests/kernel/port-xen/t_xen_ipi.c src/tests/kernel/port-xen/thread.c \
src/tests/kernel/port-xen/thread.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2011-06-21 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Tue Jun 21 07:20:57 UTC 2011

Modified Files:
src/sys/sys: userret.h

Log Message:
#include  before using struct proc.p_timerpend


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/sys/userret.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen

2011-06-26 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Jun 26 12:56:33 UTC 2011

Modified Files:
src/sys/arch/xen/include [cherry-xenmp]: intr.h
src/sys/arch/xen/xen [cherry-xenmp]: hypervisor.c

Log Message:
Unbreak uniprocessor build


To generate a diff of this commit:
cvs rdiff -u -r1.31.10.1 -r1.31.10.2 src/sys/arch/xen/include/intr.h
cvs rdiff -u -r1.55.2.1 -r1.55.2.2 src/sys/arch/xen/xen/hypervisor.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/conf

2011-06-27 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Jun 27 10:21:53 UTC 2011

Modified Files:
src/sys/arch/xen/conf [cherry-xenmp]: files.xen

Log Message:
Conditionally compile xen_ipi.c


To generate a diff of this commit:
cvs rdiff -u -r1.118.2.2 -r1.118.2.3 src/sys/arch/xen/conf/files.xen

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/x86

2011-06-27 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Jun 27 10:23:21 UTC 2011

Modified Files:
src/sys/arch/xen/x86 [cherry-xenmp]: x86_xpmap.c

Log Message:
Add xpq locking around xpq-QUEUE_TLB_FLUSH()


To generate a diff of this commit:
cvs rdiff -u -r1.26.2.2 -r1.26.2.3 src/sys/arch/xen/x86/x86_xpmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch

2011-07-16 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Jul 16 10:59:46 UTC 2011

Modified Files:
src/sys/arch/x86/include [cherry-xenmp]: cpu.h
src/sys/arch/x86/x86 [cherry-xenmp]: pmap.c
src/sys/arch/xen/x86 [cherry-xenmp]: cpu.c x86_xpmap.c xen_pmap.c

Log Message:
Introduce a per-cpu "shadow" for pmap_kernel()'s L4 page


To generate a diff of this commit:
cvs rdiff -u -r1.34.2.2 -r1.34.2.3 src/sys/arch/x86/include/cpu.h
cvs rdiff -u -r1.121.2.2 -r1.121.2.3 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.56.2.2 -r1.56.2.3 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.26.2.3 -r1.26.2.4 src/sys/arch/xen/x86/x86_xpmap.c
cvs rdiff -u -r1.2.2.1 -r1.2.2.2 src/sys/arch/xen/x86/xen_pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/x86/x86

2011-07-23 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Jul 23 09:21:53 UTC 2011

Modified Files:
src/sys/arch/x86/x86 [cherry-xenmp]: ipi.c

Log Message:
Remove the bogus TLB ipi wrapper code. We don't use it in xen anyway.
This syncs back, with -current.


To generate a diff of this commit:
cvs rdiff -u -r1.18.6.1 -r1.18.6.2 src/sys/arch/x86/x86/ipi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/xen

2011-07-25 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Jul 25 17:29:43 UTC 2011

Modified Files:
src/sys/arch/xen/xen [cherry-xenmp]: clock.c

Log Message:
Do not register the same callback more than once.


To generate a diff of this commit:
cvs rdiff -u -r1.54.6.1 -r1.54.6.2 src/sys/arch/xen/xen/clock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch

2011-07-31 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Jul 31 20:49:12 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64 [cherry-xenmp]: db_interface.c
src/sys/arch/i386/i386 [cherry-xenmp]: db_interface.c gdt.c machdep.c
src/sys/arch/i386/include [cherry-xenmp]: intrdefs.h pmap.h
src/sys/arch/i386/isa [cherry-xenmp]: npx.c
src/sys/arch/x86/x86 [cherry-xenmp]: pmap.c pmap_tlb.c
src/sys/arch/xen/conf [cherry-xenmp]: std.xen
src/sys/arch/xen/x86 [cherry-xenmp]: cpu.c x86_xpmap.c xen_ipi.c
xenfunc.c

Log Message:
grow MP support for i386. boots to single user


To generate a diff of this commit:
cvs rdiff -u -r1.23.2.1 -r1.23.2.2 src/sys/arch/amd64/amd64/db_interface.c
cvs rdiff -u -r1.66 -r1.66.2.1 src/sys/arch/i386/i386/db_interface.c
cvs rdiff -u -r1.50 -r1.50.10.1 src/sys/arch/i386/i386/gdt.c
cvs rdiff -u -r1.702.2.1 -r1.702.2.2 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.3 -r1.3.140.1 src/sys/arch/i386/include/intrdefs.h
cvs rdiff -u -r1.109 -r1.109.2.1 src/sys/arch/i386/include/pmap.h
cvs rdiff -u -r1.139.6.1 -r1.139.6.2 src/sys/arch/i386/isa/npx.c
cvs rdiff -u -r1.121.2.3 -r1.121.2.4 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.3.2.2 -r1.3.2.3 src/sys/arch/x86/x86/pmap_tlb.c
cvs rdiff -u -r1.6 -r1.6.12.1 src/sys/arch/xen/conf/std.xen
cvs rdiff -u -r1.56.2.3 -r1.56.2.4 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.26.2.4 -r1.26.2.5 src/sys/arch/xen/x86/x86_xpmap.c
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/sys/arch/xen/x86/xen_ipi.c
cvs rdiff -u -r1.11.6.1 -r1.11.6.2 src/sys/arch/xen/x86/xenfunc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/x86/x86

2011-07-31 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Jul 31 20:55:22 UTC 2011

Modified Files:
src/sys/arch/x86/x86 [cherry-xenmp]: pmap_tlb.c

Log Message:
Oops. remove spurious "#undef MULTIPROCESSOR"


To generate a diff of this commit:
cvs rdiff -u -r1.3.2.3 -r1.3.2.4 src/sys/arch/x86/x86/pmap_tlb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen

2011-08-04 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Aug  4 09:07:47 UTC 2011

Modified Files:
src/sys/arch/xen/include [cherry-xenmp]: evtchn.h hypervisor.h intr.h
src/sys/arch/xen/x86 [cherry-xenmp]: hypervisor_machdep.c
src/sys/arch/xen/xen [cherry-xenmp]: evtchn.c xenevt.c

Log Message:
first cut at per-cpu event handling


To generate a diff of this commit:
cvs rdiff -u -r1.18.10.1 -r1.18.10.2 src/sys/arch/xen/include/evtchn.h
cvs rdiff -u -r1.31 -r1.31.10.1 src/sys/arch/xen/include/hypervisor.h
cvs rdiff -u -r1.31.10.2 -r1.31.10.3 src/sys/arch/xen/include/intr.h
cvs rdiff -u -r1.14.2.1 -r1.14.2.2 src/sys/arch/xen/x86/hypervisor_machdep.c
cvs rdiff -u -r1.47.6.1 -r1.47.6.2 src/sys/arch/xen/xen/evtchn.c
cvs rdiff -u -r1.37 -r1.37.2.1 src/sys/arch/xen/xen/xenevt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/xen

2011-08-04 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Aug  4 13:04:20 UTC 2011

Modified Files:
src/sys/arch/xen/xen [cherry-xenmp]: evtchn.c

Log Message:
Send an ipi at IPL_HIGH to remote cpu, in order to get it to run spllower()


To generate a diff of this commit:
cvs rdiff -u -r1.47.6.2 -r1.47.6.3 src/sys/arch/xen/xen/evtchn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/xen

2011-08-05 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Aug  5 17:26:27 UTC 2011

Modified Files:
src/sys/arch/xen/xen [cherry-xenmp]: xentests.c

Log Message:
pmap_enter() test needs an address that work for both i386 and amd64


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/sys/arch/xen/xen/xentests.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/i386/i386

2011-08-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Aug  6 14:05:35 UTC 2011

Modified Files:
src/sys/arch/i386/i386 [cherry-xenmp]: gdt.c

Log Message:
gdtgrow() must extend the gdt size on all cpus, not just the primary


To generate a diff of this commit:
cvs rdiff -u -r1.50.10.1 -r1.50.10.2 src/sys/arch/i386/i386/gdt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/i386/i386

2011-08-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Aug  6 21:06:34 UTC 2011

Modified Files:
src/sys/arch/i386/i386 [cherry-xenmp]: machdep.c

Log Message:
Update cpu local GDT entries for TLS registers %gs and %fs


To generate a diff of this commit:
cvs rdiff -u -r1.702.2.2 -r1.702.2.3 src/sys/arch/i386/i386/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch

2011-08-07 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Aug  7 19:48:08 UTC 2011

Modified Files:
src/sys/arch/i386/i386 [cherry-xenmp]: machdep.c
src/sys/arch/xen/x86 [cherry-xenmp]: cpu.c

Log Message:
Fix XEN3PAE_DOMx build


To generate a diff of this commit:
cvs rdiff -u -r1.702.2.3 -r1.702.2.4 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.56.2.4 -r1.56.2.5 src/sys/arch/xen/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/include

2011-08-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Aug 10 06:29:23 UTC 2011

Added Files:
src/sys/arch/xen/include: intrdefs.h

Log Message:
Add Xen specific ipi bitmasks


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.10 src/sys/arch/xen/include/intrdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-08-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Aug 10 06:30:59 UTC 2011

Modified Files:
src/sys/arch/amd64/include: intrdefs.h
src/sys/arch/i386/include: intrdefs.h

Log Message:
Include Xen specific definitions.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amd64/include/intrdefs.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/i386/include/intrdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/include

2011-08-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Aug 10 06:33:13 UTC 2011

Modified Files:
src/sys/arch/amd64/include: frameasm.h

Log Message:
Correct offset calculation for ci


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/amd64/include/frameasm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/i386

2011-08-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Aug 10 06:38:02 UTC 2011

Modified Files:
src/sys/arch/i386/i386: machdep.c

Log Message:
tweak the xen specific startup path to not use %fs before it is setup. Minor 
refactoring. Use Xen specific ipi calls.


To generate a diff of this commit:
cvs rdiff -u -r1.706 -r1.707 src/sys/arch/i386/i386/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/include

2011-08-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Aug 10 06:40:35 UTC 2011

Modified Files:
src/sys/arch/x86/include: cpu.h

Log Message:
Add Xen specific members to struct cpu_info, Add proper per-cpu curcpu() 
functionality


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/x86/include/cpu.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen

2011-08-10 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Aug 10 09:50:37 UTC 2011

Modified Files:
src/sys/arch/xen/include: xenpmap.h
src/sys/arch/xen/x86: x86_xpmap.c

Log Message:
Introduce locking primitives for Xen pte operations, and xen helper calls for 
MP related MMU ops


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/xen/include/xenpmap.h
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/xen/x86/x86_xpmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-08-10 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Aug 10 11:39:46 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: fpu.c machdep.c
src/sys/arch/i386/isa: npx.c
src/sys/arch/x86/x86: x86_machdep.c
src/sys/arch/xen/conf: files.xen
src/sys/arch/xen/include: intr.h
Added Files:
src/sys/arch/xen/x86: xen_ipi.c

Log Message:
xen ipi infrastructure


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/amd64/amd64/fpu.c
cvs rdiff -u -r1.162 -r1.163 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.140 -r1.141 src/sys/arch/i386/isa/npx.c
cvs rdiff -u -r1.53 -r1.54 src/sys/arch/x86/x86/x86_machdep.c
cvs rdiff -u -r1.121 -r1.122 src/sys/arch/xen/conf/files.xen
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/xen/include/intr.h
cvs rdiff -u -r0 -r1.2 src/sys/arch/xen/x86/xen_ipi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2011-08-10 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Aug 10 20:38:45 UTC 2011

Modified Files:
src/sys/arch/xen/x86: xen_ipi.c

Log Message:
KNF police (rmind@ :-)


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/xen/x86/xen_ipi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen

2011-08-10 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Aug 10 21:46:02 UTC 2011

Modified Files:
src/sys/arch/xen/include: hypervisor.h
src/sys/arch/xen/x86: hypervisor_machdep.c
src/sys/arch/xen/xen: evtchn.c

Log Message:
refactor the bitstring/mask operations to be behind an API. Make pending 
interrupt marking cpu aware.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/xen/include/hypervisor.h
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/xen/x86/hypervisor_machdep.c
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/xen/xen/evtchn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/i386

2011-08-11 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Aug 11 11:01:31 UTC 2011

Modified Files:
src/sys/arch/i386/i386: gdt.c

Log Message:
per-cpu gdt support for xen


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/i386/i386/gdt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen

2011-08-11 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Aug 11 17:59:00 UTC 2011

Modified Files:
src/sys/arch/xen/include: evtchn.h intr.h
src/sys/arch/xen/x86: intr.c
src/sys/arch/xen/xen: evtchn.c xenevt.c

Log Message:
Make event/interrupt handling MP aware


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/xen/include/evtchn.h
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/xen/include/intr.h
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/xen/x86/intr.c
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/xen/xen/evtchn.c
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/xen/xen/xenevt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-08-11 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Aug 11 18:05:11 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: fpu.c
src/sys/arch/i386/isa: npx.c

Log Message:
More appropriate use of xen_send_ipi().


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/amd64/amd64/fpu.c
cvs rdiff -u -r1.141 -r1.142 src/sys/arch/i386/isa/npx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-08-11 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Aug 11 18:11:17 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: machdep.c
src/sys/arch/i386/i386: machdep.c
src/sys/arch/x86/include: cpu.h
src/sys/arch/x86/x86: cpu.c x86_machdep.c
src/sys/arch/xen/x86: cpu.c

Log Message:
Hide the MD details of specific IPIs behind semantically pleasing functions. 
This cleans up a couple of #ifdef XEN/#endif pairs


To generate a diff of this commit:
cvs rdiff -u -r1.163 -r1.164 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.707 -r1.708 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/x86/include/cpu.h
cvs rdiff -u -r1.90 -r1.91 src/sys/arch/x86/x86/cpu.c
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/x86/x86/x86_machdep.c
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/xen/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-08-11 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Aug 11 18:36:14 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: fpu.c
src/sys/arch/i386/isa: npx.c

Log Message:
unbreak the build. #include 


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/amd64/amd64/fpu.c
cvs rdiff -u -r1.142 -r1.143 src/sys/arch/i386/isa/npx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-08-11 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Aug 11 19:52:53 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: db_interface.c
src/sys/arch/i386/i386: db_interface.c

Log Message:
make ddb minimally MP aware


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/amd64/amd64/db_interface.c
cvs rdiff -u -r1.66 -r1.67 src/sys/arch/i386/i386/db_interface.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2011-08-11 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Aug 11 20:33:20 UTC 2011

Modified Files:
src/sys/arch/x86/x86: cpu.c

Log Message:
Unbreak the build. (conflicting types in function declaration and definition)

Thanks riz@


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sys/arch/x86/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen

2011-08-13 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Aug 13 11:41:57 UTC 2011

Modified Files:
src/sys/arch/xen/include: xenpmap.h
src/sys/arch/xen/x86: x86_xpmap.c

Log Message:
remove unnecessary locking overhead for UP


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/xen/include/xenpmap.h
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/xen/x86/x86_xpmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-08-13 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Aug 13 12:09:39 UTC 2011

Modified Files:
src/sys/arch/amd64/include: pmap.h
src/sys/arch/i386/i386: machdep.c
src/sys/arch/i386/include: pmap.h
src/sys/arch/x86/include: pmap.h
src/sys/arch/xen/x86: x86_xpmap.c xen_pmap.c xenfunc.c

Log Message:
Add locking around ops to the hypervisor MMU "queue".


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/amd64/include/pmap.h
cvs rdiff -u -r1.708 -r1.709 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.109 -r1.110 src/sys/arch/i386/include/pmap.h
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/x86/include/pmap.h
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/xen/x86/x86_xpmap.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/xen/x86/xen_pmap.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/xen/x86/xenfunc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-08-13 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Aug 13 12:37:30 UTC 2011

Modified Files:
src/sys/arch/x86/include: cpuvar.h
src/sys/arch/xen/x86: cpu.c
src/sys/arch/xen/xen: hypervisor.c

Log Message:
MP probing and startup code


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/x86/include/cpuvar.h
cvs rdiff -u -r1.61 -r1.62 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/xen/xen/hypervisor.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2011-08-13 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Aug 13 16:22:15 UTC 2011

Modified Files:
src/sys/arch/xen/x86: intr.c

Log Message:
Remove spurious header.
Thanks rmind@


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/xen/x86/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2011-08-13 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Aug 13 17:23:42 UTC 2011

Modified Files:
src/sys/arch/xen/xen: evtchn.c

Log Message:
Use spin mutices correctly.
 - Prune redundant splxx()/splx() pairs.
 - Do not "leak" a mutex_spin_enter() via conditional return.

Thanks rmind@


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/xen/xen/evtchn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2011-08-13 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Aug 13 20:24:19 UTC 2011

Modified Files:
src/sys/arch/xen/x86: x86_xpmap.c

Log Message:
Call the right function
(fix for an egregious error)


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/xen/x86/x86_xpmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2011-08-15 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Aug 15 20:14:52 UTC 2011

Modified Files:
src/sys/arch/xen/x86: cpu.c

Log Message:
Do not panic() on xen_send_ipi() sent to a cpu not yet running.
x86 MP boot depends on this strange behaviour.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/xen/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2011-08-15 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Aug 15 20:17:12 UTC 2011

Modified Files:
src/sys/arch/xen/x86: xen_ipi.c

Log Message:
invert buggy ci_flag test


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/xen/x86/xen_ipi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch

2011-08-17 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Aug 17 09:40:40 UTC 2011

Modified Files:
src/sys/arch/i386/include [cherry-xenmp]: cpu.h
src/sys/arch/x86/include [cherry-xenmp]: cpu.h
src/sys/arch/x86/x86 [cherry-xenmp]: pmap.c
src/sys/arch/xen/include [cherry-xenmp]: evtchn.h intr.h xenpmap.h
src/sys/arch/xen/x86 [cherry-xenmp]: cpu.c hypervisor_machdep.c intr.c
x86_xpmap.c xen_ipi.c
src/sys/arch/xen/xen [cherry-xenmp]: evtchn.c xentests.c

Log Message:
Pullup relevant changes from -current


To generate a diff of this commit:
cvs rdiff -u -r1.176 -r1.176.12.1 src/sys/arch/i386/include/cpu.h
cvs rdiff -u -r1.34.2.3 -r1.34.2.4 src/sys/arch/x86/include/cpu.h
cvs rdiff -u -r1.121.2.4 -r1.121.2.5 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.18.10.2 -r1.18.10.3 src/sys/arch/xen/include/evtchn.h
cvs rdiff -u -r1.31.10.3 -r1.31.10.4 src/sys/arch/xen/include/intr.h
cvs rdiff -u -r1.27.2.2 -r1.27.2.3 src/sys/arch/xen/include/xenpmap.h
cvs rdiff -u -r1.56.2.5 -r1.56.2.6 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.14.2.2 -r1.14.2.3 src/sys/arch/xen/x86/hypervisor_machdep.c
cvs rdiff -u -r1.27.6.1 -r1.27.6.2 src/sys/arch/xen/x86/intr.c
cvs rdiff -u -r1.26.2.5 -r1.26.2.6 src/sys/arch/xen/x86/x86_xpmap.c
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/sys/arch/xen/x86/xen_ipi.c
cvs rdiff -u -r1.47.6.3 -r1.47.6.4 src/sys/arch/xen/xen/evtchn.c
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/sys/arch/xen/xen/xentests.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch

2011-08-20 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Aug 20 19:22:47 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64 [cherry-xenmp]: machdep.c
src/sys/arch/amd64/include [cherry-xenmp]: pmap.h
src/sys/arch/i386/i386 [cherry-xenmp]: machdep.c
src/sys/arch/i386/include [cherry-xenmp]: pmap.h
src/sys/arch/x86/include [cherry-xenmp]: cpu.h
src/sys/arch/x86/x86 [cherry-xenmp]: pmap.c
src/sys/arch/xen/include [cherry-xenmp]: hypervisor.h
src/sys/arch/xen/x86 [cherry-xenmp]: cpu.c x86_xpmap.c xen_pmap.c

Log Message:
PAE MP support (preliminary), amd64 per-cpu L4 model redesigned, i386 
pmap_pa_start/end fixup


To generate a diff of this commit:
cvs rdiff -u -r1.160.2.2 -r1.160.2.3 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.24.2.1 -r1.24.2.2 src/sys/arch/amd64/include/pmap.h
cvs rdiff -u -r1.702.2.4 -r1.702.2.5 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.109.2.1 -r1.109.2.2 src/sys/arch/i386/include/pmap.h
cvs rdiff -u -r1.34.2.4 -r1.34.2.5 src/sys/arch/x86/include/cpu.h
cvs rdiff -u -r1.121.2.5 -r1.121.2.6 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.31.10.1 -r1.31.10.2 src/sys/arch/xen/include/hypervisor.h
cvs rdiff -u -r1.56.2.6 -r1.56.2.7 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.26.2.6 -r1.26.2.7 src/sys/arch/xen/x86/x86_xpmap.c
cvs rdiff -u -r1.2.2.2 -r1.2.2.3 src/sys/arch/xen/x86/xen_pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/xen

2011-08-21 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Aug 21 11:24:11 UTC 2011

Modified Files:
src/sys/arch/xen/xen [cherry-xenmp]: if_xennet_xenbus.c
xennetback_xenbus.c

Log Message:
add locking around mmu flush xpq ops


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.51.2.1 src/sys/arch/xen/xen/if_xennet_xenbus.c
cvs rdiff -u -r1.46 -r1.46.2.1 src/sys/arch/xen/xen/xennetback_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/x86

2011-08-22 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Aug 22 16:48:03 UTC 2011

Modified Files:
src/sys/arch/xen/x86 [cherry-xenmp]: hypervisor_machdep.c

Log Message:
Do not trust the hypervisor to route events to the right cpu. Enforce this in 
stipending()


To generate a diff of this commit:
cvs rdiff -u -r1.14.2.3 -r1.14.2.4 src/sys/arch/xen/x86/hypervisor_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/x86

2011-08-22 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Aug 22 17:39:19 UTC 2011

Modified Files:
src/sys/arch/xen/x86 [cherry-xenmp]: xen_pmap.c

Log Message:
Remove spurious locks


To generate a diff of this commit:
cvs rdiff -u -r1.2.2.3 -r1.2.2.4 src/sys/arch/xen/x86/xen_pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/xen

2011-08-23 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Tue Aug 23 16:19:12 UTC 2011

Modified Files:
src/sys/arch/xen/xen [cherry-xenmp]: clock.c

Log Message:
MP-fy clock. per-cpu hardclock(). Use the periodic timer, instead of the 
one-shot reload.

idle_loop() does not block the domain anymore. Instead, it yields to the 
hypervisor(). We can thus remove the one-shot "wakeup" timer.


To generate a diff of this commit:
cvs rdiff -u -r1.54.6.2 -r1.54.6.3 src/sys/arch/xen/xen/clock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/x86

2011-08-26 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Aug 26 13:33:34 UTC 2011

Modified Files:
src/sys/arch/xen/x86 [cherry-xenmp]: cpu.c

Log Message:
Name the L4 per-cpu pointer appropriately.
User cr3 should point to the per-cpu L4, not the user pmap pdir


To generate a diff of this commit:
cvs rdiff -u -r1.56.2.7 -r1.56.2.8 src/sys/arch/xen/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch

2011-08-30 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Tue Aug 30 12:53:46 UTC 2011

Modified Files:
src/sys/arch/i386/i386 [cherry-xenmp]: machdep.c
src/sys/arch/xen/x86 [cherry-xenmp]: cpu.c x86_xpmap.c

Log Message:
Add per-cpu mmu queues


To generate a diff of this commit:
cvs rdiff -u -r1.702.2.5 -r1.702.2.6 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.56.2.8 -r1.56.2.9 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.26.2.7 -r1.26.2.8 src/sys/arch/xen/x86/x86_xpmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch

2011-09-01 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Sep  1 08:04:46 UTC 2011

Modified Files:
src/sys/arch/x86/include [cherry-xenmp]: cpu.h
src/sys/arch/xen/x86 [cherry-xenmp]: cpu.c

Log Message:
fix %cr3 init. from mhitch@, tested by riz@ & mhitch@


To generate a diff of this commit:
cvs rdiff -u -r1.34.2.5 -r1.34.2.6 src/sys/arch/x86/include/cpu.h
cvs rdiff -u -r1.56.2.9 -r1.56.2.10 src/sys/arch/xen/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/amd64/amd64

2011-09-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Sep  9 08:14:39 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64 [cherry-xenmp]: trap.c

Log Message:
Use appropriate format strings.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.66.2.1 src/sys/arch/amd64/amd64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch

2011-09-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Sep  9 11:38:21 UTC 2011

Modified Files:
src/sys/arch/x86/x86 [cherry-xenmp]: pmap.c
src/sys/arch/xen/include [cherry-xenmp]: xenpmap.h

Log Message:
make #define PG_k visible on all xen archs


To generate a diff of this commit:
cvs rdiff -u -r1.121.2.6 -r1.121.2.7 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.27.2.3 -r1.27.2.4 src/sys/arch/xen/include/xenpmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/x86

2011-09-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Sep  9 11:53:43 UTC 2011

Modified Files:
src/sys/arch/xen/x86 [cherry-xenmp]: cpu.c x86_xpmap.c

Log Message:
fix amd64 boot.


To generate a diff of this commit:
cvs rdiff -u -r1.56.2.10 -r1.56.2.11 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.26.2.8 -r1.26.2.9 src/sys/arch/xen/x86/x86_xpmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/x86

2011-09-18 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Sep 18 16:48:23 UTC 2011

Modified Files:
src/sys/arch/xen/x86 [cherry-xenmp]: x86_xpmap.c

Log Message:
Make the xpq locking per-cpu


To generate a diff of this commit:
cvs rdiff -u -r1.26.2.9 -r1.26.2.10 src/sys/arch/xen/x86/x86_xpmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen

2011-09-18 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Sep 18 18:46:41 UTC 2011

Modified Files:
src/sys/arch/xen/include [cherry-xenmp]: hypervisor.h intrdefs.h
src/sys/arch/xen/x86 [cherry-xenmp]: hypervisor_machdep.c xen_ipi.c
src/sys/arch/xen/xen [cherry-xenmp]: evtchn.c

Log Message:
Use an IPI to re-route events to the cpu where the handler has been registered


To generate a diff of this commit:
cvs rdiff -u -r1.31.10.2 -r1.31.10.3 src/sys/arch/xen/include/hypervisor.h
cvs rdiff -u -r1.9.34.2 -r1.9.34.3 src/sys/arch/xen/include/intrdefs.h
cvs rdiff -u -r1.14.2.4 -r1.14.2.5 src/sys/arch/xen/x86/hypervisor_machdep.c
cvs rdiff -u -r1.1.2.3 -r1.1.2.4 src/sys/arch/xen/x86/xen_ipi.c
cvs rdiff -u -r1.47.6.4 -r1.47.6.5 src/sys/arch/xen/xen/evtchn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch/xen/xen

2011-09-18 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Sep 18 18:54:32 UTC 2011

Modified Files:
src/sys/arch/xen/xen [cherry-xenmp]: clock.c

Log Message:
Register the clock handler at the appropriate ipl (IPL_CLOCK). Cleanup the 
idle_block()


To generate a diff of this commit:
cvs rdiff -u -r1.54.6.3 -r1.54.6.4 src/sys/arch/xen/xen/clock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch

2011-09-20 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Tue Sep 20 18:57:54 UTC 2011

Modified Files:
src/sys/arch/amd64/include [cherry-xenmp]: pmap.h
src/sys/arch/i386/i386 [cherry-xenmp]: gdt.c machdep.c
src/sys/arch/i386/include [cherry-xenmp]: pmap.h
src/sys/arch/x86/include [cherry-xenmp]: pmap.h
src/sys/arch/x86/x86 [cherry-xenmp]: pmap.c pmap_tlb.c
src/sys/arch/xen/include [cherry-xenmp]: xenpmap.h
src/sys/arch/xen/x86 [cherry-xenmp]: cpu.c x86_xpmap.c xen_bus_dma.c
xen_pmap.c xenfunc.c
src/sys/arch/xen/xen [cherry-xenmp]: if_xennet_xenbus.c
xennetback_xenbus.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.24.2.2 -r1.24.2.3 src/sys/arch/amd64/include/pmap.h
cvs rdiff -u -r1.50.10.2 -r1.50.10.3 src/sys/arch/i386/i386/gdt.c
cvs rdiff -u -r1.702.2.6 -r1.702.2.7 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.109.2.2 -r1.109.2.3 src/sys/arch/i386/include/pmap.h
cvs rdiff -u -r1.38.2.2 -r1.38.2.3 src/sys/arch/x86/include/pmap.h
cvs rdiff -u -r1.121.2.7 -r1.121.2.8 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.3.2.4 -r1.3.2.5 src/sys/arch/x86/x86/pmap_tlb.c
cvs rdiff -u -r1.27.2.4 -r1.27.2.5 src/sys/arch/xen/include/xenpmap.h
cvs rdiff -u -r1.56.2.11 -r1.56.2.12 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.26.2.10 -r1.26.2.11 src/sys/arch/xen/x86/x86_xpmap.c
cvs rdiff -u -r1.22.6.1 -r1.22.6.2 src/sys/arch/xen/x86/xen_bus_dma.c
cvs rdiff -u -r1.2.2.4 -r1.2.2.5 src/sys/arch/xen/x86/xen_pmap.c
cvs rdiff -u -r1.11.6.2 -r1.11.6.3 src/sys/arch/xen/x86/xenfunc.c
cvs rdiff -u -r1.51.2.1 -r1.51.2.2 src/sys/arch/xen/xen/if_xennet_xenbus.c
cvs rdiff -u -r1.46.2.1 -r1.46.2.2 src/sys/arch/xen/xen/xennetback_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-11-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Nov  6 11:40:47 UTC 2011

Modified Files:
src/sys/arch/amd64/include: pmap.h
src/sys/arch/i386/i386: gdt.c machdep.c
src/sys/arch/i386/include: pmap.h
src/sys/arch/x86/include: intrdefs.h pmap.h
src/sys/arch/xen/include: hypervisor.h xenpmap.h
src/sys/arch/xen/x86: cpu.c x86_xpmap.c xen_pmap.c xenfunc.c

Log Message:
[merging from cherry-xenmp] Make the xen MMU op queue locking api private. 
Implement per-cpu queues.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/amd64/include/pmap.h
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/i386/i386/gdt.c
cvs rdiff -u -r1.709 -r1.710 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.110 -r1.111 src/sys/arch/i386/include/pmap.h
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/x86/include/intrdefs.h
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/x86/include/pmap.h
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/xen/include/hypervisor.h
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/xen/include/xenpmap.h
cvs rdiff -u -r1.68 -r1.69 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/xen/x86/x86_xpmap.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/xen/x86/xen_pmap.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/xen/x86/xenfunc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-11-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Nov  6 15:18:19 UTC 2011

Modified Files:
src/sys/arch/amd64/include: pmap.h
src/sys/arch/i386/include: pmap.h
src/sys/arch/x86/include: cpu.h
src/sys/arch/x86/x86: pmap.c
src/sys/arch/xen/x86: cpu.c x86_xpmap.c

Log Message:
[merging from cherry-xenmp] make pmap_kernel() shadow PMD per-cpu and MP aware.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/amd64/include/pmap.h
cvs rdiff -u -r1.111 -r1.112 src/sys/arch/i386/include/pmap.h
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/x86/include/cpu.h
cvs rdiff -u -r1.137 -r1.138 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/xen/x86/x86_xpmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/i386

2011-11-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Nov  6 15:35:29 UTC 2011

Modified Files:
src/sys/arch/i386/i386: machdep.c

Log Message:
DTRT when initialising pmap_pa_end.


To generate a diff of this commit:
cvs rdiff -u -r1.710 -r1.711 src/sys/arch/i386/i386/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-11-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Nov  6 15:51:09 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
DTRT with macros and use xen's info page when initialising pmap_pa_start and 
pmap_pa_end.


To generate a diff of this commit:
cvs rdiff -u -r1.168 -r1.169 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-11-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Nov  6 15:53:04 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: trap.c

Log Message:
Use the right format strings with printf


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/amd64/amd64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen

2011-11-07 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Nov  7 15:51:31 UTC 2011

Modified Files:
src/sys/arch/xen/include: intrdefs.h
src/sys/arch/xen/x86: xen_ipi.c

Log Message:
Add an ipi callback to force hypervisor callback. this is useful to "re-route" 
interrupts to a given vcpu


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/xen/include/intrdefs.h
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/xen/x86/xen_ipi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-11-08 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Tue Nov  8 17:16:52 UTC 2011

Modified Files:
src/sys/arch/x86/include: pmap.h
src/sys/arch/x86/x86: pmap.c
src/sys/arch/xen/include: xenpmap.h
src/sys/arch/xen/x86: xen_pmap.c

Log Message:
Expose the PG_k #define pt/pd bit to both xen and "baremetal" x86. This is 
required, since kernel pages are mapped with user permissions in XEN/amd64 
since the VM kernel runs in ring3. Since XEN/i386(including PAE) runs in ring1, 
supervisor mode is appropriate for these ports. We need to share this since the 
pmap implementation is still shared. Once the xen implementation is 
sufficiently independant of the x86 one, this can be made private to 
xen/include/xenpmap.h


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/x86/include/pmap.h
cvs rdiff -u -r1.140 -r1.141 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/xen/include/xenpmap.h
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/xen/x86/xen_pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2011-11-17 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Nov 18 06:01:50 UTC 2011

Modified Files:
src/sys/arch/xen/xen: clock.c

Log Message:
[merging from cherry-xenmp]
 - Make clock MP aware.
 - Bring in fixes that bouyer@ brought in via:
   cvs rdiff -u -r1.54.6.4 -r1.54.6.5 src/sys/arch/xen/xen/clock.c

Thanks to riz@ for testing on dom0


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/xen/xen/clock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-11-19 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sat Nov 19 17:13:39 UTC 2011

Modified Files:
src/sys/arch/x86/include: cpu.h
src/sys/arch/xen/include: hypervisor.h
src/sys/arch/xen/x86: hypervisor_machdep.c
src/sys/arch/xen/xen: evtchn.c

Log Message:
[merging from cherry-xenmp] bring in bouyer@'s changes via:
http://mail-index.netbsd.org/source-changes/2011/10/22/msg028271.html
>From the Log:
Log Message:
Various interrupt fixes, mainly:
keep a per-cpu mask of enabled events, and use it to get pending events.
A cpu-specific event (all of them at this time) should not be ever masked
by another CPU, because it may prevent the target CPU from seeing it
(the clock events all fires at once for example).


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/x86/include/cpu.h
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/xen/include/hypervisor.h
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/xen/x86/hypervisor_machdep.c
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/xen/xen/evtchn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2011-12-03 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Dec  4 04:28:41 UTC 2011

Modified Files:
src/sys/arch/x86/x86: pmap_tlb.c

Log Message:
Split out the cross-CPU tlb flushing code between XEN and non-XEN.
x86 tlb flushing is asynchronous and uses x86_ipi()
XEN tlb flushing uses synchronous hypercalls.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/x86/x86/pmap_tlb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




CVS commit: src/sys/arch/xen/xen

2011-12-04 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Dec  4 15:15:41 UTC 2011

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
[merging from cherry-xenmp]
Make MP aware: use mutex(9) instead of spl(9)


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/xen/xen/if_xennet_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2011-12-07 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Dec  7 12:31:51 UTC 2011

Modified Files:
src/sys/arch/xen/xen: evtchn.c

Log Message:
Move to kmem_zalloc() instead of malloc().


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/xen/xen/evtchn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2011-12-07 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Dec  8 03:34:48 UTC 2011

Modified Files:
src/sys/arch/xen/xen: evtchn.c

Log Message:
kmem_free() the appropriate size.

Thanks cegger@


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/xen/xen/evtchn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2011-12-08 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Dec  9 03:58:12 UTC 2011

Modified Files:
src/sys/arch/xen/xen: xengnt.c

Log Message:
Use mutex(9) instead of spl(9). Add further locks around grant table access.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/xen/xen/xengnt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2011-12-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Dec  9 11:47:49 UTC 2011

Modified Files:
src/sys/arch/xen/xen: hypervisor.c

Log Message:
Move events/interrupt subsystem initialisation to before when ipis are used


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/xen/xen/hypervisor.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-12-19 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Dec 19 19:09:16 UTC 2011

Modified Files:
src/sys/arch/amd64/conf: XEN3_DOMU
src/sys/arch/i386/conf: XEN3_DOMU

Log Message:
Add knob to turn MULTIPROCESSOR build on for XEN


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/amd64/conf/XEN3_DOMU
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/i386/conf/XEN3_DOMU

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2011-12-26 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Dec 26 18:27:11 UTC 2011

Modified Files:
src/sys/arch/xen/x86: hypervisor_machdep.c

Log Message:
Do not fiddle with the event masks of non-local vcpus when unmasking events 
across vcpus


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/xen/x86/hypervisor_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2011-12-26 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Tue Dec 27 07:45:41 UTC 2011

Modified Files:
src/sys/arch/xen/x86: hypervisor_machdep.c

Log Message:
Do not touch pending flags across vcpus


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/xen/x86/hypervisor_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2011-12-26 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Tue Dec 27 07:47:01 UTC 2011

Modified Files:
src/sys/arch/xen/x86: hypervisor_machdep.c

Log Message:
Optimise branch predict hint for the intended use-case (cross cpu event 
notification)


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/xen/x86/hypervisor_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2011-12-28 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Dec 28 18:59:21 UTC 2011

Modified Files:
src/sys/arch/xen/x86: xen_ipi.c

Log Message:
Remove temporary variable definition that is unused in non DIAGNOSTIC builds.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/xen/x86/xen_ipi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2011-12-30 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Dec 30 12:16:19 UTC 2011

Modified Files:
src/sys/arch/xen/x86: xen_ipi.c

Log Message:
Remove spurious (debug) printf()


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/xen/x86/xen_ipi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-12-30 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Dec 30 16:55:21 UTC 2011

Modified Files:
src/sys/arch/x86/x86: pmap.c
src/sys/arch/xen/include: xenpmap.h
src/sys/arch/xen/x86: cpu.c xen_pmap.c

Log Message:
per-cpu shadow directory pages should be updated locally via cross-calls. Do 
this.


To generate a diff of this commit:
cvs rdiff -u -r1.147 -r1.148 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/xen/include/xenpmap.h
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/xen/x86/xen_pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-12-30 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Dec 30 17:57:49 UTC 2011

Modified Files:
src/sys/arch/i386/i386: machdep.c
src/sys/arch/i386/include: cpu.h
src/sys/arch/x86/include: cpu.h
src/sys/arch/x86/x86: pmap.c

Log Message:
Move the per-cpu l3 page allocation code to a separate MD function. Avoids code 
duplication for xen PAE


To generate a diff of this commit:
cvs rdiff -u -r1.714 -r1.715 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.177 -r1.178 src/sys/arch/i386/include/cpu.h
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/x86/include/cpu.h
cvs rdiff -u -r1.148 -r1.149 src/sys/arch/x86/x86/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2011-12-30 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Dec 30 18:01:20 UTC 2011

Modified Files:
src/sys/arch/xen/x86: cpu.c

Log Message:
Force pae l3 page allocation for new vcpus to be < 4G, so they fit in 32bits


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/arch/xen/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2011-12-30 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Dec 30 19:18:35 UTC 2011

Modified Files:
src/sys/arch/xen/x86: cpu.c

Log Message:
Never cut-paste code from email!
Use the right count (0 -> 2) of l3 unshared userland entries for per-cpu 
initialisation.


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/arch/xen/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/x86

2012-01-04 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Jan  4 10:30:24 UTC 2012

Modified Files:
src/sys/arch/xen/x86: cpu.c

Log Message:
Use macro PDP_SIZE instead of numeric constant, for unshared PAE L3 entries.
Thanks jym@


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/arch/xen/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2012-01-04 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Wed Jan  4 10:48:24 UTC 2012

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
Tighten up locking in the network driver.
This probably needs more attention since xennet_rx_mbuf_free() hooks
into the network layer.
The locking can also be made finer grained. Performance testing could
add some insights.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/xen/xen/if_xennet_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2012-01-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Jan  6 15:15:28 UTC 2012

Modified Files:
src/sys/arch/x86/x86: pmap.c
src/sys/arch/xen/x86: cpu.c

Log Message:
Address those pesky DIAGNOSTIC messages. \n
Take a performance hit at fork() for not DTRT. \n
Note: Only applicable for kernels built with "options DIAGNOSTIC" \n


To generate a diff of this commit:
cvs rdiff -u -r1.149 -r1.150 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.75 -r1.76 src/sys/arch/xen/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2012-01-08 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Jan  9 04:39:14 UTC 2012

Modified Files:
src/sys/arch/x86/x86: pmap.c
src/sys/arch/xen/x86: cpu.c

Log Message:
revert previous commit. DIAGNOSTIC should only do strict checks, not muffle 
current ones


To generate a diff of this commit:
cvs rdiff -u -r1.150 -r1.151 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.76 -r1.77 src/sys/arch/xen/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2012-01-08 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Jan  9 04:55:35 UTC 2012

Modified Files:
src/sys/arch/x86/x86: pmap.c

Log Message:
While freeing ptps, remove stale L3 frame entries on all CPUS the pmap is 
loaded on, not just the current one.


To generate a diff of this commit:
cvs rdiff -u -r1.151 -r1.152 src/sys/arch/x86/x86/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2012-01-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Jan  9 12:58:49 UTC 2012

Modified Files:
src/sys/arch/x86/x86: pmap.c
src/sys/arch/xen/x86: xen_pmap.c

Log Message:
Harden cross-cpu L3 sync - avoid optimisations that may race.
Update ci->ci_kpm_pdir from user pmap, not global pmap_kernel() entry which may 
get clobbered by other CPUs.
XXX: Look into why we use pmap_kernel() userspace entries at all.


To generate a diff of this commit:
cvs rdiff -u -r1.152 -r1.153 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/xen/x86/xen_pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2012-01-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Jan  9 13:04:13 UTC 2012

Modified Files:
src/sys/arch/amd64/include: pmap.h
src/sys/arch/i386/include: pmap.h
src/sys/arch/xen/x86: x86_xpmap.c

Log Message:
Make cross-cpu pte access MP safe.
XXX: review cases of use of pmap_set_pte() vs direct use of 
xpq_queue_pte_update()


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/amd64/include/pmap.h
cvs rdiff -u -r1.112 -r1.113 src/sys/arch/i386/include/pmap.h
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/xen/x86/x86_xpmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2012-01-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Jan  9 13:33:38 UTC 2012

Modified Files:
src/sys/arch/xen/xen: clock.c

Log Message:
Remove obsolete comment.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/arch/xen/xen/clock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2012-01-09 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Jan  9 13:35:42 UTC 2012

Modified Files:
src/sys/arch/xen/xen: clock.c

Log Message:
Remove redundant use of curcpu().


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/xen/xen/clock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/i386

2012-01-12 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Jan 12 19:37:46 UTC 2012

Modified Files:
src/sys/arch/i386/i386: machdep.c

Log Message:
re-order call to x86_bus_space_init() until after %fs is initialised via 
initgdt().

x86_bus_space_init() uses mutex(9) since it uses extent(9), which requires %fs 
to be setup before use.


To generate a diff of this commit:
cvs rdiff -u -r1.715 -r1.716 src/sys/arch/i386/i386/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2012-01-12 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Thu Jan 12 19:49:37 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: machdep.c
src/sys/arch/i386/i386: machdep.c
src/sys/arch/xen/x86: x86_xpmap.c

Log Message:
relocate pte_lock initialisation to the earliest points after %fs is first 
usable in the XEN bootpath


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.716 -r1.717 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/xen/x86/x86_xpmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2012-01-13 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Fri Jan 13 08:54:00 UTC 2012

Modified Files:
src/doc: BRANCHES

Log Message:
Officially terminate the cherry-xenmp branch.


To generate a diff of this commit:
cvs rdiff -u -r1.318 -r1.319 src/doc/BRANCHES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/include

2012-01-15 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Jan 15 16:48:31 UTC 2012

Modified Files:
src/sys/arch/amd64/include: pmap.h

Log Message:
for xen on amd64 PDP_BASE points to the per-cpu ci->ci_kpm_pdir copy of 
*pmap_kernel()*'s L4 pdir, which is an alias for ci->ci_kpm_pdir. This is 
unlike PAE, where PDP_BASE points to the per-pmap pm_pdir consisting of 4 
pages, the last of which is the "shadow". This "shadow" is not used directly in 
an active pmap, since it duplicates the kernel space and, for PAE, xen 
dissallows multiple cpus pointing to the same L3[3] page. Therefore, we use a 
per-cpu copy of the pmap_kernel() pdir's L3[3] page, ci->ci_pae_l3_pdir[3], 
while L3[0-2] point to the original pmap's pm_pdir[0 - 2]. Thus the "shadow" 
pdir only exists on i386 PAE. Note that on PAE, the recursive PDIR_SLOT_PTE is 
not per-cpu, and therefore cannot be made to point to per-cpu pdirs via 
(L4_BASE + PDIR_SLOT_PTE), unlike xen x86_64 where this is exactly the case.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/amd64/include/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   3   >