The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.96 / (download) - annotate - [select for diffs], Thu Jun 23 14:32:16 2022 UTC (21 months, 3 weeks ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, 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
Changes since 1.95: +11 -2 lines
Diff to previous 1.95 (colored)

Don't override isadma defflag for Xen, now that isadma is built for Xen PV too.
While there, match amd64 mainbus and call isa_dmainit() before attaching acpi.

Fixes a panic at boot on some hardware with a floppy disk controller.

Revision 1.95 / (download) - annotate - [select for diffs], Wed May 25 15:52:25 2022 UTC (22 months, 3 weeks ago) by bouyer
Branch: MAIN
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored)

Move <xen/include/public/vcpu.h> so it's always inclued. Fixes Xen PV builds.

Revision 1.94 / (download) - annotate - [select for diffs], Wed May 25 14:35:15 2022 UTC (22 months, 3 weeks ago) by bouyer
Branch: MAIN
Changes since 1.93: +49 -3 lines
Diff to previous 1.93 (colored)

PVH and HVM guests can easily have more than XEN_LEGACY_MAX_VCPUS (32) cpus.
Support up to HVM_MAX_VCPUS (256). This requires resizing a few arrays in
evtchn.c, and using
VCPUOP_register_vcpu_info for vcpuid >= XEN_LEGACY_MAX_VCPUS
Tested with 96 vCPUs.

Revision 1.93 / (download) - annotate - [select for diffs], Sun Dec 5 02:59:50 2021 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored)

s/funtion/function/ in comment.

Revision 1.92 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:08 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.91: +9 -16 lines
Diff to previous 1.91 (colored)

Merge thorpej-cfargs2.

Revision 1.91.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 03:03:31 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.91: +9 -16 lines
Diff to previous 1.91 (colored) next main 1.92 (colored)

Adapt to CFARGS().

Revision 1.91 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:51 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Changes since 1.90: +24 -10 lines
Diff to previous 1.90 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Fri Apr 2 22:17:43 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.90: +24 -10 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

config_found_ia() -> config_found() w/ CFARG_IATTR.

