Commit Graph

82 Commits

Author SHA1 Message Date
tls
849c42925b Changes from Christian Limpach to improve timekeeping on NetBSD/xen by
actually adjusting the time correctly (calling hardclock as needed, not
just blindly every time Xen schedules us) based on Xen's idea of the
time in the shared page.

Xen source repo change info:
 ChangeSet
   2004/09/22 13:47:22+01:00 cl349@freefall.cl.cam.ac.uk
   Fix time.

 netbsd-2.0-xen-sparse/sys/arch/xen/xen/clock.c
   2004/09/22 13:47:21+01:00 cl349@freefall.cl.cam.ac.uk +28 -3
   Don't call hardclock on spurious timer interrupt and call hardclock
   for missed interrupts.

 netbsd-2.0-xen-sparse/sys/arch/xen/conf/XEN
   2004/09/22 13:47:21+01:00 cl349@freefall.cl.cam.ac.uk +0 -1
   Don't need custom HZ value any longer.

: ----------------------------------------------------------------------
2004-09-23 02:24:22 +00:00
yamt
d2fe4b34bb move some per-cpu data definitions to MI place so that they can be modified
without touching all ports.  discussed on tech-kern@.
2004-09-22 11:32:02 +00:00
skrll
f7155e40f6 There's no need to pass a proc value when using UIO_SYSSPACE with
vn_rdwr(9) and uiomove(9).

OK'd by Jason Thorpe
2004-09-17 14:11:20 +00:00
tls
74ec9a5fcc Actually mix samples into the kernel RNG pool. There's a buglet here: all
disk samples are reported as belonging to the first disk.
2004-09-15 04:55:21 +00:00
jdolecek
3ea04717bf do not include "compat/aout/files.aout", COMPAT_AOUT is soon to be removed 2004-09-14 16:51:57 +00:00
manu
6e3c639957 IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
2004-09-04 23:29:44 +00:00
drochner
46289e1fef Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.
2004-08-30 15:05:15 +00:00
jdolecek
64969161df use uvm_grow() to update stack segment size on stack page fault instead
of MD code
2004-08-28 17:53:00 +00:00
tls
f2621c88af Set the system clock (via Xen) in resettodr(), if domain 0.
This has a couple of beneficial effects:

1) The TOD time will be preserved across boots, as one would expect.

2) Newly-started VMs will get the correct time according to domain 0.
   Previously, since we never set the time back to Xen, each VM would
   get the uncorrected system clock time, never even seeing any
   changes made since the current startup.

I don't understand how XenoLinux slaves the other domain's clocks to
the Xen "wall clock" time that we're setting here, so I haven't even
tried.  But now we can run ntpd in each domain without a huge offset
at boot caused by never updating the wall clock time at all...
2004-07-16 22:36:33 +00:00
atatat
f68a9f1ff2 Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
2004-07-15 03:53:44 +00:00
abs
bd8eb3b5ed Add (commented out) ALTQ options to all GENERIC-like files 2004-06-26 07:32:05 +00:00
jmc
84fafa3db5 Ignore errors on some rm -rf's for platforms that aren't quite
POSIX compliant
and return errors on r/o source (FreeBSD) for -rf. Fixes PR#25022
2004-06-21 18:20:08 +00:00
christos
c22e4ed8cd ptm is now mandatory, depends on pty, and can be disabled with -DNO_DEV_PTM 2004-06-18 15:02:29 +00:00
christos
0399e839cf Add pseudo-device ptm on all the generic flavored kernels. 2004-06-16 15:07:39 +00:00
cl
0ebd762347 cleanup low-level bit mangling code 2004-06-14 13:55:52 +00:00
thorpej
e33c2bb5d5 Add the %MAKEOPTIONSAPPEND token at the end of the file, after the
common Makefile.kern.inc has been included.
2004-06-04 04:45:49 +00:00
cl
c489489b14 - increase number of receive buffers
- handle case where last receive buffer is used
2004-05-14 14:23:35 +00:00
cl
4dd8e2b2cf use relative links: using $S fails if $S is relative to another dir
than the one where it's used
2004-05-14 14:07:46 +00:00
cl
885c0b6fc9 ``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386.  The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets
2004-05-12 16:56:41 +00:00
cl
ba728d7531 Avoid overrun problems with the indexes of the slots in the
communication rings.
2004-05-10 01:39:39 +00:00
cl
5359887820 Reboot machine when hypervisor signals "die" event. 2004-05-07 23:05:30 +00:00
cl
977bfc3501 Add support for domain0 operations:
- access to all physical memory
- access to hypervisor traps from userland
- setup/config Xen's network routing/firewall rules
2004-05-07 15:51:04 +00:00
cl
d877f23fb5 add support for hot-add/-remove of block devices 2004-05-07 14:15:11 +00:00
cl
8e658015da replace rdr6/ldr6 with the corresponding hypervisor traps 2004-05-07 14:01:33 +00:00
cl
e03778cac9 cleanup debugging code 2004-05-07 13:56:48 +00:00
cl
175b0c3bf7 check for AST on return from event handler to userland 2004-05-07 13:52:37 +00:00
cl
f61d1b4cce fix lazy fpu state saving 2004-05-07 13:48:32 +00:00
cl
2745d2d566 add missing break 2004-05-02 20:38:35 +00:00
cl
79d1a31951 Move struct xen_netinfo into include/xen.h so that xen12load compiles again. 2004-04-26 23:54:42 +00:00
cl
f720882cf0 Rework the physical<->machine memory mapping: offset physical addresses
by 0x100000 (above the I/O Memory "hole") leaving all physical addresses
below unused, don't perform phys<->mach mapping for addresses below 0x100000
or beyond the real hardware's physical memory.

