Commit Graph

172509 Commits

Author SHA1 Message Date
oster
7cb3f2efd3 We have the notion of an 'absent' disk, so use that in another example. 2008-08-19 17:38:46 +00:00
drochner
9d0ccb1f06 in michael_mic, handle the case where the last 4 bytes cross a mbuf
boundary, fixes connection drops with WPA aka TKIP on dumb
wireless adapters (tested with wpi)
2008-08-19 16:30:47 +00:00
cegger
1e2fd53973 When shutting down or rebooting a domu, a phantom domain was left with:
> xm list
Domain-Unnamed                               1   467     1     ---s--  46.0

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

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

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

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

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

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

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

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

We finally convert the error code from the Xen hypercall to BSD before passing it upstream.
2008-08-19 15:14:43 +00:00
haad
ac398079f2 I forgot to commit this file. Add definition of DM disklabel type. 2008-08-19 12:16:49 +00:00
simonb
e50c5ea246 Fix a tyop in a comment and a few #define<tab> nits while here. 2008-08-19 10:41:10 +00:00
matthias
7543adda7c Add agp support for Intel 946GZ. 2008-08-19 10:05:40 +00:00
matthias
b6d0bc4809 Regen. 2008-08-19 10:02:42 +00:00
matthias
799947390b Typo 2008-08-19 10:02:18 +00:00
matthias
0cbadedafe Add agp support for Intel 946gz. 2008-08-19 09:59:54 +00:00
matthias
0d4c4926d9 Regen. 2008-08-19 09:44:14 +00:00
matthias
3bd0efb138 Add pci ids for intel 82946GZ_{HB,IG} (used in my AcerPower 2000) 2008-08-19 09:41:40 +00:00
cegger
09a68d0ddb IOCTL_PRIVCMD_MMAPBATCH used guest physical address 0x0 to mark a page as invalid.
Since we have to treat 0x0 as a valid page, this got broken in rev. 1.26.
Introduce INVALID_PAGE as magic value and restore the check.
This unbreaks IOCTL_PRIVCMD_MMAPBATCH while allowing to launch HVM guests.
2008-08-18 23:09:37 +00:00
wiz
9f2c3be631 Recognize CISO (.cso) files. 2008-08-18 22:04:47 +00:00
martin
e9e3618d99 When upper layer asks us to re-establish a connection, don't do so
synchronously, but insert a (varying) delay. Before we have only been
decoupled from the peer via network latency - now we introduce some
explicit delay. This, at least, creates batter serialized debug output.

However, if we have to reconnect because of an authentication failure,
the peer may have just been unable to access it's radius server. (I have
a setup where this seems to happen every now and then, depending on time
of day.) Backoff reconnect in this cases seriously longer - this is better
than hitting the max-auth-failure limit within a few seconds.
2008-08-18 21:43:49 +00:00
cube
1f9f95eab3 - Make RX queue free list code look like in if_wpi.c, including:
- Protect RX queue free list with a mutex, as it was done in so many
  network drivers now that it calls for common code, as dyoung@ points
  out.

However, for now it should improve a bit iwn(4)'s stability.
2008-08-18 21:19:22 +00:00
martin
11933dbf25 Test and handle memory allocation failure for the access concentrator
cookie.
2008-08-18 20:43:50 +00:00
plunky
fb88742489 expand Bluetooth PAN -> Bluetooth Personal Area Networking 2008-08-18 19:17:10 +00:00
kent
fb5a41ad3a Implement uhub_rescan(). After this change, "modload uaudio.kmod"
configures an audio device correctly for a device which is already
plugged.

* usb_subr.c
 Add locators parameter to usbd_attachinterfaces()
 Add usbd_reatach_device()

* usbdivar.h
 Export usbd_reatach_device()
2008-08-18 18:03:21 +00:00
reed
b63f4fe587 Fix birth year for Meriwether Lewis.
Also add who he is.