Revision 1.89.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:04 2020 UTC (3 years, 4 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.89: +7 -4 lines
Diff to previous 1.89 (colored) next main 1.90 (colored)

Sync w/ HEAD.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Nov 30 17:06:02 2020 UTC (3 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.89: +7 -4 lines
Diff to previous 1.89 (colored)

Work in progress on dom0 PVH support. kernel boots and xl info works,
but we can't start a domU yet.

Revision 1.89 / (download) - annotate - [select for diffs], Tue Sep 15 10:58:02 2020 UTC (3 years, 7 months ago) by bouyer
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

Fix side effect of previous commit: skip xencons attachement only for
PVHVM guests. Should fix issue with console on PV dom0 reported by
kardel@ in private mail

Revision 1.88 / (download) - annotate - [select for diffs], Wed Sep 9 16:46:06 2020 UTC (3 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.87: +44 -30 lines
Diff to previous 1.87 (colored)

Workarounds for amazon's Xen 4.2 version, still present on some instances:
- It doens't provides an xencons, so allow HVM_PARAM_CONSOLE_PFN to fail
- the xen clock is not fully functionnal, so don't try to use it if
  HVM_PARAM_CONSOLE_PFN failed.
- it doesn't have XEN_HVM_CPUID_VCPU_ID_PRESENT so fall back to ci_acpiid
  as ci_vcpuid in this case.

It also doesn't support the per-CPU event callback; so fix the fallback
to global vector (don't try to register more per-cpu vector)
Should fix port-amd64/55543

Revision 1.87 / (download) - annotate - [select for diffs], Tue Jul 14 00:45:53 2020 UTC (3 years, 9 months ago) by yamaguchi
Branch: MAIN
Changes since 1.86: +6 -4 lines
Diff to previous 1.86 (colored)

Introduce per-cpu IDTs

This is realized by following modifications:
- Add IDT pages and its allocation maps for each cpu in "struct cpu_info"
- Load per-cpu IDTs at cpu_init_idt(struct cpu_info*)
- Copy the IDT entries for cpu0 to other CPUs at attach
   - These are, for example, exceptions, db, system calls, etc.

And, added a kernel option named PCPU_IDT to enable the feature.

Revision 1.86 / (download) - annotate - [select for diffs], Tue May 26 10:37:25 2020 UTC (3 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.85: +5 -2 lines
Diff to previous 1.85 (colored)

Add need-flags for kernfs.
Compile Xen kernfs support only if kernfs is compiled in the kernel.
Should fix MODULAR build.

Revision 1.85 / (download) - annotate - [select for diffs], Thu May 21 21:12:31 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.84: +2 -4 lines
Diff to previous 1.84 (colored)

- Recalibrate the APIC timer using the TSC, once the TSC has in turn been
  recalibrated using the HPET.  This gets the clock interrupt firing more
  closely to HZ.

- Undo change with recent Xen merge and go back to starting the clocks in
  initclocks() on the boot CPU, and in cpu_hatch() on secondary CPUs.

- On reflection don't use HPET delay any more, it works very well but means
  going over the bus.  It's enough to use HPET to calibrate the TSC and
  APIC.

Tested on amd64 native, xen and xen PVH.

Revision 1.84 / (download) - annotate - [select for diffs], Sat May 9 08:01:38 2020 UTC (3 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.83: +4 -4 lines
Diff to previous 1.83 (colored)

Also set x86_delay to xen_delay, unbreaks PVH

Revision 1.83 / (download) - annotate - [select for diffs], Fri May 8 17:28:33 2020 UTC (3 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.82: +10 -6 lines
Diff to previous 1.82 (colored)

strlcpy() the command line only if it's present.

Revision 1.82 / (download) - annotate - [select for diffs], Thu May 7 15:44:35 2020 UTC (3 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

Cast physical address to uintptr_t, fix PAE build.
Pointed out by John D. Baker

Revision 1.81 / (download) - annotate - [select for diffs], Tue May 5 17:02:01 2020 UTC (3 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.80: +5 -5 lines
Diff to previous 1.80 (colored)

Make DOM0OPS build for PVH/PVHVM too

Revision 1.80 / (download) - annotate - [select for diffs], Sun May 3 17:24:11 2020 UTC (3 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.79: +3 -2 lines
Diff to previous 1.79 (colored)

For PVH and HVM, copy hvm_start_info.flags to xen_start_info.flags

Revision 1.79 / (download) - annotate - [select for diffs], Sat May 2 16:44:36 2020 UTC (3 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.78: +151 -86 lines
Diff to previous 1.78 (colored)

Introduce Xen PVH support in GENERIC.
This is compiled in with
options XENPVHVM
x86 changes:
- add Xen section and xen pvh entry points to locore.S. Set vm_guest
  to VM_GUEST_XENPVH in this entry point.
  Most of the boot procedure (especially page table setup and switch to
  paged mode) is shared with native.
- change some x86_delay() to delay_func(), which points to x86_delay() for
  native/HVM, and xen_delay() for PVH

Xen changes:
- remove Xen bits from init_x86_64_ksyms() and init386_ksyms()
  and move to xen_init_ksyms(), used for both PV and PVH
- set ISA no-legacy-devices property for PVH
- factor out code from Xen's cpu_bootconf() to xen_bootconf()
  in xen_machdep.c
- set up a specific pvh_consinit() which starts with printk()
  (which uses a simple hypercall that is available early) and switch to
  xencons when we can use pmap_kenter_pa().

Revision 1.78 / (download) - annotate - [select for diffs], Tue Apr 28 15:43:34 2020 UTC (3 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.77: +2 -37 lines
Diff to previous 1.77 (colored)

Add xbd to the list of valid disks.
Remove hardcoded root on xbd0 for Xen PVHVM, now that the x86 findroot()
knowns about xbd disks.

Revision 1.77 / (download) - annotate - [select for diffs], Tue Apr 28 13:27:29 2020 UTC (3 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.76: +2 -5 lines
Diff to previous 1.76 (colored)

Remove debug printfs

Revision 1.76 / (download) - annotate - [select for diffs], Sat Apr 25 15:26:18 2020 UTC (3 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.75: +208 -129 lines
Diff to previous 1.75 (colored)

Merge the bouyer-xenpvh branch, bringing in Xen PV drivers support under HVM
guests in GENERIC.
Xen support can be disabled at runtime with
boot -c
disable hypervisor

Revision 1.73.2.9 / (download) - annotate - [select for diffs], Wed Apr 22 20:49:08 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.73.2.8: +7 -7 lines
Diff to previous 1.73.2.8 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

Don't try to attach vcpu on !XENPV
remove debug printf and other misc cosmetic changes

Revision 1.69.18.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:13 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.69.18.2: +0 -1 lines
Diff to previous 1.69.18.2 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored)

Sync with HEAD

Revision 1.73.2.8 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:01 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.73.2.7: +4 -4 lines
Diff to previous 1.73.2.7 (colored) to branchpoint 1.73 (colored)

Sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Sun Apr 19 18:47:40 2020 UTC (3 years, 11 months ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.74: +3 -4 lines
Diff to previous 1.74 (colored)

change interface for xen_shm_map() so that caller always supplies the VA,
it now fails only if the Xen hypercall fails, in which case the failure
is final

change xbdback to pre-allocate KVA on xbdback attach (and free on detach),
so it has always KVA to map the request pages

remove no longer needed KVA allocation failure handling

Revision 1.73.2.7 / (download) - annotate - [select for diffs], Sat Apr 18 20:03:02 2020 UTC (4 years ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.73.2.6: +38 -5 lines
Diff to previous 1.73.2.6 (colored) to branchpoint 1.73 (colored)

If possible, register a per-cpu callback via HVMOP_set_evtchn_upcall_vector.
From FreeBSD. This requires acking the interrupt in hypervisor_pvhvm_callback.

Don't try to use x86_cpu_idle_xen() for PVHVM, it cause the domU to hang.
FreeBSD doesn't seem to use it either.

Revision 1.73.2.6 / (download) - annotate - [select for diffs], Sat Apr 18 15:06:18 2020 UTC (4 years ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.73.2.5: +163 -138 lines
Diff to previous 1.73.2.5 (colored) to branchpoint 1.73 (colored)

Add PVHVM multiprocessor support:
We need the hypervisor to be set up before cpus attaches.
Move hypervisor setup to a new function xen_hvm_init(), called at the
beggining of mainbus_attach(). This function searches the cfdata[] array
to see if the hypervisor device is enabled (so you can disable PV
support with
disable hypervisor
from userconf).
For HVM, ci_cpuid doens't match the virtual CPU index needed by Xen.
Introduce ci_vcpuid to cpu_info. Introduce xen_hvm_init_cpu(), to be
called for each CPU in in its context, which initialize ci_vcpuid and
ci_vcpu, and setup the event callback.
Change Xen code to use ci_vcpuid.

Do not call lapic_calibrate_timer() for VM_GUEST_XENPVHVM, we will use
Xen timers.

Don't call lapic_initclocks() from cpu_hatch(); instead set
x86_cpu_initclock_func to lapic_initclocks() in lapic_calibrate_timer(),
and call *(x86_cpu_initclock_func)() from cpu_hatch().
Also call x86_cpu_initclock_func from cpu_attach() for the boot CPU.
As x86_cpu_initclock_func is called for all CPUs, x86_initclock_func can
be a NOP for lapic timer.

Reorganize Xen code for x86_initclock_func/x86_cpu_initclock_func.
Move x86_cpu_idle_xen() to hypervisor_machdep.c

Revision 1.73.2.5 / (download) - annotate - [select for diffs], Thu Apr 16 20:21:04 2020 UTC (4 years ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.73.2.4: +5 -5 lines
Diff to previous 1.73.2.4 (colored) to branchpoint 1.73 (colored)

switch vm_guest to VM_GUEST_XENPVHVM only after all tests succeeded.

Revision 1.73.2.4 / (download) - annotate - [select for diffs], Thu Apr 16 19:23:50 2020 UTC (4 years ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.73.2.3: +10 -3 lines
Diff to previous 1.73.2.3 (colored) to branchpoint 1.73 (colored)

Rename xen/xen/clock.c to xen_clock.c, so that it can be compiled
with x86/isa/clock.c
call events_default_setup() from hypervisor_match to that event
arrays are properly initialised.
Use xen_delay() and xen's timecounter for PVHVM.

Revision 1.73.2.3 / (download) - annotate - [select for diffs], Thu Apr 16 17:47:37 2020 UTC (4 years ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.73.2.2: +3 -5 lines
Diff to previous 1.73.2.2 (colored) to branchpoint 1.73 (colored)

fail silently if hypervisor is not found.

Revision 1.69.18.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:12 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.69.18.1: +6 -5 lines
Diff to previous 1.69.18.1 (colored) to branchpoint 1.69 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.73.2.2 / (download) - annotate - [select for diffs], Sat Apr 11 21:21:16 2020 UTC (4 years ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.73.2.1: +20 -3 lines
Diff to previous 1.73.2.1 (colored) to branchpoint 1.73 (colored)

Use some PIO magic to disable qemu emulated disks and network device
when PVHVM is configured. From FreeBSD.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Apr 10 14:54:33 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-20200411
Changes since 1.73: +5 -3 lines
Diff to previous 1.73 (colored)

add and pass dma tag to PV drivers attached to xenbus, so thay can
use bus_dmamap_load_mbuf() et.al.

due to XENPV override, _BUS_BUS_TO_PHYS() dmamap segment ds_addr
gets filled with ma, so value can be directly used for e.g. grant calls

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Wed Apr 8 17:59:17 2020 UTC (4 years ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (colored)

Remove VM_GUEST_XEN and define only Xen subtypes:
VM_GUEST_XENPV
VM_GUEST_XENPVH
VM_GUEST_XENHVM
VM_GUEST_XENPVHVM

Set vm_guest in the start routine, if it is hypervisor-specific (e.g Xen PV).
If vm_guest was not set early and we detect Xen in identify_hypervisor(),
assume it is VM_GUEST_XENHVM. Refine to VM_GUEST_PVXENHVM in
hypervisor_match().

Revision 1.73 / (download) - annotate - [select for diffs], Tue Apr 7 08:14:42 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
CVS Tags: bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Changes since 1.72: +4 -5 lines
Diff to previous 1.72 (colored)

switch KERNFS_ALLOCENTRY() to use kmem_zalloc() instead of malloc()

Revision 1.69.18.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:56 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.69: +270 -8 lines
Diff to previous 1.69 (colored)

Sync with HEAD

Revision 1.72 / (download) - annotate - [select for diffs], Thu Feb 14 08:18:26 2019 UTC (5 years, 2 months ago) by cherry
Branch: MAIN
CVS Tags: phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.71: +265 -5 lines
Diff to previous 1.71 (colored)

Welcome XENPVHVM mode.

It is UP only, has xbd(4) and xennet(4) as PV drivers.

The console is com0 at isa and the native portion is very
rudimentary AT architecture, so is probably suboptimal to
run without PV support.

Revision 1.71 / (download) - annotate - [select for diffs], Wed Feb 13 06:52:43 2019 UTC (5 years, 2 months ago) by cherry
Branch: MAIN
Changes since 1.70: +6 -4 lines
Diff to previous 1.70 (colored)

Further restrict the scope of XENPV to relevant parts.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Feb 2 12:32:55 2019 UTC (5 years, 2 months ago) by cherry
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

Switch NetBSD/xen to use XEN api tag RELEASE-4.11.1

The headers for this api are in sys/external/mit/xen-include-public/dist/

Revision 1.62.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:51 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.62.2.1: +54 -9 lines
Diff to previous 1.62.2.1 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored)

update from HEAD

Revision 1.65.10.1 / (download) - annotate - [select for diffs], Mon Mar 13 07:41:26 2017 UTC (7 years, 1 month ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.65: +22 -3 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Sync with netbsd-7-1-RELEASE

Revision 1.65.4.1 / (download) - annotate - [select for diffs], Tue Mar 7 20:26:12 2017 UTC (7 years, 1 month ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.65: +22 -3 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Pull up following revision(s) (requested by jnmeth in ticket #1328):
	sys/arch/xen/xen/hypervisor.c: revision 1.67
add machdep.xen.version sysctl to easily get hypervisor version

Revision 1.65.6.2 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:37 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.65.6.1: +11 -10 lines
Diff to previous 1.65.6.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

Sync with HEAD

Revision 1.69 / (download) - annotate - [select for diffs], Mon Jul 11 11:31:50 2016 UTC (7 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, 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, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Changes since 1.68: +11 -10 lines
Diff to previous 1.68 (colored)

KNF. No functional change.

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

Sync with HEAD

Revision 1.68 / (download) - annotate - [select for diffs], Tue Jun 21 11:33:33 2016 UTC (7 years, 9 months ago) by nonaka
Branch: MAIN
CVS Tags: nick-nhusb-base-20160907
Changes since 1.67: +8 -2 lines
Diff to previous 1.67 (colored)

Pass bus_dma(9) tag to allow for porting sdhc(4) at acpi.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Jun 12 09:08:09 2016 UTC (7 years, 10 months ago) by jnemeth
Branch: MAIN
Changes since 1.66: +22 -3 lines
Diff to previous 1.66 (colored)

- add machdep.xen.version sysctl to easily get hypervisor version
- move machdep.xen_timepush_ticks to machdep.xen.timepush_ticks to
  consolidate all Xen related sysctls under machdep.xen

Revision 1.66 / (download) - annotate - [select for diffs], Sun May 29 17:06:17 2016 UTC (7 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.65: +21 -2 lines
Diff to previous 1.65 (colored)

Switch to elf notes for amd64 instead of the old key=value list to describe the
  guest requirements and support.
Add infrastructure to query the hypervisor about features support.
For verbose boot, print the features suppoted by the hypervisor for this
  guest.

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:30 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.62: +2 -15 lines
Diff to previous 1.62 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.58.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:14 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.58.2.1: +2 -15 lines
Diff to previous 1.58.2.1 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

sync with head.

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

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

Revision 1.62.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:30 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.62: +2 -15 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

sync with head

Revision 1.65 / (download) - annotate - [select for diffs], Sat Feb 1 20:07:07 2014 UTC (10 years, 2 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, nick-nhusb-base-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, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-base, netbsd-7-1-RC2, netbsd-7-1-RC1, 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
Branch point for: nick-nhusb, netbsd-7-nhusb, netbsd-7
Changes since 1.64: +0 -1 lines
Diff to previous 1.64 (colored)

Revert previous: calling fpuinit() leads to a panic, as a domU is not
allowed to manipulate cr0 directly. Xen doesn't need this, the fpu is
handled by the hypervisor.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Feb 1 17:48:04 2014 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.63: +3 -2 lines
Diff to previous 1.63 (colored)

Add a direct call to fpuinit().
I'm not sure this is architecturally the best place, but I think it
  is where npxattach() used to get called.
Might fix FP support in domu

Revision 1.63 / (download) - annotate - [select for diffs], Sun Jan 26 19:16:17 2014 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.62: +2 -15 lines
Diff to previous 1.62 (colored)

Remove support for 'external' floating point units and the MS-DOS
  compatible method of handling floating point exceptions.
Make kernel support for teh fpu non-optional (486SX should still work).
Only 386 cpus support external fpu, and i386 support was removed years ago.
This means that the npx code no longer uses port 0xf0 or interupt 13.
All the "npx at isa" lines go from the configs, arch/i386/isa/npx.c
  is now mandatory for all i386 kernels.
I've renamed npxinit() to fpuinit() and npxinit_cpu() to fpuinit_cpu()
  to match the very similar amd64 functions.
The fpu of the boot cpu is now initialised by a direct call from
  cpu_configure(), this enables FP emulation for a 486SX.
  (for amd64 the cr0 values are set in locore.S and similar).
This fixes a long-standing bug in linux_setregs() - which did not
  save the fpu regsiters if they were active.
I've test booted a single cpu i386 kernel (using anita).
amd64 builds - none of teh changes should affect it.
The i386 XEN kernels build, but I'm not sure where they set cr0, and
  it might have got lost!

Revision 1.42.4.7 / (download) - annotate - [select for diffs], Tue May 8 15:51:13 2012 UTC (11 years, 11 months ago) by sborrill
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.42.4.6: +3 -3 lines
Diff to previous 1.42.4.6 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Fix XEN2 build after last pullup

Revision 1.42.4.6 / (download) - annotate - [select for diffs], Tue May 8 12:11:45 2012 UTC (11 years, 11 months ago) by sborrill
Branch: netbsd-5
Changes since 1.42.4.5: +8 -4 lines
Diff to previous 1.42.4.5 (colored) to branchpoint 1.42 (colored)

Pull up the following revisions(s) (requested by riz in ticket #1748):
	sys/arch/xen/xen/hypervisor.c:	revision 1.62 via patch

Retrieve and print the hypervisor "extra" (teeny) version.

Revision 1.58.6.2 / (download) - annotate - [select for diffs], Sun Apr 29 23:04:44 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.58.6.1: +7 -4 lines
Diff to previous 1.58.6.1 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

sync to latest -current.

Revision 1.60.2.2 / (download) - annotate - [select for diffs], Wed Apr 18 19:53:28 2012 UTC (12 years ago) by snj
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.60.2.1: +7 -4 lines
Diff to previous 1.60.2.1 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored)

Pull up following revision(s) (requested by riz in ticket #184):
	sys/arch/xen/xen/hypervisor.c: revision 1.62
Retrive and print the hypervisor "extra" (teeny) version.
From Manuel Bouyer.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:12 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.58: +11 -7 lines
Diff to previous 1.58 (colored)

sync with head

Revision 1.62 / (download) - annotate - [select for diffs], Fri Apr 6 03:20:43 2012 UTC (12 years ago) by riz
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.61: +7 -4 lines
Diff to previous 1.61 (colored)

Retrive and print the hypervisor "extra" (teeny) version.
From Manuel Bouyer.

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Wed Feb 22 18:48:45 2012 UTC (12 years, 1 month ago) by riz
Branch: netbsd-6
Changes since 1.60: +6 -5 lines
Diff to previous 1.60 (colored)

Pull up following revision(s) (requested by bouyer in ticket #28):
	sys/arch/xen/include/hypervisor.h: revision 1.38
	sys/arch/xen/xen/hypervisor.c: revision 1.61
	sys/arch/xen/xen/clock.c: revision 1.62
- make xen_version globally available, with macros to access major and
  minor xen version.
- In xen_initclocks(), do a VCPUOP_stop_periodic_timer only for Xen 3.1
  and later
Should fix PR port-xen/45961
- make xen_version globally available, with macros to access major and
  minor xen version.
- In xen_initclocks(), do a VCPUOP_stop_periodic_timer only for Xen 3.1
  and later
Should fix PR port-xen/45961

Revision 1.58.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:33:46 2012 UTC (12 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.58: +8 -7 lines
Diff to previous 1.58 (colored)

merge to -current.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Feb 17 18:42:19 2012 UTC (12 years, 2 months ago) by bouyer
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Changes since 1.60: +6 -5 lines
Diff to previous 1.60 (colored)

- make xen_version globally available, with macros to access major and
  minor xen version.
- In xen_initclocks(), do a VCPUOP_stop_periodic_timer only for Xen 3.1
  and later
Should fix PR port-xen/45961

Revision 1.60 / (download) - annotate - [select for diffs], Fri Dec 9 11:47:49 2011 UTC (12 years, 4 months ago) by cherry
Branch: MAIN
CVS Tags: netbsd-6-base
Branch point for: netbsd-6
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

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

Revision 1.59 / (download) - annotate - [select for diffs], Wed Dec 7 15:47:43 2011 UTC (12 years, 4 months ago) by cegger
Branch: MAIN
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

switch from xen3-public to xen-public.

Revision 1.42.4.5 / (download) - annotate - [select for diffs], Mon Sep 26 09:56:54 2011 UTC (12 years, 6 months ago) by sborrill
Branch: netbsd-5
Changes since 1.42.4.4: +3 -3 lines
Diff to previous 1.42.4.4 (colored) to branchpoint 1.42 (colored)

Patch to fix build on Xen 2 (fallout from pullup #1672)

Revision 1.42.4.4 / (download) - annotate - [select for diffs], Fri Sep 23 12:44:51 2011 UTC (12 years, 6 months ago) by sborrill
Branch: netbsd-5
Changes since 1.42.4.3: +4 -10 lines
Diff to previous 1.42.4.3 (colored) to branchpoint 1.42 (colored)

Pull up the following revisions(s) (requested by jym in ticket #1672):
	sys/arch/xen/conf/files.xen:		revision 1.123 via patch
	sys/arch/xen/xen/hypervisor.c:		revision 1.58 via patch
	sys/arch/xen/xenbus/xenbus_dev.c:	revision 1.9
	sys/arch/xen/xenbus/xenbus_probe.c:	revision 1.35

Expose Xen kernfs entries inside a domU to make it possible to use pkgsrc's
sysutils/xentools inside a domU to query XenStore entries (or even modify
part of it if the domain has enough rights).

Revision 1.58 / (download) - annotate - [select for diffs], Thu Sep 22 23:02:35 2011 UTC (12 years, 6 months ago) by jym
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.57: +4 -10 lines
Diff to previous 1.57 (colored)

Expose Xen kernfs entries inside a domU. Patch originally from sborrill@,
slightly modified by me to profit from runtime checks for dom0 privileges
instead of using compile time macros (DOM0OPS).

It should now be possible to use pkgsrc's sysutils/xentools inside
a domU to query XenStore entries (or even modify part of it if the domain
has enough rights).

Revision 1.57 / (download) - annotate - [select for diffs], Tue Sep 20 00:12:24 2011 UTC (12 years, 7 months ago) by jym
Branch: MAIN
Changes since 1.56: +30 -2 lines
Diff to previous 1.56 (colored)

Merge jym-xensuspend branch in -current. ok bouyer@.

Goal: save/restore support in NetBSD domUs, for i386, i386 PAE and amd64.

Executive summary:
- split all Xen drivers (xenbus(4), grant tables, xbd(4), xennet(4))
in two parts: suspend and resume, and hook them to pmf(9).
- modify pmap so that Xen hypervisor does not cry out loud in case
it finds "unexpected" recursive memory mappings
- provide a sysctl(7), machdep.xen.suspend, to command suspend from
userland via powerd(8). Note: a suspend can only be handled correctly
when dom0 requested it, so provide a mechanism that will prevent
kernel to blindly validate user's commands

The code is still in experimental state, use at your own risk: restore
can corrupt backend communications rings; this can completely thrash
dom0 as it will loop at a high interrupt level trying to honor
all domU requests.

XXX PAE suspend does not work in amd64 currently, due to (yet again!)
page validation issues with hypervisor. Will fix.

XXX secondary CPUs are not suspended, I will write the handlers
in sync with cherry's Xen MP work.

Tested under i386 and amd64, bear in mind ring corruption though.

No build break expected, GENERICs and XEN* kernels should be fine.
./build.sh distribution still running. In any case: sorry if it does
break for you, contact me directly for reports.

Revision 1.43.2.8 / (download) - annotate - [select for diffs], Sat Aug 27 15:37:32 2011 UTC (12 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.43.2.7: +41 -7 lines
Diff to previous 1.43.2.7 (colored) next main 1.44 (colored)

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

No regression observed on suspend/restore.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Aug 13 12:37:30 2011 UTC (12 years, 8 months ago) by cherry
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.55: +39 -5 lines
Diff to previous 1.55 (colored)

MP probing and startup code

Revision 1.55.2.2 / (download) - annotate - [select for diffs], Sun Jun 26 12:56:33 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.55.2.1: +12 -11 lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

Unbreak uniprocessor build

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:07:11 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.53: +4 -14 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

Sync with HEAD.

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Fri Jun 3 13:27:42 2011 UTC (12 years, 10 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.55: +38 -5 lines
Diff to previous 1.55 (colored)

Initial import of xen MP sources, with kernel and userspace tests.
 - this is a source priview.
 - boots to single user.
 - spurious interrupt and pmap related panics are normal

Revision 1.51.2.4 / (download) - annotate - [select for diffs], Tue May 31 03:04:24 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.51.2.3: +2 -2 lines
Diff to previous 1.51.2.3 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

sync with head

Revision 1.55 / (download) - annotate - [select for diffs], Tue May 17 17:34:53 2011 UTC (12 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.54: +4 -4 lines
Diff to previous 1.54 (colored)

PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name.  Correct that.

Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.

This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:

algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

Revision 1.43.2.7 / (download) - annotate - [select for diffs], Sat May 7 17:39:47 2011 UTC (12 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.43.2.6: +6 -6 lines
Diff to previous 1.43.2.6 (colored)

KNF.

Revision 1.43.2.6 / (download) - annotate - [select for diffs], Mon May 2 22:49:59 2011 UTC (12 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.43.2.5: +2 -12 lines
Diff to previous 1.43.2.5 (colored)

Sync with head.

Revision 1.51.2.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:34 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.51.2.2: +0 -10 lines
Diff to previous 1.51.2.2 (colored) to branchpoint 1.51 (colored)

sync with head

Revision 1.54 / (download) - annotate - [select for diffs], Sun Apr 17 23:54:05 2011 UTC (13 years ago) by jym
Branch: MAIN
Changes since 1.53: +2 -12 lines
Diff to previous 1.53 (colored)

Remove remnants from the past when Xen 2 was still alive.

Revision 1.51.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:52:34 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.51.2.1: +2 -3 lines
Diff to previous 1.51.2.1 (colored) to branchpoint 1.51 (colored)

sync with head

Revision 1.43.2.5 / (download) - annotate - [select for diffs], Sun Oct 24 22:48:22 2010 UTC (13 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.43.2.4: +21 -14 lines
Diff to previous 1.43.2.4 (colored)

Sync with HEAD

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:45:36 2010 UTC (13 years, 8 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.50.2.1: +0 -1 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

Sync with HEAD.

Revision 1.36.4.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:00 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.36.4.3: +8 -9 lines
Diff to previous 1.36.4.3 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

sync with head.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Aug 7 21:58:34 2010 UTC (13 years, 8 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.52: +2 -3 lines
Diff to previous 1.52 (colored)

acpi_madt.h is gone

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

sync with head

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:40:01 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.50: +17 -9 lines
Diff to previous 1.50 (colored)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Apr 28 19:17:04 2010 UTC (13 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.51: +8 -8 lines
Diff to previous 1.51 (colored)

On x86, change the bus_space_tag_t to a pointer to a struct
bus_space_tag.  For now, bus_space_tag's only member is
bst_type, the type of space, which is either X86_BUS_SPACE_IO
or X86_BUS_SPACE_MEM.  In the future, new bus_space_tag members
will refer to override-functions installed by a new function,
bus_space_tag_create(9).

Add pointers to constant struct bus_space_tag, x86_bus_space_io and
x86_bus_space_mem.  Use them to replace most uses of X86_BUS_SPACE_IO
and X86_BUS_SPACE_MEM.

Add an x86-specific bus_space_is_equal(9) implementation that compares
the two tags' bst_type.

Revision 1.42.4.1.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:33:45 2010 UTC (14 years ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.42.4.1: +9 -3 lines
Diff to previous 1.42.4.1 (colored) next main 1.42.4.2 (colored)

sync to netbsd-5

Revision 1.36.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:10 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.36.4.2: +11 -13 lines
Diff to previous 1.36.4.2 (colored) to branchpoint 1.36 (colored)

sync with head

Revision 1.51 / (download) - annotate - [select for diffs], Tue Mar 2 16:44:08 2010 UTC (14 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.50: +11 -3 lines
Diff to previous 1.50 (colored)

Re-zero the attach args before setting them up for a new call to
config_found_ia().  In this way we avoid passing an uninitialized
pcibus_attach_args.pba_pc that will cause problems, later.

Revision 1.43.2.4 / (download) - annotate - [select for diffs], Sun Nov 1 21:43:28 2009 UTC (14 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.43.2.3: +30 -2 lines
Diff to previous 1.43.2.3 (colored)

- Upgrade suspend/resume code to comply with Xen2 removal.
- Add support for PAE domUs suspend/resume.
- Fix an issue regarding initialization of the xbd ring I/O that could end
badly during resume, with invalid block operations submitted to dom0 backend.

NetBSD supports PAE under x86_32 by considering the L2 page as being
4 pages long instead of 1.

Xen validates the page types during resume. Sadly, the hypervisor handles
alternative recursive mappings (== PG/PD entries pointing to pages other
than self) inadequately, which could lead to incorrect page pinning.

As a result, the important change with this patch is to clear these alternative
mappings during suspend, and reset them back to their former self upon
resume. For PAE, approx. all 4 PDIR_SLOT_PTEs could be considered as
alternative recursive mappings.

See comments in pmap.c for further details.

Now, let the testing and bug hunting begin.

Revision 1.43.2.3 / (download) - annotate - [select for diffs], Sun Nov 1 13:58:46 2009 UTC (14 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.43.2.2: +15 -169 lines
Diff to previous 1.43.2.2 (colored)

Sync with HEAD.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Oct 23 02:32:34 2009 UTC (14 years, 5 months ago) by snj
Branch: MAIN
CVS Tags: uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip
Changes since 1.49: +2 -7 lines
Diff to previous 1.49 (colored)

Remove 3rd and 4th clauses.  OK cl@ (copyright holder).

Revision 1.49 / (download) - annotate - [select for diffs], Mon Oct 19 18:41:11 2009 UTC (14 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.48: +2 -7 lines
Diff to previous 1.48 (colored)

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

Revision 1.42.4.3 / (download) - annotate - [select for diffs], Sun Oct 4 00:02:00 2009 UTC (14 years, 6 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.42.4.2: +7 -7 lines
Diff to previous 1.42.4.2 (colored) to branchpoint 1.42 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1054):
	sys/arch/xen/xen/hypervisor.c: revision 1.45
Make sure xenkernfs_init() is called for XEN2 too.

Revision 1.42.4.2 / (download) - annotate - [select for diffs], Sat Oct 3 23:54:05 2009 UTC (14 years, 6 months ago) by snj
Branch: netbsd-5
Changes since 1.42.4.1: +9 -3 lines
Diff to previous 1.42.4.1 (colored) to branchpoint 1.42 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1054):
	sys/arch/xen/conf/files.xen: revision 1.93
	sys/arch/xen/include/pci_machdep.h: revision 1.11
	sys/arch/xen/include/xen.h: revision 1.31
	sys/arch/xen/xen/hypervisor.c: revision 1.44
	sys/arch/xen/xen/pci_intr_machdep.c: revision 1.8
	sys/arch/xen/xen/pciback.c: revision 1.1
	sys/arch/xen/xen/xen_machdep.c: revision 1.5
	sys/arch/xen/xen/xpci_xenbus.c: revision 1.1
Work in progress on PCI front-end/back-end support
front-end:
- add a xpci* at xenbus? which provides pci busses from the dom0
  xpci provides support routines for PCI config space operations and
  enumeration in xpci_xenbus.c
- hypervisor.c: do dom0-style PCI attach only ifdef DOM0OPS
- pci_intr_machdep.c:  check line value only if DOM0OPS
back-end:
- add a pciback* at pci? device which takes precedences over all
  other PCI devices (match return 500) and matches all devices passed
  to pciback.hide option on boot command line.
  It exports the PCI device informations to files in /kern/xen/pci/
- hypervisor.c: create /kern/xen earlier so pciback can create its
  entries while PCI devices are probed
- xen_machdep.c: add handling for pciback.hide=
frontend is know working on Xen 3.1.x dom0 with ahc(4) and pciide(4)
devices. uhci(4) fail when trying to allocate a large contigous DMA
buffer.
backend is work in progress; support in xentools is not there yet.

Revision 1.36.4.2 / (download) - annotate - [select for diffs], Wed Aug 19 18:46:55 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.36.4.1: +15 -124 lines
Diff to previous 1.36.4.1 (colored) to branchpoint 1.36 (colored)

sync with head.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Aug 18 16:41:03 2009 UTC (14 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Changes since 1.47: +9 -9 lines
Diff to previous 1.47 (colored)

Switch to ACPICA 20090730, and update for API changes.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Jul 29 12:02:09 2009 UTC (14 years, 8 months ago) by cegger
Branch: MAIN
Changes since 1.46: +8 -117 lines
Diff to previous 1.46 (colored)

remove Xen2 support.
ok bouyer@

Revision 1.43.2.2 / (download) - annotate - [select for diffs], Wed May 13 17:18:50 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.43.2.1: +11 -5 lines
Diff to previous 1.43.2.1 (colored)

Sync with HEAD.

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

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:14 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.36: +33 -19 lines
Diff to previous 1.36 (colored)

sync with head.

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:01 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.42.2.2: +9 -9 lines
Diff to previous 1.42.2.2 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Sync with HEAD.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Apr 18 09:51:21 2009 UTC (15 years ago) by mlelstv
Branch: 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
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored)

mpacpi_scan_pci and mpbios_scan_pci were unified into mp_pci_scan.
See sys/arch/x86/x86/mp.c:1.9.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Mar 10 17:17:30 2009 UTC (15 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.44: +7 -7 lines
Diff to previous 1.44 (colored)

Make sure xenkernfs_init() is called for XEN2 too.

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:29:49 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.42.2.1: +9 -3 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored)

Sync with HEAD.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Feb 13 21:03:59 2009 UTC (15 years, 2 months ago) by bouyer
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.43: +9 -3 lines
Diff to previous 1.43 (colored)

Work in progress on PCI front-end/back-end support
front-end:
- add a xpci* at xenbus? which provides pci busses from the dom0
  xpci provides support routines for PCI config space operations and
  enumeration in xpci_xenbus.c
- hypervisor.c: do dom0-style PCI attach only ifdef DOM0OPS
- pci_intr_machdep.c:  check line value only if DOM0OPS

back-end:
- add a pciback* at pci? device which takes precedences over all
  other PCI devices (match return 500) and matches all devices passed
  to pciback.hide option on boot command line.
  It exports the PCI device informations to files in /kern/xen/pci/
- hypervisor.c: create /kern/xen earlier so pciback can create its
  entries while PCI devices are probed
- xen_machdep.c: add handling for pciback.hide=

frontend is know working on Xen 3.1.x dom0 with ahc(4) and pciide(4)
devices. uhci(4) fail when trying to allocate a large contigous DMA
buffer.

backend is work in progress; support in xentools is not there yet.

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Mon Feb 9 00:03:55 2009 UTC (15 years, 2 months ago) by jym
Branch: jym-xensuspend
Changes since 1.43: +37 -2 lines
Diff to previous 1.43 (colored)

Initial code for xen save/restore/migrate facilities.

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

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

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

- integrate the suspend code with sysmon.

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

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

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

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Thu Jan 22 20:17:13 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.42: +2 -11 lines
Diff to previous 1.42 (colored)

Pull up following revision(s) (requested by bouyer in ticket #286):
	sys/arch/xen/conf/files.xen: revision 1.92
	sys/arch/xen/x86/mainbus.c: revision 1.7 via patch
	sys/arch/xen/xen/hypervisor.c: revision 1.43
The Xen PCI_BUS_FIXUP/PCI_ADDR_FIXUP has rotted, catch up with x86 changes
in this area. Patch provided by FUKAUMI Naoki in PR#40356.

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

Sync with HEAD.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Jan 18 20:50:43 2009 UTC (15 years, 3 months ago) by bouyer
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.42: +2 -11 lines
Diff to previous 1.42 (colored)

The Xen PCI_BUS_FIXUP/PCI_ADDR_FIXUP has rotted, catch up with x86 changes
in this area. Patch provided by FUKAUMI Naoki in PR#40356.

Revision 1.33.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:39 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.33.6.2: +9 -5 lines
Diff to previous 1.33.6.2 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Sync with HEAD.

Revision 1.37.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:13:43 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.37.4.1: +6 -6 lines
Diff to previous 1.37.4.1 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

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

Revision 1.42 / (download) - annotate - [select for diffs], Fri Oct 24 21:09:24 2008 UTC (15 years, 5 months ago) by jym
Branch: MAIN
CVS Tags: netbsd-5-base, mjf-devfs2-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

- rename init_events() to events_init(), to better reflect netbsd semantics

- change unbind_[pv]irq_from_evtch() so that they now return the event
channel the [PV]IRQ was bound to. It reflects the opposite behaviour of the
bind_[pv]irq_to_evtch() functions.

- remove xenbus_suspend() and xenbus_resume() prototypes, as they are not
used anywhere else, and will conflict with the xenbus pmf(9) handlers.

- make start_info aligned on a page boundary, as Xen expects it to be so.

- mask event channel during xbd detach before removing its handler (can
avoid spurious events).

- add the "protocol" entry in xenstore during xbd initialization. Normally
created during domU's boot by xentools, it is under domU's responsibility
in all other cases (save/restore, hot plugging, etc.).

- modifications to xs_init(), so that it can properly return an error.

Reviewed by Christoph (cegger@).

Revision 1.41 / (download) - annotate - [select for diffs], Fri Oct 24 18:02:58 2008 UTC (15 years, 5 months ago) by jym
Branch: MAIN
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

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

No functional changes.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Oct 21 15:46:32 2008 UTC (15 years, 5 months ago) by cegger
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

introduce two macros: xendomain_is_dom0() and xendomain_is_privileged(). Use them.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:13 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.37: +9 -3 lines
Diff to previous 1.37 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Oct 11 21:11:11 2008 UTC (15 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: haad-dm-base1
Changes since 1.38: +7 -3 lines
Diff to previous 1.38 (colored)

Support 64bit DMA on PCI busses.

Revision 1.33.6.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:14 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.33.6.1: +2 -0 lines
Diff to previous 1.33.6.1 (colored) to branchpoint 1.33 (colored)

Sync with HEAD.

Revision 1.36.6.2 / (download) - annotate - [select for diffs], Wed Sep 24 16:38:50 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.36.6.1: +4 -2 lines
Diff to previous 1.36.6.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Sep 16 19:55:32 2008 UTC (15 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3
Changes since 1.37: +4 -2 lines
Diff to previous 1.37 (colored)

Implement the arch-dependent p2m frame lists list.  This adds support for
'xm dump-core' for NetBSD domUs.
From Jean-Yves Migeon (jean-yves dot migeon at espci dot fr)

Revision 1.36.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:51 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.36: +15 -4 lines
Diff to previous 1.36 (colored)

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

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:04 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.36: +15 -4 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

sync with head

Revision 1.33.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:54 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.33: +23 -20 lines
Diff to previous 1.33 (colored)

Sync with HEAD.

Revision 1.37 / (download) - annotate - [select for diffs], Tue May 27 17:01:07 2008 UTC (15 years, 10 months ago) by explorer
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Changes since 1.36: +15 -4 lines
Diff to previous 1.36 (colored)

print out the xen hypervisor's version number when attaching

Revision 1.36 / (download) - annotate - [select for diffs], Wed Apr 16 18:41:48 2008 UTC (16 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.35: +9 -16 lines
Diff to previous 1.35 (colored)

device_t / softc split
reviewed, tested and approved by bouyer

Revision 1.35 / (download) - annotate - [select for diffs], Mon Apr 14 13:38:03 2008 UTC (16 years ago) by cegger
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

- use POSIX integer types
- ansify functions

Revision 1.34 / (download) - annotate - [select for diffs], Sun Apr 6 07:24:20 2008 UTC (16 years ago) by cegger
Branch: MAIN
Changes since 1.33: +3 -4 lines
Diff to previous 1.33 (colored)

use aprint_*_dev and device_xname

Revision 1.31.20.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:30 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.31.20.1: +3 -3 lines
Diff to previous 1.31.20.1 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

sync with HEAD

Revision 1.31.26.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:21 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.31.26.1: +3 -3 lines
Diff to previous 1.31.26.1 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

Sync with HEAD.

Revision 1.14.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:40:35 2008 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.14.2.5: +3 -3 lines
Diff to previous 1.14.2.5 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

sync with head

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jan 11 20:00:54 2008 UTC (16 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.32: +1 -1 lines
Diff to previous 1.32 (colored)

Merge the bouyer-xeni386 branch to head, at tag bouyer-xeni386-merge1 (the
branch is still active and will see i386PAE support developement).
Sumary of changes:
- switch xeni386 to the x86/x86/pmap.c, and the xen/x86/x86_xpmap.c
  pmap bootstrap.
- merge back most of xen/i386/ to i386/i386
- change the build to reduce diffs between i386 and amd64 in file locations
- remove include files that were identical to the i386/amd64 counterparts,
  the build will find them via the xen-ma/machine link.

Revision 1.31.20.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:50:19 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.31: +16 -12 lines
Diff to previous 1.31 (colored)

sync with HEAD

Revision 1.32.6.1 / (download) - annotate - [select for diffs], Sat Jan 5 23:39:50 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Remove files that just include the x86 counterpart.

Revision 1.31.26.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:18:26 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.31: +16 -12 lines
Diff to previous 1.31 (colored)

Sync with HEAD.

Revision 1.14.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:27:20 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.14.2.4: +16 -12 lines
Diff to previous 1.14.2.4 (colored) to branchpoint 1.14 (colored)

sync with head

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Mon Dec 3 18:40:42 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.31: +16 -12 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with HEAD.

Revision 1.31.18.1 / (download) - annotate - [select for diffs], Tue Nov 27 19:36:26 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.31: +16 -12 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Nov 22 16:17:07 2007 UTC (16 years, 4 months ago) by bouyer
Branch: 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
Changes since 1.31: +16 -12 lines
Diff to previous 1.31 (colored)

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

Revision 1.31.24.1 / (download) - annotate - [select for diffs], Wed Oct 17 21:08:23 2007 UTC (16 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.31: +16 -12 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

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

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

Revision 1.14.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:31:36 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.14.2.3: +10 -10 lines
Diff to previous 1.14.2.3 (colored) to branchpoint 1.14 (colored)

sync with head.

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:51:49 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.29: +10 -10 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with HEAD.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Mar 6 12:35:39 2007 UTC (17 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ppcoea-renovation-base, ppcoea-renovation, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking, mjf-devfs, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.30: +10 -9 lines
Diff to previous 1.30 (colored)

fix vcpu after recent cpubus changes.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Mar 5 23:26:40 2007 UTC (17 years, 1 month ago) by dogcow
Branch: MAIN
Changes since 1.29: +2 -3 lines
Diff to previous 1.29 (colored)

The recent cpu_attach changes broke the xen build; while this compiles,
I'm far from positive it's the correct fix.

Revision 1.14.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:08:56 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.14.2.2: +2 -8 lines
Diff to previous 1.14.2.2 (colored) to branchpoint 1.14 (colored)

sync with head.

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:12 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.26.2.1: +2 -8 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored)

Sync with head.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jan 29 01:52:46 2007 UTC (17 years, 2 months ago) by hubertf
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.28: +2 -8 lines
Diff to previous 1.28 (colored)

Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:25 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.14.2.1: +45 -25 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored)

sync with head.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:29:39 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.26: +37 -20 lines
Diff to previous 1.26 (colored)

Sync with head.

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

sync with head

Revision 1.28 / (download) - annotate - [select for diffs], Sun Oct 15 13:31:18 2006 UTC (17 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

include machine/mpconfig.h so that these files can be compiled
with ACPI but without MPBIOS.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Sep 28 18:53:16 2006 UTC (17 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.26: +36 -20 lines
Diff to previous 1.26 (colored)

Add Xen3 support for ACPI and/or MPBIOS + IOAPIC. To help with this, physical
CPUs are now configured on mainbus only in dom0, and only to know about
their APIC id. virtual CPUs are attached to hypervisor as:
vcpu* at hypervisor?
and this is what's used as curcpu(). The kernel config files needs to be
updated for this, see XEN3_DOM0 or XEN3_DOMU for examples.
XEN3_DOM0 now has acpi, MPBIOS and ioapic by default.
Note that a Xen dom0 kernel doens't have access to the lapic.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:45:05 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.19: +117 -43 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

sync with head

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Fri Sep 8 19:07:40 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: abandoned-netbsd-4
Changes since 1.25: +8 -5 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Pull up following revision(s) (requested by jld in ticket #129):
	sys/arch/xen/conf/files.xen: revision 1.46
	sys/arch/xen/xen/hypervisor.c: revision 1.26
	sys/arch/xen/xen/shutdown_xenbus.c: revision 1.1
	sys/arch/xen/xenbus/xenbus_probe.c: revision 1.13
	sys/arch/xen/include/shutdown_xenbus.h: revision 1.1
"xm shutdown" support for xen3.  ok'ed by Manuel Bouyer.

Revision 1.12.2.7 / (download) - annotate - [select for diffs], Fri Sep 8 10:27:35 2006 UTC (17 years, 7 months ago) by ghen
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.12.2.6: +8 -5 lines
Diff to previous 1.12.2.6 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Pull up following revision(s) (requested by jld in ticket #1499):
	sys/arch/xen/conf/files.xen: revision 1.46
	sys/arch/xen/xen/hypervisor.c: revision 1.26
	sys/arch/xen/xen/shutdown_xenbus.c: revision 1.1
	sys/arch/xen/xenbus/xenbus_probe.c: revision 1.13
	sys/arch/xen/include/shutdown_xenbus.h: revision 1.1
"xm shutdown" support for xen3.  ok'ed by Manuel Bouyer.

Revision 1.19.6.4 / (download) - annotate - [select for diffs], Fri Aug 11 15:43:16 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.19.6.3: +10 -7 lines
Diff to previous 1.19.6.3 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

sync with head

Revision 1.26 / (download) - annotate - [select for diffs], Fri Aug 11 13:22:43 2006 UTC (17 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.25: +8 -5 lines
Diff to previous 1.25 (colored)

"xm shutdown" support for xen3.  ok'ed by Manuel Bouyer.

Revision 1.24.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:06 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Merge from HEAD.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jul 7 18:15:53 2006 UTC (17 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

make this compilable without kernfs in the case of !DOM0OPS && XEN3.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:58:23 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.14: +146 -54 lines
Diff to previous 1.14 (colored)

sync with head.

Revision 1.21.4.2 / (download) - annotate - [select for diffs], Wed May 24 15:48:25 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.21.4.1: +86 -33 lines
Diff to previous 1.21.4.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

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

Revision 1.19.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:11 2006 UTC (18 years ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.19: +111 -40 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with head.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Wed Apr 19 02:34:03 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.21: +90 -37 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

sync with head - hopefully this will work

Revision 1.19.6.3 / (download) - annotate - [select for diffs], Tue Apr 11 11:53:48 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.19.6.2: +86 -33 lines
Diff to previous 1.19.6.2 (colored) to branchpoint 1.19 (colored)

sync with head

Revision 1.24 / (download) - annotate - [select for diffs], Sun Apr 9 22:14:13 2006 UTC (18 years ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, simonb-timecounters-base, gdamore-uart-base, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: gdamore-uart
Changes since 1.23: +3 -7 lines
Diff to previous 1.23 (colored)

Move xenkernfs_init() back in hypervisor.c so that /kern/xen/privcmd can
also register properly.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Apr 9 19:28:01 2006 UTC (18 years ago) by bouyer
Branch: MAIN
Changes since 1.22: +91 -34 lines
Diff to previous 1.22 (colored)

Add support for ACPI in xen-3 dom0 support. We can now boot a xen-3 dom0
kernel with a default xen comamnd line.

Revision 1.12.2.6 / (download) - annotate - [select for diffs], Fri Apr 7 12:51:26 2006 UTC (18 years ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RC2, netbsd-3-1-RC1
Changes since 1.12.2.5: +37 -12 lines
Diff to previous 1.12.2.5 (colored) to branchpoint 1.12 (colored)

Apply patch (requested by bouyer in ticket #1245):
Pull up Xen3 domU support. This adds support for the Xen-3 memory bootstrap,
xenstore, and block and network device frontend. Xen-3 support is turned
on by 'options XEN3', which disable Xen-2 support.
Changes affecting non-xen3 specific code:
- xbd and xennet at hypervisor now attaches with xbd_hypervisor and
  xennet_hypervisor
- x86_atomic_* renamed to xen_atomic_*
- use genassim.cf to pull in more constant from include files for assembly
- Map the shared info page from locore.S instead of the 0xffffffff hack
  in xen_machdep.c
- remove some unused code
- some __asm__ __volatile__ -> __asm volatile and __inline__ -> inline
- more debug code

Revision 1.19.6.2 / (download) - annotate - [select for diffs], Sat Apr 1 12:06:36 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.19.6.1: +6 -6 lines
Diff to previous 1.19.6.1 (colored) to branchpoint 1.19 (colored)

sync with head.

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Tue Mar 28 09:46:22 2006 UTC (18 years ago) by tron
Branch: peter-altq
Changes since 1.21: +6 -6 lines
Diff to previous 1.21 (colored)

Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Mar 19 15:11:50 2006 UTC (18 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pdpolicy-base3
Changes since 1.21: +6 -6 lines
Diff to previous 1.21 (colored)

More xbd->xbd_hypervisor changes; non-Xen3 kernels build again.

Revision 1.19.6.1 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:07 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.19: +24 -6 lines
Diff to previous 1.19 (colored)

sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Mar 6 22:04:18 2006 UTC (18 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pdpolicy-base2, peter-altq-base
Branch point for: peter-altq, elad-kernelauth
Changes since 1.20: +9 -7 lines
Diff to previous 1.20 (colored)

Fix build issues that didn't show up in my private tree.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Mar 6 20:34:09 2006 UTC (18 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.19: +18 -2 lines
Diff to previous 1.19 (colored)

pull in the grant table and Xenbus interfaces, and attach xenbus at hypervisor.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:51:48 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.18: +26 -4 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jan 15 22:09:52 2006 UTC (18 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.18: +26 -4 lines
Diff to previous 1.18 (colored)

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.12.2.5 / (download) - annotate - [select for diffs], Thu Jan 5 05:59:03 2006 UTC (18 years, 3 months ago) by riz
Branch: netbsd-3
Changes since 1.12.2.4: +2 -12 lines
Diff to previous 1.12.2.4 (colored) to branchpoint 1.12 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1085):
	sys/arch/xen/xen/hypervisor.c: revision 1.17
	sys/arch/xen/i386/hypervisor_machdep.c: revision 1.13
	sys/arch/xen/include/hypervisor.h: revision 1.15
inline 2 trivial functions that are called often (according to profiling
data).

Revision 1.12.2.4 / (download) - annotate - [select for diffs], Thu Jan 5 05:28:11 2006 UTC (18 years, 3 months ago) by riz
Branch: netbsd-3
Changes since 1.12.2.3: +2 -2 lines
Diff to previous 1.12.2.3 (colored) to branchpoint 1.12 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1083):
	sys/arch/xen/xen/hypervisor.c: revision 1.16
	sys/arch/xen/xen/if_xennet.c: revision 1.31
	sys/arch/xen/conf/files.xen: revision 1.29
	sys/arch/xen/xen/xbd.c: revision 1.22
Define a xendevbus atttibute and add it to hypervisor.  Use it for xen devices
which attach to hypervisor. This allows to use config_found_ia() instead of
config_found(), instead of relying on the order of which device are
written in ioconf.c.
From Quentin Garnier.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 11 12:19:50 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

merge ktrace-lwp.

Revision 1.7.4.7 / (download) - annotate - [select for diffs], Thu Nov 10 14:00:34 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.4.6: +69 -45 lines
Diff to previous 1.7.4.6 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Sync with HEAD. Here we go again...

Revision 1.17 / (download) - annotate - [select for diffs], Tue Sep 20 20:33:53 2005 UTC (18 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.16: +2 -12 lines
Diff to previous 1.16 (colored)

inline 2 trivial functions that are called often (according to profiling
data).

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Thu Aug 25 20:16:21 2005 UTC (18 years, 7 months ago) by tron
Branch: 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
Changes since 1.12.2.2: +30 -21 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored)

Pull up following revision(s) (requested by bouyer in ticket #694):
	sys/arch/xen/xen/hypervisor.c: revision 1.15
	sys/arch/xen/xen/evtchn.c: revision 1.16
	sys/arch/xen/conf/files.xen: revision 1.27
	sys/arch/xen/i386/machdep.c: revision 1.18
Make PCI devices usable for non-domain0 kernels. Based on patches sent by
Ceri Storey to port-xen, with some additionnal changes by me:
- include bus_dma.c, bus_space.c and pci_machdep.c if pci is defined
  instead of dom0ops
- Make various initialisations, and probe/attach pci busses based on NPCI
  instead of DOM0OPS
- in conf/files.xen, move xen-specific devices before non-xen specific devices
  so that the xen-specific match function is called first, to avoid false
  attachement from too liberal match function in non-xen code.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Aug 21 22:20:28 2005 UTC (18 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

Define a xendevbus atttibute and add it to hypervisor.  Use it for xen devices
which attach to hypervisor. This allows to use config_found_ia() instead of
config_found(), instead of relying on the order of which device are
written in ioconf.c.
From Quentin Garnier.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Aug 19 16:06:12 2005 UTC (18 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.14: +30 -21 lines
Diff to previous 1.14 (colored)

Make PCI devices usable for non-domain0 kernels. Based on patches sent by
Ceri Storey to port-xen, with some additionnal changes by me:
- include bus_dma.c, bus_space.c and pci_machdep.c if pci is defined
  instead of dom0ops
- Make various initialisations, and probe/attach pci busses based on NPCI
  instead of DOM0OPS
- in conf/files.xen, move xen-specific devices before non-xen specific devices
  so that the xen-specific match function is called first, to avoid false
  attachement from too liberal match function in non-xen code.

Revision 1.8.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:30 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.8: +150 -37 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

sync with -current

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Mon Apr 25 13:49:59 2005 UTC (18 years, 11 months ago) by tron
Branch: netbsd-3
Changes since 1.12.2.1: +39 -2 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored)

Pull up revision 1.14 (requested by bouyer in ticket #190):
Add sysmon_power attribute to hypervisor, and an handler for CMSG_SHUTDOWN
messages.
Now a NetBSD guest will reboot or shutdown on 'xm shutdown' commands in
domain0.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Mon Apr 25 13:43:57 2005 UTC (18 years, 11 months ago) by tron
Branch: netbsd-3
Changes since 1.12: +2 -14 lines
Diff to previous 1.12 (colored)

Pull up revision 1.13 (requested by bouyer in ticket #187):
Add a kernel thread to the control interface, to handle deferred callacks
(which may sleep). Fix port-xen/29851 by YAMAMOTO Takashi.
Use config_pending_incr()/config_pending_decr() in if_xennet instead of
busy-looping (which doesn't work any more).
Remove the kernel thread from xbd, which isn't needed any more.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Apr 18 21:33:21 2005 UTC (19 years ago) by bouyer
Branch: MAIN
CVS Tags: kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.13: +39 -2 lines
Diff to previous 1.13 (colored)

Add sysmon_power attribute to hypervisor, and an handler for CMSG_SHUTDOWN
messages.
Now a NetBSD guest will reboot or shutdown on 'xm shutdown' commands in
domain0.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 17 21:11:30 2005 UTC (19 years ago) by bouyer
Branch: MAIN
Changes since 1.12: +2 -14 lines
Diff to previous 1.12 (colored)

Add a kernel thread to the control interface, to handle deferred callacks
(which may sleep). Fix port-xen/29851 by YAMAMOTO Takashi.
Use config_pending_incr()/config_pending_decr() in if_xennet instead of
busy-looping (which doesn't work any more).
Remove the kernel thread from xbd, which isn't needed any more.

Revision 1.7.4.6 / (download) - annotate - [select for diffs], Fri Apr 1 14:29:11 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.4.5: +125 -37 lines
Diff to previous 1.7.4.5 (colored) to branchpoint 1.7 (colored)

Sync with HEAD.

Revision 1.8.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:33:26 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.8: +125 -37 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Mar 11 20:39:39 2005 UTC (19 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.11: +6 -6 lines
Diff to previous 1.11 (colored)

Properly define NISA and NPCI; cleanup use of NISA and NPCI.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Mar 11 15:50:25 2005 UTC (19 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

Wrap some ISA stuff in DOM0OPS, so that DOMU kernels build again.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Mar 10 22:10:11 2005 UTC (19 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.9: +21 -8 lines
Diff to previous 1.9 (colored)

Clean up ISA attachement, and do not try to attach it at hypervisor if
it has already been attached at pcib.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Mar 9 22:39:21 2005 UTC (19 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.8: +111 -38 lines
Diff to previous 1.8 (colored)

Merge the bouyer-xen2 branch. This add supports for the Xen 2.0 virtual
machine kernel (both privileged and non-privileged domains), and remove support
for the old xen 1.2.

Revision 1.8.2.6 / (download) - annotate - [select for diffs], Tue Mar 8 14:05:02 2005 UTC (19 years, 1 month ago) by bouyer
Branch: bouyer-xen2
Changes since 1.8.2.5: +10 -33 lines
Diff to previous 1.8.2.5 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Add support for ISA bus.
Clean up console attachement, and add support for VGA/pckbc console.
Add support for USB devices, including USB audio (which means others audio
  devices should work too)
Add some more generic options to XEN0.

Revision 1.8.2.5 / (download) - annotate - [select for diffs], Wed Feb 16 14:01:47 2005 UTC (19 years, 2 months ago) by bouyer
Branch: bouyer-xen2
Changes since 1.8.2.4: +5 -2 lines
Diff to previous 1.8.2.4 (colored) to branchpoint 1.8 (colored)

Glue xen_shm and the block and network backends to the system.

Revision 1.8.2.4 / (download) - annotate - [select for diffs], Mon Jan 31 17:21:16 2005 UTC (19 years, 2 months ago) by bouyer
Branch: bouyer-xen2
Changes since 1.8.2.3: +2 -4 lines
Diff to previous 1.8.2.3 (colored) to branchpoint 1.8 (colored)

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.8.2.3 / (download) - annotate - [select for diffs], Tue Jan 18 15:09:04 2005 UTC (19 years, 3 months ago) by bouyer
Branch: bouyer-xen2
Changes since 1.8.2.2: +80 -10 lines
Diff to previous 1.8.2.2 (colored) to branchpoint 1.8 (colored)

snapshot of work in progress on physical devices support:
- support pci at hypervisor. Attach one PCI bus for each bus returned by
  PHYSDEVOP_PCI_PROBE_ROOT_BUSES (it looks like xen hides ppb bridges from
  the guest OS).
- implement pci_conf_read()/pci_conf_write() using the appropriate
  PHYSDEVOP_PCI_* calls.
- call PHYSDEVOP_PCI_INITIALISE_DEVICE from pci_intr_map() to make xen
  do interrupts routing if needed, and map the hardware interrupt to
  a xen interrupt.
- add pci and associated devices to files.xen

This is enouth to have IDE controllers work in PIO mode.
TODO: bus_dma support (currently bus_dma won't translate pseudo-physical
      addresses to machine addresses), ISA support, test memory-mapped
      I/O registers.

Revision 1.7.4.5 / (download) - annotate - [select for diffs], Sat Dec 18 09:31:45 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.4.4: +3 -2 lines
Diff to previous 1.7.4.4 (colored) to branchpoint 1.7 (colored)

Sync with HEAD.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Fri Dec 17 11:31:23 2004 UTC (19 years, 4 months ago) by bouyer
Branch: bouyer-xen2
Changes since 1.8.2.1: +3 -2 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored)

Merge rev 1.8

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Mon Dec 13 17:52:21 2004 UTC (19 years, 4 months ago) by bouyer
Branch: bouyer-xen2
Changes since 1.8: +28 -4 lines
Diff to previous 1.8 (colored)

Commit files from netbsd-2.0-xen-sparse/sys/arch/xen in the Xen-2.0
distribution. These are the files modified from the 2.0 tree to get
NetBSD/xen working with Xen 2.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Dec 10 18:54:08 2004 UTC (19 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, bouyer-xen2-base
Branch point for: yamt-km, kent-audio2, bouyer-xen2
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

dkvar.h now needs bufq.h, and now xen compiles again.

Revision 1.7.4.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:24:45 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.4.3: +2 -2 lines
Diff to previous 1.7.4.3 (colored) to branchpoint 1.7 (colored)

Fix the sync with head I botched.

Revision 1.7.4.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:42:53 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.4.2: +2 -2 lines
Diff to previous 1.7.4.2 (colored) to branchpoint 1.7 (colored)

Sync with HEAD.

Revision 1.7.4.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:43:19 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.4.1: +216 -0 lines
Diff to previous 1.7.4.1 (colored) to branchpoint 1.7 (colored)

Sync with HEAD

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Sat May 22 15:58:54 2004 UTC (19 years, 11 months ago) by he
Branch: 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
Changes since 1.7.2.1: +216 -0 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Pull up revisions 1.1-1.7 (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.7.4.1, Fri May 7 23:05:30 2004 UTC (19 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.7: +0 -216 lines
FILE REMOVED

file hypervisor.c was added on branch ktrace-lwp on 2004-08-03 10:43:19 +0000

Revision 1.7.2.1, Fri May 7 23:05:30 2004 UTC (19 years, 11 months ago) by he
Branch: netbsd-2-0
Changes since 1.7: +0 -216 lines
FILE REMOVED

file hypervisor.c was added on branch netbsd-2-0 on 2004-05-22 15:58:54 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Fri May 7 23:05:30 2004 UTC (19 years, 11 months ago) by cl
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Branch point for: netbsd-2-0, ktrace-lwp
Changes since 1.6: +5 -2 lines
Diff to previous 1.6 (colored)

Reboot machine when hypervisor signals "die" event.

Revision 1.6 / (download) - annotate - [select for diffs], Fri May 7 15:51:04 2004 UTC (19 years, 11 months ago) by cl
Branch: MAIN
Changes since 1.5: +38 -2 lines
Diff to previous 1.5 (colored)

Add support for domain0 operations:
- access to all physical memory
- access to hypervisor traps from userland
- setup/config Xen's network routing/firewall rules

Revision 1.5 / (download) - annotate - [select for diffs], Sun Apr 25 00:24:08 2004 UTC (19 years, 11 months ago) by cl
Branch: MAIN
Changes since 1.4: +6 -6 lines
Diff to previous 1.4 (colored)

Don't attach vga and keyboard if the domain is not privileged.
Also cleanup print command if attachment fails.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Apr 24 21:33:32 2004 UTC (19 years, 11 months ago) by cl
Branch: MAIN
Changes since 1.3: +16 -2 lines
Diff to previous 1.3 (colored)

Add keyboard support and wscons config options.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 24 20:58:59 2004 UTC (19 years, 11 months ago) by cl
Branch: MAIN
Changes since 1.2: +18 -2 lines
Diff to previous 1.2 (colored)

Add vga display support.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Apr 24 18:24:14 2004 UTC (19 years, 11 months ago) by cl
Branch: MAIN
Changes since 1.1: +8 -8 lines
Diff to previous 1.1 (colored)

Consistently use xencons for eveything reffering to Xen's virtual console.

rename arch/xen/xen/console.c -> arch/xen/xen/xencons.c

Revision 1.1 / (download) - annotate - [select for diffs], Sat Apr 24 17:45:38 2004 UTC (19 years, 11 months ago) by cl
Branch: MAIN

Add ``hypervisor at mainbus'' and attach all devices provided by the
hypervisor to it instead of mainbus.

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




CVSweb <webmaster@jp.NetBSD.org>