-> /dev/mem works now as expected and X works in domain0.
2004-04-26 22:05:04 +00:00
cl
f184e73cf0 Add mouse support. 2004-04-26 19:44:54 +00:00
cl
b21e228a58 Add support for i386_iopl. 2004-04-25 23:46:07 +00:00
cl
63ccbaf08a Move some of the context switching code into a C function. 2004-04-25 19:01:27 +00:00
cl
b336bf8532 Add memory barriers. 2004-04-25 18:30:55 +00:00
cl
1408a99dbe Select first disk device as boot device if no boot device is selected
from the command line.
2004-04-25 14:40:02 +00:00
cl
a9154d4a78 Don't attach vga and keyboard if the domain is not privileged.
Also cleanup print command if attachment fails.
2004-04-25 00:24:08 +00:00
cl
8d5b657eb1 Add sysctl nodes for Xen disk cookies used by domain creation tools. 2004-04-24 21:55:37 +00:00
cl
f53151522e Enable keyboard and vga display as console when running as domain-0. 2004-04-24 21:45:58 +00:00
cl
5c7586f0e5 Add keyboard support and wscons config options. 2004-04-24 21:33:32 +00:00
cl
428e3dcc56 remove trailing empty lines 2004-04-24 21:01:37 +00:00
cl
44e8720ec9 Add vga display support. 2004-04-24 20:58:59 +00:00
cl
8e6ccbacfb Allow the block device driver to impersonate wd/sd/cd devices. This allows
for most system seamless migration from a NetBSD/i386 setup to a NetBSD/xen
setup without changing /etc/fstab or creating additional device nodes.
2004-04-24 20:05:49 +00:00
cl
122ad5af2a Make bus_space map machine addresses instead of physical addresses. 2004-04-24 19:43:53 +00:00
cl
6d328d297e Let event_set_handler set the void * argument to event handlers. 2004-04-24 19:32:37 +00:00
cl
fb658556ac Make bus_space map machine addresses instead of physical addresses. 2004-04-24 19:18:01 +00:00
cl
4c5f9e53a1 Make kernel command line parsing support additional keywords without
having to change existing code which calls the parser.
2004-04-24 18:55:02 +00:00
cl
fb65e916fb Consistently use xencons for eveything reffering to Xen's virtual console.
rename arch/xen/xen/console.c -> arch/xen/xen/xencons.c
2004-04-24 18:24:14 +00:00
cl
d843f649c6 Add ``hypervisor at mainbus'' and attach all devices provided by the
hypervisor to it instead of mainbus.
2004-04-24 17:45:38 +00:00
cl
ef3c59b551 add __KERNEL_RCSID 2004-04-24 17:41:49 +00:00
cl
edf6d721c7 Add ``hypervisor at mainbus'' and attach all devices provided by the
hypervisor to it instead of mainbus.

rename arch/xen/i386/hypervisor.c -> arch/xen/i386/hypervisor_machdep.c
2004-04-24 17:35:27 +00:00