Re: buildworld fails with Zero byte read from file, skipping rest of line

2014-01-14 Thread Gleb Smirnoff
Jeremie, On Tue, Jan 14, 2014 at 08:26:21AM +0100, Jeremie Le Hen wrote: J Hi, J J I have a FreeBSD -CURRENT in Virtualbox (running on Linux). I have been J unable to buildworld for a while. J J I suspect this is not a problem with the source because I didn't see any J report so far, whereas

mtree acl support

2014-01-14 Thread Mark Felder
I was recently talking to someone about how one would backup / restore ACLs reliably. I didn't see any mention of ACLs in the mtree man page and after a quick google I came upon this old mailing list post: http://lists.freebsd.org/pipermail/freebsd-hackers/2008-April/024173.html patch in list is

[PATCH v10 05/20] xen: rework xen timer so it can be used early in boot process

2014-01-14 Thread Roger Pau Monne
This should not introduce any functional change, and makes the functions suitable to be called before we have actually mapped the vcpu_info struct on a per-cpu basis. --- sys/dev/xen/timer/timer.c | 29 - 1 files changed, 20 insertions(+), 9 deletions(-) diff --git

[PATCH v10 02/20] xen: add macro to detect if running as Dom0

2014-01-14 Thread Roger Pau Monne
--- sys/xen/xen-os.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/sys/xen/xen-os.h b/sys/xen/xen-os.h index c7474d8..e8a5a99 100644 --- a/sys/xen/xen-os.h +++ b/sys/xen/xen-os.h @@ -82,6 +82,13 @@ xen_hvm_domain(void) return (xen_domain_type ==

[PATCH v10 07/20] xen: implement hook to fetch e820 memory map

2014-01-14 Thread Roger Pau Monne
--- sys/amd64/amd64/machdep.c | 50 ++ sys/amd64/include/pc/bios.h |2 + sys/amd64/include/sysarch.h |1 + sys/x86/xen/pv.c| 25 + 4 files changed, 59 insertions(+), 19 deletions(-) diff --git

[PATCH v10 06/20] xen: implement an early timer for Xen PVH

2014-01-14 Thread Roger Pau Monne
When running as a PVH guest, there's no emulated i8254, so we need to use the Xen PV timer as the early source for DELAY. This change allows for different implementations of the early DELAY function and implements a Xen variant for it. --- sys/amd64/amd64/machdep.c |6 ++-

[PATCH v10 01/20] xen: add PV/PVH kernel entry point

2014-01-14 Thread Roger Pau Monne
Add the PV/PVH entry point and the low level functions for PVH initialization. --- sys/amd64/amd64/locore.S |1 + sys/amd64/amd64/xen-locore.S | 83 + sys/amd64/include/asmacros.h | 26 + sys/conf/files.amd64 |2 +

[PATCH v10 00/20] FreeBSD PVH DomU support

2014-01-14 Thread Roger Pau Monne
This series is a split of the previous patch Xen x86 DomU PVH support, with the aim to make the review of the code easier. The series can also be found on my git repo: git://xenbits.xen.org/people/royger/freebsd.git pvh_v10 or

[PATCH v10 03/20] xen: add and enable Xen console for PVH guests

2014-01-14 Thread Roger Pau Monne
This adds and enables the console used on XEN kernels. --- sys/conf/files |4 +- sys/dev/xen/console/console.c | 37 +-- sys/dev/xen/console/xencons_ring.c | 15 + sys/i386/include/xen/xen-os.h |1 -

[PATCH v10 08/20] xen: use the same hypercall mechanism for XEN and XENHVM

2014-01-14 Thread Roger Pau Monne
--- sys/amd64/include/xen/hypercall.h |7 --- sys/i386/i386/locore.s|9 + sys/i386/include/xen/hypercall.h |8 sys/x86/xen/hvm.c | 24 ++-- 4 files changed, 19 insertions(+), 29 deletions(-) diff --git

[PATCH v10 09/20] xen: add a apic_enumerator for PVH

2014-01-14 Thread Roger Pau Monne
--- sys/conf/files.amd64 |1 + sys/x86/xen/pvcpu_enum.c | 136 ++ 2 files changed, 137 insertions(+), 0 deletions(-) create mode 100644 sys/x86/xen/pvcpu_enum.c diff --git a/sys/conf/files.amd64 b/sys/conf/files.amd64 index 109a796..a3491da

[PATCH v10 04/20] amd64: introduce hook for custom preload metadata parsers

2014-01-14 Thread Roger Pau Monne
--- sys/amd64/amd64/machdep.c | 41 -- sys/amd64/include/sysarch.h | 12 ++ sys/x86/xen/pv.c| 82 +++ 3 files changed, 124 insertions(+), 11 deletions(-) diff --git a/sys/amd64/amd64/machdep.c

Shared IRQ on ATOM based Soekris net6501 board

2014-01-14 Thread Christophe Prevotaux
I have found out that when I use 2 AR9580 mini PCIe board some irq (namely in that case irq18 is shared over 3 devices) I wonder why it is done like this and if this could be something to fix ? Kernel is 30/12/2014 CURRENT ( FreeBSD/amd64) with : options mptable vmstat -i interrupt

[PATCH v10 12/20] xen: add a hook to perform AP startup

2014-01-14 Thread Roger Pau Monne
AP startup on PVH follows the PV method, so we need to add a hook in order to diverge from bare metal. --- sys/amd64/amd64/mp_machdep.c | 14 +++--- sys/amd64/include/cpu.h |1 + sys/amd64/include/smp.h |1 + sys/x86/xen/hvm.c| 12 +- sys/x86/xen/pv.c

[PATCH v10 20/20] isa: allow ISA bus to attach to xenpv device

2014-01-14 Thread Roger Pau Monne
--- sys/x86/isa/isa.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/sys/x86/isa/isa.c b/sys/x86/isa/isa.c index 1a57137..9287ff2 100644 --- a/sys/x86/isa/isa.c +++ b/sys/x86/isa/isa.c @@ -241,3 +241,6 @@ isa_release_resource(device_t bus, device_t child, int type,

[PATCH v10 15/20] xen: create a PV CPU device for PVH guests

2014-01-14 Thread Roger Pau Monne
Since there's no ACPI on PVH guests, we need to create a dummy CPU device in order to fill the pcpu-pc_device field. --- sys/conf/files|1 + sys/dev/xen/pvcpu/pvcpu.c | 101 + 2 files changed, 102 insertions(+), 0 deletions(-) create

[PATCH v10 16/20] xen: create a Xen nexus to use in PV/PVH

2014-01-14 Thread Roger Pau Monne
Introduce a Xen specific nexus that is going to be in charge for attaching Xen specific devices. --- sys/conf/files.amd64 |1 + sys/conf/files.i386 |1 + sys/dev/xen/console/console.c |2 +- sys/dev/xen/timer/timer.c |4 +- sys/dev/xen/xenpci/xenpci.c |

[PATCH v10 13/20] xen: introduce flag to disable the local apic

2014-01-14 Thread Roger Pau Monne
PVH guests don't have an emulated lapic. --- sys/amd64/amd64/mp_machdep.c | 10 ++ sys/amd64/include/apicvar.h |1 + sys/i386/include/apicvar.h |1 + sys/i386/xen/xen_machdep.c |2 ++ sys/x86/x86/local_apic.c |8 +--- sys/x86/xen/pv.c |3 +++

[PATCH v10 14/20] xen: introduce xenpv bus and a dummy pvcpu device

2014-01-14 Thread Roger Pau Monne
Since Xen PVH guests doesn't have ACPI, we need to create a dummy bus so top level Xen devices can attach to it (instead of attaching directly to the nexus) and a pvcpu device that will be used to fill the pcpu-pc_device field. --- sys/conf/files.amd64 |1 + sys/conf/files.i386 |1 +

[PATCH v10 19/20] xen: changes to gnttab for PVH

2014-01-14 Thread Roger Pau Monne
--- sys/xen/gnttab.c | 26 +- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/sys/xen/gnttab.c b/sys/xen/gnttab.c index 03c32b7..6949be5 100644 --- a/sys/xen/gnttab.c +++ b/sys/xen/gnttab.c @@ -25,6 +25,7 @@ __FBSDID($FreeBSD$); #include sys/lock.h

[PATCH v10 17/20] xen: add shutdown hook for PVH

2014-01-14 Thread Roger Pau Monne
Add the PV shutdown hook to PVH. --- sys/dev/xen/control/control.c | 37 ++--- 1 files changed, 18 insertions(+), 19 deletions(-) diff --git a/sys/dev/xen/control/control.c b/sys/dev/xen/control/control.c index bc0609d..78894ba 100644 ---

[PATCH v10 11/20] xen: changes to hvm code in order to support PVH guests

2014-01-14 Thread Roger Pau Monne
On PVH we don't need to init the shared info page, or disable emulated devices. Also, make sure PV IPIs are set before starting the APs. --- sys/x86/xen/hvm.c | 17 - 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/sys/x86/xen/hvm.c b/sys/x86/xen/hvm.c index

[PATCH v10 10/20] xen: add hook for AP bootstrap memory reservation

2014-01-14 Thread Roger Pau Monne
This hook will only be implemented for bare metal, Xen doesn't require any bootstrap code since APs are started in long mode with paging enabled. --- sys/amd64/amd64/machdep.c |6 +- sys/amd64/include/sysarch.h |1 + 2 files changed, 6 insertions(+), 1 deletions(-) diff --git

[PATCH v10 18/20] xen: xenstore changes to support PVH

2014-01-14 Thread Roger Pau Monne
--- sys/xen/xenstore/xenstore.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/xen/xenstore/xenstore.c b/sys/xen/xenstore/xenstore.c index b5cf413..7fa08cc 100644 --- a/sys/xen/xenstore/xenstore.c +++ b/sys/xen/xenstore/xenstore.c @@ -229,13 +229,11

Re: [PATCH v10 14/20] xen: introduce xenpv bus and a dummy pvcpu device

2014-01-14 Thread Julien Grall
On 01/14/2014 02:59 PM, Roger Pau Monne wrote: +static int +xenpv_attach(device_t dev) +{ + device_t child; + + if (xen_hvm_domain()) { + device_t xenpci; + devclass_t dc; + + /* Make sure xenpci has been attached */ + dc =

Re: [PATCH v10 14/20] xen: introduce xenpv bus and a dummy pvcpu device

2014-01-14 Thread Roger Pau Monné
On 14/01/14 16:41, Julien Grall wrote: On 01/14/2014 02:59 PM, Roger Pau Monne wrote: +static int +xenpv_attach(device_t dev) +{ +device_t child; + +if (xen_hvm_domain()) { +device_t xenpci; +devclass_t dc; + +/* Make sure xenpci has been

Re: [PATCH v10 14/20] xen: introduce xenpv bus and a dummy pvcpu device

2014-01-14 Thread Roger Pau Monné
On 14/01/14 17:14, Julien Grall wrote: On 01/14/2014 04:08 PM, Roger Pau Monné wrote: On 14/01/14 16:41, Julien Grall wrote: On 01/14/2014 02:59 PM, Roger Pau Monne wrote: +static int +xenpv_attach(device_t dev) +{ + device_t child; + + if (xen_hvm_domain()) { + device_t

Re: [PATCH v10 14/20] xen: introduce xenpv bus and a dummy pvcpu device

2014-01-14 Thread Julien Grall
On 01/14/2014 04:08 PM, Roger Pau Monné wrote: On 14/01/14 16:41, Julien Grall wrote: On 01/14/2014 02:59 PM, Roger Pau Monne wrote: +static int +xenpv_attach(device_t dev) +{ + device_t child; + + if (xen_hvm_domain()) { + device_t xenpci; + devclass_t dc; + +

Re: [PATCH v10 14/20] xen: introduce xenpv bus and a dummy pvcpu device

2014-01-14 Thread Julien Grall
On 01/14/2014 04:20 PM, Roger Pau Monné wrote: On 14/01/14 17:14, Julien Grall wrote: On 01/14/2014 04:08 PM, Roger Pau Monné wrote: On 14/01/14 16:41, Julien Grall wrote: On 01/14/2014 02:59 PM, Roger Pau Monne wrote: +static int +xenpv_attach(device_t dev) +{ + device_t child; + + if

Regression on 10-RC5 with a multicast routing daemon

2014-01-14 Thread Olivier Cochard-Labbé
Hi all, I'm trying to port a PIM sparse-mode daemon ( https://github.com/troglobit/pimd/) and I've meet a problem: This daemon compile and run fine on FreeBSD 9.2 but on 10-RC5 this daemon can't understand received multicast packets (received from other PIM neighbors) and display this kind of

Re: error message from pkg on HEAD

2014-01-14 Thread Freddie Cash
On Mon, Jan 13, 2014 at 8:22 PM, Glen Barber g...@freebsd.org wrote: On Mon, Jan 13, 2014 at 08:15:34PM -0800, John-Mark Gurney wrote: So, now when I run pkg I get the following: pkg: Ignoring bad configuration entry in /usr/local/etc/pkg/repos/FreeBSD.conf: URL:

Final Call for FreeBSD 2013Q4 (October-December) Status Reports

2014-01-14 Thread Gabor Pali
Dear FreeBSD Community, Please note that the submission date for the October to December Quarterly Status Reports is, January 14th, 2014, today. Please consult my earlier message for the details: On Sat, Dec 14, 2013 at 2:05 PM, Gabor Pali p...@freebsd.org wrote: Dear FreeBSD Community,

Re: Shared IRQ on ATOM based Soekris net6501 board

2014-01-14 Thread John Baldwin
On Tuesday, January 14, 2014 10:03:46 am Christophe Prevotaux wrote: I have found out that when I use 2 AR9580 mini PCIe board some irq (namely in that case irq18 is shared over 3 devices) I wonder why it is done like this and if this could be something to fix ? You can't fix it. This is

Re: ARC pressured out, how to control/stabilize ? (reformatted to text/plain)

2014-01-14 Thread Andriy Gapon
on 14/01/2014 07:27 Vladimir Sharun said the following: Dear Andriy and FreeBSD community, I am not sure if the buffers are leaked somehow or if they are actually in use. It's one of the very few places where data buffers are allocated without charging ARC. In all other places it's quite

Re: FreeBSD 10-RC4: Got crash in igb driver

2014-01-14 Thread Eric Joyner
All, I work with Jack on FreeBSD network drivers, and we have a patch that we think might fix this problem. It re-implements the header pull-up code that was in the driver pre-2.4.0, but with IPv6 support. Alexandre, could you apply this patch to the igb version in HEAD and try it out on your

Re: buildworld fails with Zero byte read from file, skipping rest of line

2014-01-14 Thread Jeremie Le Hen
On Tue, Jan 14, 2014 at 12:58:18PM +0400, Gleb Smirnoff wrote: Jeremie, On Tue, Jan 14, 2014 at 08:26:21AM +0100, Jeremie Le Hen wrote: J Hi, J J I have a FreeBSD -CURRENT in Virtualbox (running on Linux). I have been J unable to buildworld for a while. J J I suspect this is not a