Re: PATCH: Virtio memory balooning

2012-11-12 Thread Dinar Talypov
Hi,
I'm not good at writing manuals,
but here is man page bits for viomb(4):

Index: Makefile
===
RCS file: /cvs/src/share/man/man4/Makefile,v
retrieving revision 1.540
diff -u -r1.540 Makefile
--- src/share/man/man4/Makefile 20 Sep 2012 15:11:44 -  1.540
+++ src/share/man/man4/Makefile 12 Nov 2012 06:38:51 -
@@ -66,7 +66,7 @@
uthum.4 uticom.4 utwitch.4 utrh.4 uts.4 uvideo.4 uvisor.4 uvscom.4 \
uyap.4 \
vether.4 vga.4 vgafb.4 vge.4 \
-   viapm.4 viasio.4 vic.4 video.4 vio.4 vioblk.4 virtio.4 vlan.4 \
+   viapm.4 viasio.4 vic.4 video.4 vio.4 vioblk.4 viomb.4 virtio.4 vlan.4 \
vmt.4 vnd.4 vr.4 \
vscsi.4 vte.4 \
watchdog.4 wb.4 wbenv.4 wbng.4 wbsd.4 wbsio.4 wd.4 wdc.4 we.4 \
--- /dev/null   Mon Nov 12 10:39:15 2012
+++ src/share/man/man4/viomb.4  Mon Nov 12 10:37:07 2012
@@ -0,0 +1,75 @@
+.\$NetBSD: viomb.4,v 1.2 2011/11/26 22:36:14 wiz Exp $
+.\$OpenBSD$
+.\ Copyright (c) 2012 Dinar Talypov di...@i-nk.ru
+.\ Copyright (C) 2011 Minoura Makoto.
+.\ All rights reserved.
+.\
+.\ Redistribution and use in source and binary forms, with or without
+.\ modification, are permitted provided that the following conditions
+.\ are met:
+.\ 1. Redistributions of source code must retain the above copyright
+.\notice, this list of conditions and the following disclaimer.
+.\ 2. Redistributions in binary form must reproduce the above copyright
+.\notice, this list of conditions and the following disclaimer in the
+.\documentation and/or other materials provided with the distribution.
+.\
+.\ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+.\ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\ IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+.\ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+.\ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+.\ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+.\ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\ SUCH DAMAGE.
+.\
+.Dd $Mdocdate$
+.Dt VIOMB 4
+.Os
+.Sh NAME
+.Nm viomb
+.Nd VirtIO memory ballooning driver
+.Sh SYNOPSIS
+.Cd virtio* at pci? dev ? function ?
+.Cd viomb*  at virtio?
+.Sh DESCRIPTION
+The
+.Nm
+driver supports the virtio-compliant memory ballooning device.
+.Pp
+Memory ballooning works as follows:
+.Pp
+.Bl -enum -compact
+.It
+The host operator requests a guest to return some amount of memory to the host
+(via e.g. Qemu monitor balloon command).
+.It
+The hypervisor sends the request via VirtIO memory ballooning device.
+.It
+The guest
+.Nm
+driver requests allocation of that amount of physical memory from the
+.Ox
+memory management system.
+.It
+The
+.Nm
+device tells the hypervisor the guest physical memory address of the
+allocated memory via VirtIO memory ballooning device.
+.El
+.Pp
+.Sh SEE ALSO
+.Xr virtio 4
+.Pp
+.Rs
+.%A Rusty Russell, IBM Corporation
+.%T Virtio PCI Card Specification
+.%U http://ozlabs.org/~rusty/virtio-spec/
+.Re
+.Sh HISTORY
+The
+.Nm
+device driver appeared in
+.Ox 5.3 .



Re: Support power saving with athn(4) in host AP mode

2012-11-12 Thread Uwe Werler
-Urspr√ľngliche Nachricht-
An: tech@openbsd.org; 
Von:Uwe Werler uwe.wer...@retiolum.eu
Gesendet:   Mo 12.11.2012 15:32
Betreff:Re: Support power saving with athn(4) in host AP mode
  Further testing would be welcome.  Even if you don't use clients with
  power saving enabled.  So if you're running an athn(4) based AP,
  please give this a spin.
  
 
 Runs like a charme with snapshot from 2012-11-11. Tried Windows 7, Android 
 ICS, 
 IPhone 3S, OpenBSD 4.7 and 5.2, Ubuntu 10.
 
 Thank You Mark for the excellent work!
 
 I replaced my existing AP with OpenBSD + Alix now and I'm happy.
 
 

add: I use a Wistron DNMA92 (miniPCI) / AR9280

athn0 at pci0 dev 12 function 0 Atheros AR9280 rev 0x01: irq 9
athn0: AR9280 rev 2 (2T2R), ROM rev 21, address a8:54:b2:3d:fd:a0