(Why does this "birthday" file have deaths in it?)
2008-08-18 15:11:42 +00:00
cegger
6746e5563f regen. 2008-08-18 11:49:34 +00:00
cegger
64fb7cf189 add Cherry 6000 keyboard 2008-08-18 11:48:23 +00:00
wiz
bbeea11de8 ntp-4.2.4p5 out. 2008-08-18 08:47:39 +00:00
plunky
920552413d no need to use -g and _DIAGNOSTIC 2008-08-18 08:25:32 +00:00
lukem
8ee8058e34 Fix "-n releasekernel=..."
Patch from Jukka Salmi in PR 33096.
2008-08-18 06:40:09 +00:00
lukem
9df2be37d7 Document "build.sh cleandir".
Fix formatting nit.
Remove BUGS; all the in-tree platforms are using build.sh now.
2008-08-18 05:27:05 +00:00
lukem
e8d2dcc221 Implement "cleandir". Inspired by PR 39362.
Consistently expand tabs in the usage.
2008-08-18 05:26:05 +00:00
dholland
81b964b825 Avoid dumping core on bad options. 2008-08-18 02:12:35 +00:00
plunky
a2cc8bda87 btpand is in section 8 2008-08-17 14:43:07 +00:00
cegger
eee3cf23d8 spelling: Acess -> Access 2008-08-17 14:11:36 +00:00
plunky
b6c659f6be add btpand(8) a Bluetooth PAN daemon 2008-08-17 13:29:06 +00:00
plunky
897274514a link btpand(8) to build 2008-08-17 13:26:36 +00:00
plunky
1fc74d2104 add btpand(8), a Bluetooth PAN daemon 2008-08-17 13:20:57 +00:00
gmcgarry
77023558e8 Changee __attribute(__weak__) to __weak_reference(). Produces same object code
and matches lib/csu/common_elf/common.h.  Fixes linkage with PCC.
2008-08-17 10:51:19 +00:00
rtr
e5321bd81b revert previous 2008-08-17 10:50:50 +00:00
dholland
377b231974 Fix grammar. Noted by Taylor R Campbell in PR 39369. 2008-08-17 09:40:59 +00:00
rtr
1becd174de fix comment iff -> if 2008-08-17 09:26:45 +00:00
lukem
d9803a148e Create BUILDSYMLINKS for all files in G_LIB2ADD that are in ${GNUHOSTDIST},
not just .asm files.
Fixes hp700 for PR 39367, and a related problem on powerpc64 platforms.
2008-08-17 07:47:48 +00:00
gmcgarry
ff2c02da97 Define away __assert_function__ if __lint__. 2008-08-17 00:24:35 +00:00
gmcgarry
bd54417ad9 Add __packed and __aligned support for PCC.
Define away restrict for __lint__.
2008-08-17 00:23:02 +00:00
gmcgarry
3cfcfe0917 return NULL 2008-08-17 00:19:52 +00:00
gmcgarry
38c13341d1 Dont build atf tools with (${MKATF} == no). 2008-08-16 23:59:45 +00:00
gmcgarry
f8eb853c86 Don't descend into atf with (${MKATF} == no) 2008-08-16 23:51:51 +00:00
gmcgarry
e2e3c64b70 Don't build atf tools with (${MKATF} == no). 2008-08-16 23:51:15 +00:00
plunky
8094317b1b constify sockopt in the PRCO_SETOPT path 2008-08-16 21:51:43 +00:00
drochner
d564f76750 fix my last commit: add missing "break"s, from Marcus Glocker 2008-08-16 15:41:37 +00:00
dan
f24c599f2e mark callout mpsafe, next comes moving some of the (silly) estimator
work from the initial collection to the later callout.
2008-08-16 13:07:30 +00:00
dan
1ace407f7e g/c unused #define 2008-08-16 12:33:18 +00:00
dan
7e7054bfea replace splsoftclock protection of the rndpool and related state with
another mutex.
2008-08-16 12:23:34 +00:00
dan
b674194f5c replace splvm() protection of sample queue and device state with a mutex 2008-08-16 10:19:21 +00:00
cegger
d546809216 In Xen 3.2 (c/s 15985) the semantic of the HVM domain builder changed:
hvm: Avoid need for ugly setcpucontext() in HVM domain builder by
pre-setting the vcpu0 to runnable inside Xen, and have the builder
insert a JMP instruction to reach the hvmloader entry point from
address 0x0.

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

XXX Keep this for Xen2 as this change hasn't been tested there.
2008-08-16 08:02:20 +00:00