The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.66: download - view: text, markup, annotated - select for diffs
Thu Sep 1 15:32:16 2022 UTC (2 years, 3 months ago) by bouyer
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +1 -2 lines
Redo previous; kill the right printf()

Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Sep 1 12:31:26 2022 UTC (2 years, 3 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -3 lines
Remove a noisy printf; HVM guests triggers it (a lot) and it seems to be
expected.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Sep 1 12:26:00 2022 UTC (2 years, 3 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +24 -2 lines
Adjust privcmd_notify() so it has a chance to work in a PVH environnement too.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Aug 31 14:00:44 2022 UTC (2 years, 3 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -2 lines
If we check XENPV, make sure to #include "opt_xen.h"

Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Aug 31 12:51:56 2022 UTC (2 years, 3 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +123 -9 lines
Work in progress on dom0 PVH support: ioctl support for tools.
Basically, in PVH mode (where XENFEAT_auto_translated_physmap is enabled),
the hypervisor will not map foreing ressources in our virtual address
space for us. Instead, we have to pass it an address in our physical
address space (but not mapped to some RAM) where the ressource will show up
and then enter this PA in pour page table.

For this, introduce xenmem_* which manage the PA space. In PVH mode this
is just allocated from the iomem_ex extent.

With this, I can start a PV domU, and the guest's kernel boots (and
the console works). It hangs because the backend driver can't map the
frontend ressources (yet).

Note that, per https://xenbits.xen.org/docs/unstable/support-matrix.html,
dom0 PVH support is still considered experimental by Xen.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Dec 10 20:36:03 2021 UTC (2 years, 11 months ago) by andvar
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
s/occured/occurred/ in comments, log messages and man pages.

Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:04 2020 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +18 -5 lines
Sync w/ HEAD.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Nov 30 17:06:02 2020 UTC (4 years ago) by bouyer
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +18 -5 lines
Work in progress on dom0 PVH support. kernel boots and xl info works,
but we can't start a domU yet.

Revision 1.51.10.1: download - view: text, markup, annotated - select for diffs
Sun May 31 10:39:34 2020 UTC (4 years, 6 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +583 -146 lines
Pull up following revision(s) (requested by bouyer in ticket #935):

	sys/arch/xen/x86/x86_xpmap.c: revision 1.89
	sys/arch/x86/include/pmap.h: revision 1.121
	sys/arch/xen/xen/privcmd.c: revision 1.58
	sys/external/mit/xen-include-public/dist/xen/include/public/memory.h: revision 1.2
	sys/arch/xen/include/xenpmap.h: revision 1.44
	sys/arch/xen/include/xenio.h: revision 1.12
	sys/arch/x86/x86/pmap.c: revision 1.394
	(all via patch)

Ajust pmap_enter_ma() for upcoming new Xen privcmd ioctl:
pass flags to xpq_update_foreign()

Introduce a pmap MD flag: PMAP_MD_XEN_NOTR, which cause xpq_update_foreign()
to use the MMU_PT_UPDATE_NO_TRANSLATE flag.
make xpq_update_foreign() return the raw Xen error. This will cause
pmap_enter_ma() to return a negative error number in this case, but the
only user of this code path is privcmd.c and it can deal with it.

Add pmap_enter_gnt()m which maps a set of Xen grant entries at the
specified va in the specified pmap. Use the hooks implemented for EPT to
keep track of mapped grand entries in the pmap, and unmap them
when pmap_remove() is called. This requires pmap_remove() to be split
into a pmap_remove_locked(), to be called from pmap_remove_gnt().

Implement new ioctl, needed by Xen 4.13:
IOCTL_PRIVCMD_MMAPBATCH_V2
IOCTL_PRIVCMD_MMAP_RESOURCE
IOCTL_GNTDEV_MMAP_GRANT_REF
IOCTL_GNTDEV_ALLOC_GRANT_REF

Always enable declarations needed by privcmd.c

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue May 26 10:37:25 2020 UTC (4 years, 6 months ago) by bouyer
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +2 -3 lines
Add need-flags for kernfs.
Compile Xen kernfs support only if kernfs is compiled in the kernel.
Should fix MODULAR build.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue May 26 10:11:56 2020 UTC (4 years, 6 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +580 -145 lines
Implement new ioctl, needed by Xen 4.13:
IOCTL_PRIVCMD_MMAPBATCH_V2
IOCTL_PRIVCMD_MMAP_RESOURCE
IOCTL_GNTDEV_MMAP_GRANT_REF
IOCTL_GNTDEV_ALLOC_GRANT_REF

Revision 1.57: download - view: text, markup, annotated - select for diffs
Tue May 5 17:02:01 2020 UTC (4 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +4 -2 lines
Make DOM0OPS build for PVH/PVHVM too

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Apr 25 15:26:18 2020 UTC (4 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -2 lines
Merge the bouyer-xenpvh branch, bringing in Xen PV drivers support under HVM
guests in GENERIC.
Xen support can be disabled at runtime with
boot -c
disable hypervisor

Revision 1.51.6.3: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:13 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.51.6.2: preferred, colored; branchpoint 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.6.2: +1 -1 lines
Sync with HEAD

Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:01 2020 UTC (4 years, 7 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +3 -3 lines
Sync with HEAD

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Apr 19 20:07:53 2020 UTC (4 years, 7 months ago) by jdolecek
Branches: MAIN
CVS tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3 lines
make privpgops const

Revision 1.51.6.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:12 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.51.6.1: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.6.1: +1 -2 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.51.6.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:59 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -12 lines
Merge changes from current as of 20200406

Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue Apr 7 08:14:42 2020 UTC (4 years, 8 months ago) by jdolecek
Branches: MAIN
CVS tags: phil-wifi-20200411, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -4 lines
switch KERNFS_ALLOCENTRY() to use kmem_zalloc() instead of malloc()

Revision 1.51.12.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:18:34 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +7 -12 lines
Sync with head.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Feb 23 15:46:39 2020 UTC (4 years, 9 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200406, is-mlppp-base, is-mlppp, ad-namecache-base3
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +7 -7 lines
UVM locking changes, proposed on tech-kern:

- Change the lock on uvm_object, vm_amap and vm_anon to be a RW lock.
- Break v_interlock and vmobjlock apart.  v_interlock remains a mutex.
- Do partial PV list locking in the x86 pmap.  Others to follow later.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Feb 22 19:46:48 2020 UTC (4 years, 9 months ago) by chs
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -7 lines
do not wait for memory in pgo_fault methods, just return ENOMEM
and let the uvm_fault code wait if it is appropriate.

Revision 1.44.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:51 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.44.2.1: preferred, colored; branchpoint 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44.2.1: +5 -25 lines
update from HEAD

Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:51:57 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +6 -29 lines
Sync with HEAD

Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu Jun 22 22:36:50 2017 UTC (7 years, 5 months ago) by chs
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, 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, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: phil-wifi, netbsd-9, ad-namecache
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +6 -20 lines
use UVM_FLAG_UNMAP instead of unmapping separately.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:08 2017 UTC (7 years, 6 months ago) by chs
Branches: MAIN
CVS tags: netbsd-8-base, netbsd-8-3-RELEASE, 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
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -11 lines
remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.45.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 10 17:59:57 2014 UTC (10 years ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, 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
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +6 -3 lines
Pull up following revision(s) (requested by maxv in ticket #195):
	sys/arch/arm/iomd/iomd_irqhandler.c: revision 1.21
	sys/arch/arm/ofw/ofw_irqhandler.c: revision 1.21
	sys/arch/atari/atari/intr.c: revision 1.24-1.25
	sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.14
	sys/arch/hpcmips/tx/tx39icu.c: revision 1.34
	sys/arch/shark/isa/isa_irqhandler.c: revision 1.27
	sys/arch/sparc/sparc/machdep.c: revision 1.327
	sys/arch/sparc64/dev/psycho.c: revision 1.119
	sys/arch/sparc64/dev/schizo.c: revision 1.32
	sys/arch/sparc64/sparc64/machdep.c: revision 1.279
	sys/arch/sun68k/sun68k/bus.c: revision 1.22
	sys/arch/x86/x86/ipmi.c: revision 1.58
	sys/arch/xen/xen/privcmd.c: revision 1.46-1.49
Fix several memory leaks.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Oct 17 16:37:02 2014 UTC (10 years, 1 month ago) by christos
Branches: 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, nick-nhusb-base, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: nick-nhusb
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -6 lines
now that privcmd_map_obj cleans up correctly, don't double free...

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Oct 3 20:56:24 2014 UTC (10 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -4 lines
correct error paths; still need to verify that the "didn't give us back..."
case is correct.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Sep 21 16:56:44 2014 UTC (10 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -3 lines
fix leak.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Sep 21 16:53:38 2014 UTC (10 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +6 -3 lines
fix leak.

Revision 1.44.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:30 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -6 lines
Rebase to HEAD as of a few days ago.

Revision 1.43.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:14 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.43.2.1: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.2.1: +3 -6 lines
sync with head.

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

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

Revision 1.44.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:30 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +3 -6 lines
sync with head

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Nov 6 06:23:15 2013 UTC (11 years, 1 month ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -6 lines
- move variables inside their #ifdef use
- remove unused and set-but-unused variables
- use __USE() in a particularly ugly case

with these, and a couple of other changes, amd64 gcc 4.8.1 world
is able to complete build.sh release.

Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:37 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -6 lines
sync with head

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Jun 27 00:37:10 2012 UTC (12 years, 5 months ago) by jym
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -6 lines
Retire XEN_COMPAT_030001 as detailed on port-xen@:

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

The xen_p2m API comes next.

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

FWIW, Amazon always reported:

hypervisor0 at mainbus0: Xen version 3.4.3-kaos_t1micro

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

Revision 1.35.4.4: download - view: text, markup, annotated - select for diffs
Sat Aug 27 15:37:32 2011 UTC (13 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.35.4.3: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.4.3: +30 -26 lines
Sync with HEAD. Most notably: uvm/pmap work done by rmind@, and MP Xen
work of cherry@.

No regression observed on suspend/restore.

Revision 1.41.10.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:50 2011 UTC (13 years, 5 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +30 -26 lines
Catchup with rmind-uvmplock merge.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Jun 15 19:51:50 2011 UTC (13 years, 5 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-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, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +8 -3 lines
- privpgop_fault: call pmap_update() before uvmfault_unlockall().
- privcmd_ioctl, xengnt_more_entries: add missing pmap_update().

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Jun 12 03:35:50 2011 UTC (13 years, 5 months ago) by rmind
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +23 -24 lines
Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.41.4.3: download - view: text, markup, annotated - select for diffs
Mon May 30 17:16:47 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.41.4.2: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.4.2: +16 -17 lines
privpgop_fault: simplify and sync with changes in the branch.

Revision 1.41.4.2: download - view: text, markup, annotated - select for diffs
Thu May 19 03:43:00 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.41.4.1: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.4.1: +4 -4 lines
Implement sharing of vnode_t::v_interlock amongst vnodes:
- Lock is shared amongst UVM objects using uvm_obj_setlock() or getnewvnode().
- Adjust vnode cache to handle unsharing, add VI_LOCKSHARE flag for that.
- Use sharing in tmpfs and layerfs for underlying object.
- Simplify locking in ubc_fault().
- Sprinkle some asserts.

Discussed with ad@.

Revision 1.35.4.3: download - view: text, markup, annotated - select for diffs
Sun Oct 24 22:48:22 2010 UTC (14 years, 1 month ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.35.4.2: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.4.2: +8 -7 lines
Sync with HEAD

Revision 1.33.4.1.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:33:45 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.33.4.1: preferred, colored; next MAIN 1.33.4.2: preferred, colored
Changes since revision 1.33.4.1: +7 -6 lines
sync to netbsd-5

Revision 1.41.4.1: download - view: text, markup, annotated - select for diffs
Tue Mar 16 15:38:04 2010 UTC (14 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +11 -11 lines
Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc().  It allows us to share the locks among UVM objects.

Revision 1.25.10.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:10 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.25.10.2: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.10.2: +8 -12 lines
sync with head

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Feb 6 03:06:42 2010 UTC (14 years, 10 months ago) by uebayasi
Branches: 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, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, cherry-xenmp
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3 lines
Typo in a wchan string.

Revision 1.33.4.2: download - view: text, markup, annotated - select for diffs
Sat Jan 30 19:12:26 2010 UTC (14 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.33.4.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.4.1: +7 -6 lines
Pull up following revision(s) (requested by bouyer in ticket #1271):
	sys/arch/xen/xen/privcmd.c: revision 1.40
Use paddr_t to store physical address and cast mfn values to paddr_t
before shift. Fix overflow issue preventing xend from working as
reported by Mark Davies on port-xen@

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Jan 23 18:26:37 2010 UTC (14 years, 10 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +7 -6 lines
Use paddr_t to store physical address and cast mfn values to paddr_t
before shift. Fix overflow issue preventing xend from working as
reported by Mark Davies on port-xen@

Revision 1.35.4.2: download - view: text, markup, annotated - select for diffs
Sun Nov 1 13:58:47 2009 UTC (15 years, 1 month ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.35.4.1: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.4.1: +3 -32 lines
Sync with HEAD.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Oct 23 02:32:34 2009 UTC (15 years, 1 month ago) by snj
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -7 lines
Remove 3rd and 4th clauses.  OK cl@ (copyright holder).

Revision 1.25.10.2: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:46:56 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.25.10.1: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.10.1: +3 -27 lines
sync with head.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Jul 29 12:02:09 2009 UTC (15 years, 4 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -27 lines
remove Xen2 support.
ok bouyer@

Revision 1.35.4.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:18:50 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +10 -5 lines
Sync with HEAD.

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

Revision 1.25.10.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:14 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +224 -28 lines
sync with head.

Revision 1.33.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:01 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.33.2.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.2.1: +10 -5 lines
Sync with HEAD.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Mar 16 06:18:32 2009 UTC (15 years, 8 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
ansify function definitions

Revision 1.33.4.1: download - view: text, markup, annotated - select for diffs
Sun Mar 8 03:19:50 2009 UTC (15 years, 9 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +9 -4 lines
Pull up following revision(s) (requested by jym in ticket #547):
	sys/arch/xen/xen/privcmd.c: revision 1.36
Do not continue silently on a page fault for an INVALID_PAGE, and instead
report an EFAULT like Xen does.
This avoids bad situations where a domain calls privpgop_fault() in a loop
by trying to map an invalid MFN.
See also http://mail-index.netbsd.org/port-xen/2009/03/03/msg004803.html

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Mar 4 10:32:36 2009 UTC (15 years, 9 months ago) by jym
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +9 -4 lines
Do not continue silently on a page fault for an INVALID_PAGE, and instead
report an EFAULT like Xen does.

This avoids bad situations where a domain calls privpgop_fault() in a loop
by trying to map an invalid MFN.

See also http://mail-index.netbsd.org/port-xen/2009/03/03/msg004803.html

Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:12 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +7 -16 lines
Sync with HEAD.

Revision 1.25.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:39 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.25.6.1: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.6.1: +13 -17 lines
Sync with HEAD.

Revision 1.25.16.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:13:43 2008 UTC (15 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.25.16.1: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.16.1: +8 -17 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Dec 4 20:56:57 2008 UTC (16 years ago) by jym
Branches: MAIN
CVS tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +7 -10 lines
Clean up code. No functional changes intended.

Reviewed by bouyer@.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Nov 15 11:21:41 2008 UTC (16 years ago) by ad
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -8 lines
Remove trivial compat ifdefs.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Oct 21 15:46:32 2008 UTC (16 years, 1 month ago) by cegger
Branches: MAIN
CVS tags: netbsd-5-base, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2
Branch point for: nick-hppapmap, netbsd-5
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3 lines
introduce two macros: xendomain_is_dom0() and xendomain_is_privileged(). Use them.

Revision 1.25.16.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:13 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +211 -11 lines
Sync with HEAD.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Oct 18 16:59:52 2008 UTC (16 years, 1 month ago) by bouyer
Branches: MAIN
CVS tags: haad-dm-base1
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -4 lines
Don't use a pointer to vm_map_entry after releasing the vm_map_lock().
Pointed out by yamt@.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Oct 17 22:16:37 2008 UTC (16 years, 1 month ago) by jym
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +6 -2 lines
Add checks to avoid possible calls to kmem_alloc() with 0 values.

Approved by bouyer.

Revision 1.25.12.2: download - view: text, markup, annotated - select for diffs
Fri Oct 10 22:29:46 2008 UTC (16 years, 2 months ago) by skrll
Branches: wrstuden-revivesa
Diff to: previous 1.25.12.1: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.12.1: +14 -6 lines
Sync with HEAD.

Revision 1.25.6.1: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:14 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +205 -10 lines
Sync with HEAD.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Sep 20 20:36:09 2008 UTC (16 years, 2 months ago) by bouyer
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +14 -6 lines
Fix IOCTL_PRIVCMD_MMAPBATCH: don't blindly map requested pages read/write
but use the map's protection bits, as the hypervisor may refuse read/write
mappings for some entries. Now suspend/resume of domUs should work
from a NetBSD dom0, provided that the domU's kernel supports it.

From Jean-Yves Migeon.

Revision 1.25.12.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:33:39 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +193 -6 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Aug 24 20:35:43 2008 UTC (16 years, 3 months ago) by bouyer
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -2 lines
privcmd_xen2bsd_errno(): 0 is also a valid error code.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Aug 19 15:14:43 2008 UTC (16 years, 3 months ago) by cegger
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +183 -4 lines
When shutting down or rebooting a domu, a phantom domain was left with:

> xm list
Domain-Unnamed                               1   467     1     ---s--  46.0

The root cause is a discrepancy in the error *value* codes:
BSD uses the AT&T Unix Version 6 error codes, while Xen uses
Unix System V error codes (or actually what Linux/i386 has taken over from it).

After shutting down (or rebooting) a domU, the guest container gets destroyed.
This implies freeing resources used by the guest (RAM, internal management structures, etc.).

The destroy process is an asynchronous process in order to not block the Dom0 (and other DomUs).
The destroy process works this way:

The XEN_DOMCTL_destroydomain is invoked from the xentools (python, libxc code).
XEN_DOMCTL_destroydomain hypercall calls domain_kill().
domain_kill() calls domain_relinquish_resources().
domain_relinquish_resources() calls relinquish_memory().
relinquish_memory() calls hypercall_preempt_check().

hypercall_preempt_check() makes all this asynchronous.
It fails, if there's an other hypercall pending.
In that case relinquish_memory() returns EAGAIN, which means, just retry to continue the destroy process.

EAGAIN is passed through the return path back into the python code
(= userspace). The python code checks for EAGAIN and *should*
retry, but it didn't.

In Unix System V / Linux, EAGAIN has the error code value 11.
In BSD, EAGAIN has the error code value 35 and EDEADLK has the error code value 11.

This means, Xen returning EAGAIN means for the python code EDEADLK.
This lead to the confusing error message 'domain destroy failed due to Resource Deadlock avoided'.

We finally convert the error code from the Xen hypercall to BSD before passing it upstream.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Aug 18 23:09:37 2008 UTC (16 years, 3 months ago) by cegger
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +10 -6 lines
IOCTL_PRIVCMD_MMAPBATCH used guest physical address 0x0 to mark a page as invalid.
Since we have to treat 0x0 as a valid page, this got broken in rev. 1.26.
Introduce INVALID_PAGE as magic value and restore the check.
This unbreaks IOCTL_PRIVCMD_MMAPBATCH while allowing to launch HVM guests.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Aug 16 08:02:20 2008 UTC (16 years, 3 months ago) by cegger
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -2 lines
In Xen 3.2 (c/s 15985) the semantic of the HVM domain builder changed:

hvm: Avoid need for ugly setcpucontext() in HVM domain builder by
pre-setting the vcpu0 to runnable inside Xen, and have the builder
insert a JMP instruction to reach the hvmloader entry point from
address 0x0.

So we have to treat guest physical address 0x0 like every one
or we end in a page fault loop when launching a HVM guest, otherwise.

XXX Keep this for Xen2 as this change hasn't been tested there.

Revision 1.15.2.1.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:18 2008 UTC (16 years, 6 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.15.2.1.2.1: preferred, colored; next MAIN 1.15.2.2: preferred, colored
Changes since revision 1.15.2.1.2.1: +24 -3 lines
Sync with netbsd-4.

Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 09:43:00 2008 UTC (16 years, 8 months ago) by jdc
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Diff to: previous 1.15.2.2: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.2: +24 -3 lines
Pull up revisions: (requested by bouyer in ticket #1083)
  src/sys/arch/xen/include/xenio.h	1.6
  src/sys/arch/xen/include/xenio3.h	1.2
  src/sys/arch/xen/xen/privcmd.c	1.25

Fix IOCTL_PRIVCMD_HYPERCALL issue which shows up with xen-3.1.3:
some hypercalls results are returned though the error path (depending on
sign, it's an error code or a result), and some results are interpreted in
a special way by the NetBSD kernel (e.g. -1).
Add a 'retval' member to the privcmd_hypercall_t argument, which holds
the hypercall result if it completed without error. The error code
is returned via the usual error path.
Handle the old IOCTL_PRIVCMD_HYPERCALL under COMPAT_40.

While there, make the double-inclusion protection #define match the
convention in xenio3.h and xenio.h.

Revision 1.18.6.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:30 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.18.6.2: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.6.2: +30 -11 lines
sync with HEAD

Revision 1.4.2.6: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:29 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.2.5: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.5: +22 -4 lines
sync with head.

Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:21 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.19.2.1: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.1: +30 -11 lines
Sync with HEAD.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Feb 17 16:21:19 2008 UTC (16 years, 9 months ago) by bouyer
Branches: 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, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, 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, mjf-devfs2, haad-dm
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +22 -4 lines
Fix IOCTL_PRIVCMD_HYPERCALL issue which shows up with xen-3.1.3:
some hypercalls results are returned though the error path (depending on
sign, it's an error code or a result), and some results are interpreted in
a special way by the NetBSD kernel (e.g. -1).
Add a 'retval' member to the privcmd_hypercall_t argument, which holds
the hypercall result if it completed without error. The error code
is returned via the usual error path.
Handle the old IOCTL_PRIVCMD_HYPERCALL under COMPAT_40.

While there, make the double-inclusion protection #define match the
convention in xenio3.h and xenio.h.

Revision 1.4.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:40:35 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.2.4: preferred, colored
Changes since revision 1.4.2.4: +10 -9 lines
sync with head

Revision 1.18.6.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:50:20 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.18.6.1: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.6.1: +223 -67 lines
sync with HEAD

Revision 1.23.6.1: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:10:42 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +10 -9 lines
Sync with HEAD

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Jan 8 19:26:44 2008 UTC (16 years, 11 months ago) by bouyer
Branches: MAIN
CVS tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +10 -9 lines
uobj->vmobjlock is a mutex these days.

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:18:27 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +223 -67 lines
Sync with HEAD.

Revision 1.4.2.4: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:27:22 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.2.3: preferred, colored
Changes since revision 1.4.2.3: +223 -67 lines
sync with head

Revision 1.15.8.4: download - view: text, markup, annotated - select for diffs
Mon Dec 3 18:40:46 2007 UTC (17 years ago) by ad
Branches: vmlocking
Diff to: previous 1.15.8.3: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.8.3: +223 -67 lines
Sync with HEAD.

Revision 1.18.4.2: download - view: text, markup, annotated - select for diffs
Mon Dec 3 16:14:26 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.18.4.1: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.4.1: +196 -65 lines
Sync with HEAD.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Dec 2 18:29:54 2007 UTC (17 years ago) by bouyer
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, matt-armv6-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +192 -61 lines
IOCTL_PRIVCMD_MMAP*: instead of brutally enterring the new entries in
the process page table, properly uvm_unmap1() the VA range and enter a new
uvm_map backed by an object. There is a know race between uvm_unmap1() and
uvm_map(), where another thread could get our VA range; in practice
I think none of the softwares using this interface are multithreaded (or at
last they are single-threaded when using it).

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Dec 1 12:57:09 2007 UTC (17 years ago) by bouyer
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -6 lines
Use __define__ instead of define, pointed out by christos.

Revision 1.18.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:36:28 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +33 -8 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Nov 27 11:37:27 2007 UTC (17 years ago) by pooka
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -5 lines
a_l -> curlwp

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Nov 22 16:17:08 2007 UTC (17 years ago) by bouyer
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +31 -5 lines
Pull up the bouyer-xenamd64 branch to HEAD. This brings in amd64 support
to NetBSD/Xen, both Dom0 and DomU.

Revision 1.18.10.3: download - view: text, markup, annotated - select for diffs
Sat Nov 17 15:47:54 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.18.10.2: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.10.2: +10 -13 lines
Of course a_data is already in kernel space.

Revision 1.18.10.2: download - view: text, markup, annotated - select for diffs
Fri Nov 16 17:18:04 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.18.10.1: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.10.1: +33 -4 lines
Initial domain0 support for xenamd64. The kernel boots multiuser, but
xen tools have not been tried yet.
In this process, cleanup some more the page table bootstrap, and properly
handle event counters for soft interrupts.

Revision 1.18.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:24:33 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
sync with HEAD

Revision 1.18.10.1: download - view: text, markup, annotated - select for diffs
Wed Oct 17 21:08:24 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
Prepare for xenamd64:
- kill xen/i386/identcpu.c, use i386/i386/identcpu.c instead (with a few
  #ifndef XEN)
- move some files that can be shared between i386 and amd64 from
  xen/i386 to xen/x86 (or to xen/xen for non-cpu-specific code)
- split assembly out of xen/include/hypervisor.h to xen/include/hypercalls.h
- use <xen/...> instead of <machine/...> for cpu-independant include files.

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

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Oct 17 19:58:33 2007 UTC (17 years, 1 month ago) by garbled
Branches: MAIN
CVS tags: yamt-x86pmap-base4, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
Merge the ppcoea-renovation branch to HEAD.

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

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

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

Revision 1.16.2.2: download - view: text, markup, annotated - select for diffs
Wed Oct 3 19:26:14 2007 UTC (17 years, 2 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.16.2.1: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.2.1: +3 -2 lines
Sync with HEAD

Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:31:37 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.2.2: preferred, colored
Changes since revision 1.4.2.2: +5 -3 lines
sync with head.

Revision 1.15.2.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 07:04:14 2007 UTC (17 years, 3 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.15.2.1: preferred, colored
Changes since revision 1.15.2.1: +3 -3 lines
Sync w/ NetBSD-4-RC_1

Revision 1.15.8.3: download - view: text, markup, annotated - select for diffs
Mon Aug 20 18:39:20 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.15.8.2: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.8.2: +3 -2 lines
Sync with HEAD.

Revision 1.17.4.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:48:00 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +3 -2 lines
Sync with HEAD.

Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 7 18:05:55 2007 UTC (17 years, 4 months ago) by matt
Branches: matt-mips64
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +3 -2 lines
Sync with HEAD.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jul 22 08:50:26 2007 UTC (17 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -2 lines
+#include <sys/proc.h>

Revision 1.15.8.2: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:17:22 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.15.8.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.8.1: +3 -3 lines
Sync with head.

Revision 1.15.10.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:03:37 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +4 -3 lines
Sync with head.

Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 26 18:13:57 2007 UTC (17 years, 5 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Sync with HEAD.

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 13 10:38:44 2007 UTC (17 years, 5 months ago) by liamjfoy
Branches: netbsd-4
CVS tags: wrstuden-fixsa-base-1, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.1: +1 -1 lines
Pull up following revision(s) (requested by bouyer in ticket #720):
	sys/arch/xen/xen/privcmd.c: revision 1.17
IOCTL_PRIVCMD_MMAP: properly map entries from 0 to (mcmd->num - 1), instead
of mapping mcmd->num times entry 0. xentools < 3.1 probably didn't use this
with more than one entry at a time ...

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Jun 12 18:53:52 2007 UTC (17 years, 6 months ago) by bouyer
Branches: MAIN
CVS tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment, matt-mips64
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
IOCTL_PRIVCMD_MMAP: properly map entries from 0 to (mcmd->num - 1), instead
of mapping mcmd->num times entry 0. xentools < 3.1 probably didn't use this
with more than one entry at a time ...

Revision 1.15.8.1: download - view: text, markup, annotated - select for diffs
Sun May 27 14:27:10 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -2 lines
Sync with head.

Revision 1.15.4.1: download - view: text, markup, annotated - select for diffs
Mon May 7 10:55:07 2007 UTC (17 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +3 -2 lines
sync with head.

Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Thu May 3 05:11:20 2007 UTC (17 years, 7 months ago) by snj
Branches: netbsd-4
Branch point for: wrstuden-fixsa
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -2 lines
Pull up following revision(s) (requested by bouyer in ticket #599):
	sys/arch/xen/xen/privcmd.c: revision 1.16
IOCTL_PRIVCMD_MMAPBATCH: mimic linux behavior and return no error
even if a pmap_enter_ma() (the underlying hypercall, really) returns one.
The fact that the mapping failed is notified to the called by oring
0xF0000000 to the mfn.  This makes Xen 3.0.4 HVM work.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Apr 27 22:10:39 2007 UTC (17 years, 7 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-idlelwp-base8
Branch point for: ppcoea-renovation
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -2 lines
IOCTL_PRIVCMD_MMAPBATCH: mimic linux behavior and return no error
even if a pmap_enter_ma() (the underlying hypercall, really) returns one.
The fact that the mapping failed is notified to the called by oring
0xF0000000 to the mfn.  This makes Xen 3.0.4 HVM work.

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:47:25 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.2.1: preferred, colored
Changes since revision 1.4.2.1: +8 -2 lines
sync with head.

Revision 1.13.8.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:29:39 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +8 -2 lines
Sync with head.

Revision 1.13.10.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:20 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +8 -2 lines
sync with head

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Oct 17 19:57:24 2006 UTC (18 years, 1 month ago) by bouyer
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, vmlocking, netbsd-4, mjf-ufs-trans
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
XEN_NO_HYPERCALLPAGE is redundant with XEN_COMPAT_030001; make
XEN_COMPAT_030001 disable the hypercall page too and remove
XEN_NO_HYPERCALLPAGE

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Sep 24 18:14:44 2006 UTC (18 years, 2 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +8 -2 lines
The Xen folks says everyone should use hypercall call page now, make it so.
Old hypercall call method still still available with
options XEN_NO_HYPERCALLPAGE
but this is disabled by default (xen-3.0.2-2 supports hypercall call page
just fine).
While there add a VIRT_BASE= string in __xen_guest section; from
Bastian Blank on port-xen@.

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:45:05 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +3 -3 lines
sync with head

Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 14:58:23 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +98 -19 lines
sync with head.

Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:35:38 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +3 -3 lines
Sync with head.

Revision 1.12.10.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:48:26 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +1 -1 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.12.6.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:57:23 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +3 -3 lines
sync with head.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun May 14 21:57:13 2006 UTC (18 years, 6 months ago) by elad
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -1 lines
integrate kauth.

Revision 1.12.8.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 00:43:19 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +3 -3 lines
Adapt to kernel authorization KPI.

I expect *some* lossage here...

Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Wed Feb 1 14:51:48 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.9.2.1: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.1: +11 -5 lines
sync with head.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Jan 23 20:19:08 2006 UTC (18 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -5 lines
merge xen pmap_enter, pmap_enter_ma, pmap_remap_pages.
ok'ed by Manuel Bouyer.

Revision 1.2.2.4: download - view: text, markup, annotated - select for diffs
Fri Jan 20 21:14:47 2006 UTC (18 years, 10 months ago) by riz
Branches: 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
Diff to: previous 1.2.2.3: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.3: +41 -6 lines
Pull up following revision(s) (requested by bouyer in ticket #1104):
	sys/arch/xen/xen/privcmd.c: revision 1.6
	sys/arch/xen/i386/pmap.c: revision 1.14
	sys/arch/xen/include/pmap.h: revision 1.5
	sys/arch/xen/xen/xennetback.c: revision 1.12 via patch
	sys/arch/xen/xen/xbdback.c: revision 1.15
Add a vm_prot_t parameter to pmap_remap_pages(), and use it for the new PTE
instead to always trying PG_RW and falling back to PG_RO if this fails.
Use uvm_map_checkprot() in IOCTL_PRIVCMD_MMAP and IOCTL_PRIVCMD_MMAP_BATCH
to compute the appropriate vm_prot_t for pmap_remap_pages().
Thanks to Jed Davis for pointing out uvm_map_checkprot().

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Jan 15 22:09:52 2006 UTC (18 years, 10 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +6 -2 lines
Snapshot of work in progress on NetBSD port to Xen3:
- kernel (both dom0 and domU) boot, console is functionnal and it can starts
  software from a ramdisk
- there is no driver front-end expect console for domU yet.
- dom0 can probe devices and ex(4) work when Xen3 is booted without acpi
  and apic support. But the on-board IDE doens't get interrupts.
  The PCI code still needs work (it's hardcoded to mode 1). Some of this
  code should be shared with ../x86
  The physical insterrupt code needs to get MPBIOS and ACPI support, and
  do interrupt routing to properly interract with Xen.
To enable Xen-3.0 support, add
options XEN3
to your kernel config file (this will disable Xen2 support)
Changes affecting Xen-2.0 support (no functionnal changes intended):
- get more constants from genassym for assembly code
- remove some unneeded registers move from start()
- map the shared info page from start(), and remove the pte = 0xffffffff hack
- vector.S: in hypervisor_callback() make sure %esi points to
  HYPERVISOR_shared_info before accessing the info page. Remplace some
  hand-written assembly with the equivalent macro defined in frameasm.h
- more debug code, dissabled by default.

while here added my copyright on some files I worked on in 2005.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 15 10:02:47 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -4 lines
sync with head.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jan 14 11:03:35 2006 UTC (18 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -4 lines
privcmd_ioctl: wrap IOCTL_PRIVCMD_INITDOMAIN_EVTCHN_OLD in #ifdef COMPAT_30.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Dec 24 23:24:07 2005 UTC (18 years, 11 months ago) by perry
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
__asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Dec 12 20:06:22 2005 UTC (18 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +13 -13 lines
change a_p -> a_l->l_proc [untested]

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:19:50 2005 UTC (19 years ago) by christos
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
merge ktrace-lwp.

Revision 1.1.4.7: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:00:34 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.6: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.6: +92 -12 lines
Sync with HEAD. Here we go again...

Revision 1.2.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 14 22:24:38 2005 UTC (19 years, 2 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.2.2.2: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.2: +39 -3 lines
Pull up following revision(s) (requested by bouyer in ticket #776):
	sys/arch/xen/xen/privcmd.c: revision 1.5
Apply patch from Jed Davis, posted to port-xen:
Implement IOCTL_PRIVCMD_MMAPBATCH, as a loop calling pmap_remap_pages().
XXX this should do the MMU operations in batch.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Sep 10 18:00:49 2005 UTC (19 years, 3 months ago) by bouyer
Branches: 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
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +43 -8 lines
Add a vm_prot_t parameter to pmap_remap_pages(), and use it for the new PTE
instead to always trying PG_RW and falling back to PG_RO if this fails.
Use uvm_map_checkprot() in IOCTL_PRIVCMD_MMAP and IOCTL_PRIVCMD_MMAP_BATCH
to compute the appropriate vm_prot_t for pmap_remap_pages().
Thanks to Jed Davis for pointing out uvm_map_checkprot().

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Sep 10 15:48:10 2005 UTC (19 years, 3 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +41 -5 lines
Apply patch from Jed Davis, posted to port-xen:
Implement IOCTL_PRIVCMD_MMAPBATCH, as a loop calling pmap_remap_pages().
XXX this should do the MMU operations in batch.

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 18 10:43:37 2005 UTC (19 years, 5 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.1: +1 -1 lines
Pull up revision 1.4 (requested by yamt in ticket #465):
privcmd_ioctl: remove unnecessary variable shadowing.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Jun 1 12:56:02 2005 UTC (19 years, 6 months ago) by yamt
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3 lines
privcmd_ioctl: remove unnecessary variable shadowing.

Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Sat May 28 13:52:41 2005 UTC (19 years, 6 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +12 -3 lines
Pull up revision 1.3 (requested by yamt in ticket #351):
privcmd_ioctl: don't abuse errno for IOCTL_PRIVCMD_INITDOMAIN_EVTCHN.
renumber the ioctl and keep the old one for compatibility.
PR/30027.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue May 24 12:07:12 2005 UTC (19 years, 6 months ago) by yamt
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +12 -3 lines
privcmd_ioctl: don't abuse errno for IOCTL_PRIVCMD_INITDOMAIN_EVTCHN.
renumber the ioctl and keep the old one for compatibility.
PR/30027.

Revision 1.1.10.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:30 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +62 -3 lines
sync with -current

Revision 1.1.4.6: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:29:11 2005 UTC (19 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.5: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.5: +62 -3 lines
Sync with HEAD.

Revision 1.1.12.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:33:26 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +62 -3 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Mar 9 22:39:21 2005 UTC (19 years, 9 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, kent-audio2-base
Branch point for: netbsd-3
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +62 -3 lines
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.8.2: download - view: text, markup, annotated - select for diffs
Sat Feb 12 22:30:24 2005 UTC (19 years, 9 months ago) by bouyer
Branches: bouyer-xen2
Diff to: previous 1.1.8.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.8.1: +41 -3 lines
Implement pmap_remap_pages(), which remplace one or more pages in a
mapping with different pages, possibly from a foreing domain.
Use this to implement IOCTL_PRIVCMD_MMAP.

Revision 1.1.8.1: download - view: text, markup, annotated - select for diffs
Mon Jan 31 17:21:16 2005 UTC (19 years, 10 months ago) by bouyer
Branches: bouyer-xen2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +24 -3 lines
First pieces of domain control operations:
- use an up to date xenio.h
- update privcmd.c for newer ioctls (incomplete, some just return an error for
  now)
- add a /dev/xenevt pseudo-device, which provide to userland an interface to
  xen events
Now xend starts, and basic xm commands (such as list) work.

Revision 1.1.4.5: download - view: text, markup, annotated - select for diffs
Wed Oct 27 06:48:23 2004 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.4: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.4: +3 -3 lines
Fix various comments that describe the argument structures

Revision 1.1.4.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:24:45 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.3: +2 -2 lines
Fix the sync with head I botched.

Revision 1.1.4.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:42:53 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.2: +2 -2 lines
Sync with HEAD.

Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:43:19 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.1: +109 -0 lines
Sync with HEAD

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sat May 22 15:59:21 2004 UTC (20 years, 6 months ago) by he
Branches: netbsd-2-0
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +109 -0 lines
Pull up revision 1.1 (requested by cl in ticket #337):
	Upgrade xen support:
	 - add block device driver
	 - network device driver bug fixes
	 - support for vga/keyboard/mouse
	 - support for domain0 operations
	 - fix /dev/mem and i386_iopl, reboot, event dispatch
	 - fix clock support, cpu speed report, lazy fpu switching
	 - add xen12load loader
	 - sys/arch/xen parts of build.sh release support
	[cl, ticket #337]

Revision 1.1.4.1
Fri May 7 15:51:04 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
FILE REMOVED
Changes since revision 1.1: +0 -109 lines
file privcmd.c was added on branch ktrace-lwp on 2004-08-03 10:43:19 +0000

Revision 1.1.2.1
Fri May 7 15:51:04 2004 UTC (20 years, 7 months ago) by he
Branches: netbsd-2-0
FILE REMOVED
Changes since revision 1.1: +0 -109 lines
file privcmd.c was added on branch netbsd-2-0 on 2004-05-22 15:59:21 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri May 7 15:51:04 2004 UTC (20 years, 7 months ago) by cl
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1, bouyer-xen2-base
Branch point for: yamt-km, netbsd-2-0, ktrace-lwp, kent-audio2, bouyer-xen2
Add support for domain0 operations:
- access to all physical memory
- access to hypervisor traps from userland
- setup/config Xen's network routing/firewall rules

Diff request

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

Log view options

CVSweb <webmaster@jp.NetBSD.org>