Re: svn commit: r263377 - head/sys/xen

2014-03-21 Thread Roger Pau Monné
On 19/03/14 21:40, Warner Losh wrote: > Author: imp > Date: Wed Mar 19 20:40:57 2014 > New Revision: 263377 > URL: http://svnweb.freebsd.org/changeset/base/263377 > > Log: > Revert last change, it breaks other things. Could you try the following patch instead: >From 3f66e884bef1ba16ee31897016b

svn commit: r264118 - in stable/10/sys: amd64/amd64 amd64/include i386/i386 i386/include i386/xen x86/xen

2014-04-04 Thread Roger Pau Monné
Author: royger Date: Fri Apr 4 14:54:54 2014 New Revision: 264118 URL: http://svnweb.freebsd.org/changeset/base/264118 Log: MFC r263001 Move asm IPIs handlers to C code, so both Xen and native IPI handlers share the same code. Approved by: gibbs Sponsored by: Citrix Systems R&D M

svn commit: r264882 - head/sys/amd64/amd64

2014-04-24 Thread Roger Pau Monné
Author: royger Date: Thu Apr 24 14:44:42 2014 New Revision: 264882 URL: http://svnweb.freebsd.org/changeset/base/264882 Log: xen: fix copyright header Some of the code in xen-locore.S was picked from Cherry G. Mathew amd64 Xen PV branch, but I've failed to set the proper copyright, so d

svn commit: r263001 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include i386/xen x86/xen

2014-03-11 Thread Roger Pau Monné
Author: royger Date: Tue Mar 11 10:03:29 2014 New Revision: 263001 URL: http://svnweb.freebsd.org/changeset/base/263001 Log: amd64/i386: switch IPI handlers to C code. Move asm IPIs handlers to C code, so both Xen and native IPI handlers share the same code. Reviewed by: jhb Approv

svn commit: r263002 - in head/sys: amd64/amd64 amd64/include conf i386/xen x86/xen xen

2014-03-11 Thread Roger Pau Monné
Mar 11 10:07:01 2014(r263002) @@ -0,0 +1,119 @@ +/* + * Copyright (c) 2004 Christian Limpach. + * Copyright (c) 2004-2006,2008 Kip Macy + * Copyright (c) 2013 Roger Pau Monné + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, a

svn commit: r263003 - head/sys/xen

2014-03-11 Thread Roger Pau Monné
Author: royger Date: Tue Mar 11 10:07:55 2014 New Revision: 263003 URL: http://svnweb.freebsd.org/changeset/base/263003 Log: xen: add macro to detect if running as Dom0 Approved by: gibbs Sponsored by: Citrix Systems R&D xen/xen-os.h: - Add macro to detect if running as Dom0. Mod

svn commit: r263004 - in head/sys: conf dev/xen/console i386/include/xen i386/xen x86/xen xen

2014-03-11 Thread Roger Pau Monné
Author: royger Date: Tue Mar 11 10:09:23 2014 New Revision: 263004 URL: http://svnweb.freebsd.org/changeset/base/263004 Log: xen: add and enable Xen console for PVH guests This adds and enables the PV console used on XEN kernels to GENERIC/XENHVM kernels in order for it to be used on PVH.

svn commit: r263005 - in head/sys: boot/i386/efi boot/i386/libi386 boot/ia64/common boot/powerpc/ofw boot/powerpc/ps3 boot/sparc64/loader boot/uboot/common boot/userboot/userboot i386/xen sys x86/xen

2014-03-11 Thread Roger Pau Monné
Modified: head/sys/i386/xen/xen_machdep.c == --- head/sys/i386/xen/xen_machdep.c Tue Mar 11 10:09:23 2014 (r263004) +++ head/sys/i386/xen/xen_machdep.c Tue Mar 11 10:13:06 2014 (r263005) @@ -46,

svn commit: r263006 - in head/sys: amd64/amd64 x86/include x86/xen

2014-03-11 Thread Roger Pau Monné
it.h Tue Mar 11 10:15:25 2014(r263006) @@ -0,0 +1,43 @@ +/*- + * Copyright (c) 2013 Roger Pau Monné + * 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. Re

svn commit: r263007 - head/sys/dev/xen/timer

2014-03-11 Thread Roger Pau Monné
Author: royger Date: Tue Mar 11 10:16:17 2014 New Revision: 263007 URL: http://svnweb.freebsd.org/changeset/base/263007 Log: xen: rework xen timer so it can be used early in boot process This should not introduce any functional change, and makes the functions suitable to be called before

svn commit: r263008 - in head/sys: amd64/amd64 amd64/include conf dev/xen/timer i386/i386 i386/include i386/xen pc98/pc98 x86/include x86/isa x86/x86 x86/xen

2014-03-11 Thread Roger Pau Monné
probe, xentimer_probe), Added: head/sys/dev/xen/timer/timer.h == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/xen/timer/timer.h Tue Mar 11 10:20:42 2014 (r263008) @@ -0,

svn commit: r263009 - in head/sys: amd64/amd64 amd64/include/pc x86/include x86/xen

2014-03-11 Thread Roger Pau Monné
Author: royger Date: Tue Mar 11 10:23:03 2014 New Revision: 263009 URL: http://svnweb.freebsd.org/changeset/base/263009 Log: xen: implement hook to fetch and parse e820 memory map e820 memory map is fetched using a hypercall under Xen PVH, so add a hook to init_ops in oder to diverge from

svn commit: r263011 - in head/sys: conf x86/xen

2014-03-11 Thread Roger Pau Monné
,0 +1,134 @@ +/*- + * Copyright (c) 2003 John Baldwin + * Copyright (c) 2013 Roger Pau Monné + * 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

svn commit: r263010 - in head/sys: amd64/include/xen i386/i386 i386/include/xen x86/xen

2014-03-11 Thread Roger Pau Monné
Author: royger Date: Tue Mar 11 10:24:13 2014 New Revision: 263010 URL: http://svnweb.freebsd.org/changeset/base/263010 Log: xen: use the same hypercall mechanism for XEN and XENHVM Currently XEN (PV) and XENHVM (PVHVM) ports use different ways to issue hypercalls, unify this by filling t

svn commit: r263012 - in head/sys: amd64/amd64 x86/include

2014-03-11 Thread Roger Pau Monné
Author: royger Date: Tue Mar 11 10:26:16 2014 New Revision: 263012 URL: http://svnweb.freebsd.org/changeset/base/263012 Log: xen: add hook for AP bootstrap memory reservation This hook will only be implemented for bare metal, Xen doesn't require any bootstrap code since APs are started in

svn commit: r263013 - head/sys/x86/xen

2014-03-11 Thread Roger Pau Monné
Author: royger Date: Tue Mar 11 10:26:53 2014 New Revision: 263013 URL: http://svnweb.freebsd.org/changeset/base/263013 Log: xen: changes to hvm code in order to support PVH guests On PVH we don't need to init the shared info page, or disable emulated devices. Also, make sure PV IPIs are

svn commit: r263014 - in head/sys: amd64/amd64 amd64/include x86/include x86/xen

2014-03-11 Thread Roger Pau Monné
Author: royger Date: Tue Mar 11 10:27:57 2014 New Revision: 263014 URL: http://svnweb.freebsd.org/changeset/base/263014 Log: xen: add a hook to perform AP startup AP startup on PVH follows the PV method, so we need to add a hook in order to diverge from bare metal. Approved by: gibbs

svn commit: r263268 - head/sys/dev/xen/console

2014-03-17 Thread Roger Pau Monné
Author: royger Date: Mon Mar 17 16:45:28 2014 New Revision: 263268 URL: http://svnweb.freebsd.org/changeset/base/263268 Log: xen: fix usage of db_active in xen console Replace usage of db_active in Xen console with kdb_active. Reported by: Andrzej Tobola Approved by: gibbs Sponsor

svn commit: r258995 - stable/10/sys/dev/xen/control

2013-12-05 Thread Roger Pau Monné
ng a shutdown from the VM manager). Fix this by using the same handler for both "halt" and "poweroff". NB: The "halt" signal seems to be used on XenServer only. The OSS Xen toolstack (xl) uses "poweroff" instead. Submitted by: Roger Pau Mo

svn commit: r258996 - in stable/10/sys: amd64/amd64 i386/i386

2013-12-05 Thread Roger Pau Monné
and account properly for physical memory present in the system. Submitted by: Roger Pau Monné Reviewed by: gibbs Approved by: gibbs (mentor) Approved by: re (gjb) Modified: stable/10/sys/amd64/amd64/machdep.c stable/10/sys/i386/i386/machdep.c Directory Properties: sta

svn commit: r258997 - stable/10/sys/dev/xen/balloon

2013-12-05 Thread Roger Pau Monné
caused by performing a sleepable malloc while holding the balloon mutex. Perform proper accounting of the memory used by the domain. Submitted by: Roger Pau Monné Sponsored by: Citrix Systems R&D Reviewed by: gibbs Approved by: gibbs (mentor) Approved by: re

svn commit: r267525 - head/sys/x86/xen

2014-06-16 Thread Roger Pau Monné
Author: royger Date: Mon Jun 16 08:41:57 2014 New Revision: 267525 URL: http://svnweb.freebsd.org/changeset/base/267525 Log: xen: fix style in pv.c Fix the lenght of some comments, and also add proper indentation to xen_init_ops Sponsored by: Citrix Systems R&D Approved by: gibbs

svn commit: r267526 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include x86/include x86/x86 x86/xen

2014-06-16 Thread Roger Pau Monné
Author: royger Date: Mon Jun 16 08:43:03 2014 New Revision: 267526 URL: http://svnweb.freebsd.org/changeset/base/267526 Log: amd64/i386: introduce APIC hooks for different APIC implementations. This is needed for Xen PV(H) guests, since there's no hardware lapic available on this kind of

svn commit: r267527 - in head/sys: conf x86/xen

2014-06-16 Thread Roger Pau Monné
Author: royger Date: Mon Jun 16 08:43:45 2014 New Revision: 267527 URL: http://svnweb.freebsd.org/changeset/base/267527 Log: xen: add hooks for Xen PV APIC Create the necessary hooks in order to provide a Xen PV APIC implementation that can be used on PVH. Most of the lapic ops shouldn'

svn commit: r267528 - in head/sys: conf dev/xen/console dev/xen/timer dev/xen/xenpci xen/xenstore

2014-06-16 Thread Roger Pau Monné
Author: royger Date: Mon Jun 16 08:44:33 2014 New Revision: 267528 URL: http://svnweb.freebsd.org/changeset/base/267528 Log: xen: introduce xenpv bus Create a dummy bus so top level Xen devices can attach to it (instead of attaching directly to the nexus). This allows to have all the Xen

svn commit: r267529 - head/sys/conf

2014-06-16 Thread Roger Pau Monné
Author: royger Date: Mon Jun 16 08:45:12 2014 New Revision: 267529 URL: http://svnweb.freebsd.org/changeset/base/267529 Log: xen: create a PV CPU device for PVH guests 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.

svn commit: r267530 - head/sys/conf

2014-06-16 Thread Roger Pau Monné
Author: royger Date: Mon Jun 16 08:45:51 2014 New Revision: 267530 URL: http://svnweb.freebsd.org/changeset/base/267530 Log: xen: create a Xen nexus to use in PV/PVH Introduce a Xen specific nexus that is going to be used by Xen PV/PVH guests. Sponsored by: Citrix Systems R&D Appro

svn commit: r267531 - head/sys/dev/xen/control

2014-06-16 Thread Roger Pau Monné
Author: royger Date: Mon Jun 16 08:46:31 2014 New Revision: 267531 URL: http://svnweb.freebsd.org/changeset/base/267531 Log: xen: add shutdown hook for PVH Add the PV shutdown hook to PVH. Sponsored by: Citrix Systems R&D Approved by: gibbs dev/xen/control/control.c: - Make x

svn commit: r267532 - head/sys/xen/xenstore

2014-06-16 Thread Roger Pau Monné
Author: royger Date: Mon Jun 16 08:47:15 2014 New Revision: 267532 URL: http://svnweb.freebsd.org/changeset/base/267532 Log: xen: xenstore changes to support PVH For PVH guests the xenstore parameters are fetched from the start_info struct, just like on PV. Sponsored by: Citrix Syste

svn commit: r267533 - head/sys/xen/xenstore

2014-06-16 Thread Roger Pau Monné
Author: royger Date: Mon Jun 16 08:48:06 2014 New Revision: 267533 URL: http://svnweb.freebsd.org/changeset/base/267533 Log: xen: init gnttab from xenpv Currently the grant table is initialized from xenstore, but a better place to do this would be xenpv, so move grant table initialization

svn commit: r267534 - in head/sys: dev/xen/control dev/xen/xenpci xen

2014-06-16 Thread Roger Pau Monné
Author: royger Date: Mon Jun 16 08:48:42 2014 New Revision: 267534 URL: http://svnweb.freebsd.org/changeset/base/267534 Log: xen: unify gnttab initialization for PVHVM and PVH Switch the initialization of gnttab to use an unused physical memory range for both PVHVM and PVH. In the pa

svn commit: r267535 - head/sys/x86/isa

2014-06-16 Thread Roger Pau Monné
Author: royger Date: Mon Jun 16 08:49:16 2014 New Revision: 267535 URL: http://svnweb.freebsd.org/changeset/base/267535 Log: isa: allow ISA bus to attach to xenpv bus This is needed because syscons depends on ISA. Sponsored by: Citrix Systems R&D Approved by: gibbs x86/isa/isa.c

svn commit: r267536 - in head/sys: dev/xen/pvcpu x86/xen xen

2014-06-16 Thread Roger Pau Monné
1,99 @@ +/* + * Copyright (c) 2013 Roger Pau Monné + * 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 + *no

Re: svn commit: r267526 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include x86/include x86/x86 x86/xen

2014-06-17 Thread Roger Pau Monné
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/06/14 08:46, Konstantin Belousov wrote: > On Mon, Jun 16, 2014 at 08:43:03AM +, Roger Pau Monnц╘ wrote: >> Author: royger Date: Mon Jun 16 08:43:03 2014 New Revision: >> 267526 URL: http://svnweb.freebsd.org/changeset/base/267526 >> >> Log:

svn commit: r267607 - head/sys/x86/xen

2014-06-18 Thread Roger Pau Monné
Author: royger Date: Wed Jun 18 13:41:20 2014 New Revision: 267607 URL: http://svnweb.freebsd.org/changeset/base/267607 Log: xen: fix out-of-bounds access to ipi_handle Fix the gate in xen_pv_lapic_ipi_vectored to prevent access to element at position nitems(xen_ipis). Sponsored by:

svn commit: r267858 - in head/sys/dev: virtio/balloon xen/balloon

2014-06-25 Thread Roger Pau Monné
Author: royger Date: Wed Jun 25 09:51:08 2014 New Revision: 267858 URL: http://svnweb.freebsd.org/changeset/base/267858 Log: xen/virtio: fix balloon drivers to not mark pages as WIRED Prevent the Xen and VirtIO balloon drivers from marking pages as wired. This prevents them from increasin

Re: svn commit: r267858 - in head/sys/dev: virtio/balloon xen/balloon

2014-06-25 Thread Roger Pau Monné
On 25/06/14 13:58, Attilio Rao wrote: > On Wed, Jun 25, 2014 at 11:51 AM, Roger Pau Monné wrote: >> Author: royger >> Date: Wed Jun 25 09:51:08 2014 >> New Revision: 267858 >> URL: http://svnweb.freebsd.org/changeset/base/267858 >> >> Log: >> xen/vir

Re: svn commit: r267858 - in head/sys/dev: virtio/balloon xen/balloon

2014-06-25 Thread Roger Pau Monné
On 25/06/14 15:44, Attilio Rao wrote: > On Wed, Jun 25, 2014 at 3:29 PM, Roger Pau Monné wrote: >> On 25/06/14 13:58, Attilio Rao wrote: >>> On Wed, Jun 25, 2014 at 11:51 AM, Roger Pau Monné >>> wrote: >>>> Author: royger >>>> Date: Wed Jun

Re: svn commit: r267858 - in head/sys/dev: virtio/balloon xen/balloon

2014-06-25 Thread Roger Pau Monné
On 25/06/14 18:47, Alan Cox wrote: > On 06/25/2014 08:29, Roger Pau Monné wrote: >> On 25/06/14 13:58, Attilio Rao wrote: >>> On Wed, Jun 25, 2014 at 11:51 AM, Roger Pau Monné >>> wrote: >>>> Author: royger >>>> Date: Wed Jun 25 09:

svn commit: r268451 - head/sys/vm

2014-07-09 Thread Roger Pau Monné
Author: royger Date: Wed Jul 9 08:12:58 2014 New Revision: 268451 URL: http://svnweb.freebsd.org/changeset/base/268451 Log: vm_phys: remove limitation on number of fictitious regions The number of vm fictitious regions was limited to 8 by default, but Xen will make heavy usage of those k

svn commit: r268832 - stable/9/sys/dev/xen/blkfront

2014-07-18 Thread Roger Pau Monné
Author: royger Date: Fri Jul 18 07:18:37 2014 New Revision: 268832 URL: http://svnweb.freebsd.org/changeset/base/268832 Log: MFC r256423: Allow FreeBSD to be booted from CDROM media on XenServer 6.2 and prior releases. PR: 164630 Modified: stable/9/sys/dev/xen/blkfront/b

Re: svn commit: r268158 - in head/sys: amd64/amd64 kern sys

2014-07-22 Thread Roger Pau Monné
On 02/07/14 15:24, Ed Maste wrote: > Author: emaste > Date: Wed Jul 2 13:24:21 2014 > New Revision: 268158 > URL: http://svnweb.freebsd.org/changeset/base/268158 > > Log: > Prefer vt(4) for UEFI boot > > The UEFI framebuffer driver vt_efifb requires vt(4), so add a mechanism > for the st

svn commit: r269017 - in head/sys: amd64/acpica amd64/amd64 boot/i386/libi386

2014-07-23 Thread Roger Pau Monné
Author: royger Date: Wed Jul 23 15:53:29 2014 New Revision: 269017 URL: http://svnweb.freebsd.org/changeset/base/269017 Log: don't set CR4 PSE bit on amd64 Setting PSE together with PAE or in long mode just makes the PSE bit completely ignored, so don't set it. Sponsored by: Citrix S

svn commit: r273472 - head/sys/x86/xen

2014-10-22 Thread Roger Pau Monné
Author: royger Date: Wed Oct 22 16:49:00 2014 New Revision: 273472 URL: https://svnweb.freebsd.org/changeset/base/273472 Log: xen: fix usage of kern_getenv in PVH code The value returned by kern_getenv should be freed using freeenv. Reported by: Coverity CID: 1248852 Spon

svn commit: r273473 - in head/sys: x86/xen xen

2014-10-22 Thread Roger Pau Monné
Author: royger Date: Wed Oct 22 16:51:52 2014 New Revision: 273473 URL: https://svnweb.freebsd.org/changeset/base/273473 Log: xen: allow to register event channels without handlers This is needed by the event channel user-space device, that requires registering event channels without unma

svn commit: r273474 - in head/sys: conf dev/xen/evtchn xen/evtchn

2014-10-22 Thread Roger Pau Monné
,607 @@ +/** + * evtchn.c + * + * Driver for receiving and demuxing event-channel signals. + * + * Copyright (c) 2004-2005, K A Fraser + * Multi-process extensions Copyright (c) 2004, Steven Smith + * FreeBSD port Copyright (c) 2014, Roger Pau Monné + * Fetched from git://git.kernel.org/pub/scm/l

svn commit: r273475 - head/sys/xen

2014-10-22 Thread Roger Pau Monné
dded) +++ head/sys/xen/error.hWed Oct 22 16:58:52 2014(r273475) @@ -0,0 +1,305 @@ +/*- + * Copyright (c) 2014 Roger Pau Monné . + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the follo

svn commit: r273476 - in head/sys: amd64/include/xen conf dev/xen/privcmd i386/include/xen x86/xen xen xen/interface

2014-10-22 Thread Roger Pau Monné
optional autofs Added: head/sys/dev/xen/privcmd/privcmd.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/xen/privcmd/privcmd.c Wed Oct 22 17:07:20 2014 (r2

svn commit: r273477 - head/sys/dev/xen/netback

2014-10-22 Thread Roger Pau Monné
Author: royger Date: Wed Oct 22 17:09:12 2014 New Revision: 273477 URL: https://svnweb.freebsd.org/changeset/base/273477 Log: netback: change xnb naming convention Current FreeBSD netback names the interface with xnb, but this is not suitable for usage with the Xen toolstack, which expect

svn commit: r273582 - in head/sys/amd64: amd64 include

2014-10-24 Thread Roger Pau Monné
Author: royger Date: Fri Oct 24 09:48:58 2014 New Revision: 273582 URL: https://svnweb.freebsd.org/changeset/base/273582 Log: amd64: make uiomove_fromphys functional for pages not mapped by the DMAP Place the code introduced in r268660 into a separate function that can be called from uiom

svn commit: r269507 - in head/sys: x86/xen xen

2014-08-04 Thread Roger Pau Monné
Author: royger Date: Mon Aug 4 08:42:29 2014 New Revision: 269507 URL: http://svnweb.freebsd.org/changeset/base/269507 Log: xen: implement event channel PIRQ support This allows Dom0 to manage physical hardware, redirecting the physical interrupts to event channels. Sponsored by: Ci

svn commit: r269508 - head/sys/x86/xen

2014-08-04 Thread Roger Pau Monné
Author: royger Date: Mon Aug 4 08:43:27 2014 New Revision: 269508 URL: http://svnweb.freebsd.org/changeset/base/269508 Log: xen: mask all event channels on init Mask all event channels during initialization. This is done so that we don't receive spurious interrupts while dynamically regi

svn commit: r269509 - head/sys/x86/xen

2014-08-04 Thread Roger Pau Monné
Author: royger Date: Mon Aug 4 08:52:10 2014 New Revision: 269509 URL: http://svnweb.freebsd.org/changeset/base/269509 Log: xen: add a DDB command to print event channel information Add a new DDB command to dump all registered event channels. Sponsored by: Citrix Systems R&D x86/

svn commit: r269510 - in head/sys/x86: x86 xen

2014-08-04 Thread Roger Pau Monné
Author: royger Date: Mon Aug 4 08:54:34 2014 New Revision: 269510 URL: http://svnweb.freebsd.org/changeset/base/269510 Log: xen: change order of Xen intr init and IO APIC registration This change inserts the Xen interrupt subsystem (event channels) initialization between the system inter

svn commit: r269511 - in head/sys/x86: acpica xen

2014-08-04 Thread Roger Pau Monné
Author: royger Date: Mon Aug 4 08:56:20 2014 New Revision: 269511 URL: http://svnweb.freebsd.org/changeset/base/269511 Log: xen: change quality of the MADT ACPI enumerator Lower the quality of the MADT ACPI enumerator, so on Xen Dom0 we can force the usage of the Xen mptable enumerator e

svn commit: r269512 - in head/sys/x86: acpica include

2014-08-04 Thread Roger Pau Monné
Author: royger Date: Mon Aug 4 08:58:50 2014 New Revision: 269512 URL: http://svnweb.freebsd.org/changeset/base/269512 Log: x86/madt: make the interrupt override parser a public function Split a portion of the code in madt_parse_interrupt_override to a separate function, that is public a

svn commit: r269513 - head/sys/x86/xen

2014-08-04 Thread Roger Pau Monné
Author: royger Date: Mon Aug 4 09:01:21 2014 New Revision: 269513 URL: http://svnweb.freebsd.org/changeset/base/269513 Log: xen: implement support for mapping IO APIC interrupts on Xen Allow a privileged Xen guest (Dom0) to parse the MADT ACPI interrupt overrides and register them with t

svn commit: r269514 - head/sys/dev/xen/console

2014-08-04 Thread Roger Pau Monné
Author: royger Date: Mon Aug 4 09:02:49 2014 New Revision: 269514 URL: http://svnweb.freebsd.org/changeset/base/269514 Log: xen: Dom0 console fixes Minor fixes to make the Xen Dom0 console work. This includes always returning there's pending input in xencons_has_input, because on Dom0

svn commit: r269515 - in head/sys: dev/acpica x86/include x86/xen

2014-08-04 Thread Roger Pau Monné
Author: royger Date: Mon Aug 4 09:05:28 2014 New Revision: 269515 URL: http://svnweb.freebsd.org/changeset/base/269515 Log: xen: add ACPI bus to xen_nexus when running as Dom0 Also disable a couple of ACPI devices that are not usable under Dom0. To this end a couple of booleans are added

svn commit: r269580 - head/sys/vm

2014-08-05 Thread Roger Pau Monné
Author: royger Date: Tue Aug 5 10:29:01 2014 New Revision: 269580 URL: http://svnweb.freebsd.org/changeset/base/269580 Log: vm_phys: improve robustness of fictitious ranges With the current implementation of managed fictitious ranges when also using VM_PHYSSEG_DENSE, a user could try to

svn commit: r269634 - in head/sys/dev/drm2: i915 ttm

2014-08-06 Thread Roger Pau Monné
Author: royger Date: Wed Aug 6 17:45:59 2014 New Revision: 269634 URL: http://svnweb.freebsd.org/changeset/base/269634 Log: drm: fix usage of vm_phys_fictitious_to_vm_page vm_phys_fictitious_to_vm_page should not be called directly, even when operating on a range that has been registered

svn commit: r269675 - head/sys/x86/isa

2014-08-07 Thread Roger Pau Monné
Author: royger Date: Thu Aug 7 17:00:50 2014 New Revision: 269675 URL: http://svnweb.freebsd.org/changeset/base/269675 Log: atpic: make sure atpic_init is called after IO APIC initialization After r269510 the IO APIC and ATPIC initialization is done at the same order, which means atpic_i

svn commit: r269814 - head/sys/dev/xen/blkfront

2014-08-11 Thread Roger Pau Monné
Author: royger Date: Mon Aug 11 15:37:02 2014 New Revision: 269814 URL: http://svnweb.freebsd.org/changeset/base/269814 Log: blkfront: add support for unmapped IO Using unmapped IO is really beneficial when running inside of a VM, since it avoids IPIs to other vCPUs in order to invalidate

svn commit: r270041 - head/sys/net

2014-08-16 Thread Roger Pau Monné
Author: royger Date: Sat Aug 16 10:47:24 2014 New Revision: 270041 URL: http://svnweb.freebsd.org/changeset/base/270041 Log: net: move interface removal notification up in if_detach_internal This is needed to prevent having interfaces with ifp->if_addr == NULL on bridge interfaces. Moving

svn commit: r270130 - stable/10/sys/dev/xen/blkfront

2014-08-18 Thread Roger Pau Monné
Author: royger Date: Mon Aug 18 08:50:05 2014 New Revision: 270130 URL: http://svnweb.freebsd.org/changeset/base/270130 Log: MFC r269814: blkfront: add support for unmapped IO Sponsored by: Citrix Systems R&D Tested by:robak PR: 191173 Modified: stable/10/sys/dev/x

Re: svn commit: r265003 - head/secure/usr.sbin/sshd

2014-08-20 Thread Roger Pau Monné
On 27/04/14 07:28, Konstantin Belousov wrote: > Author: kib > Date: Sun Apr 27 05:28:14 2014 > New Revision: 265003 > URL: http://svnweb.freebsd.org/changeset/base/265003 > > Log: > Fix order of libthr and libc in the global dso list for sshd, by > explicitely linking main binary with -lpthrea

svn commit: r270212 - in head/sys: dev/pci ofed/include/linux

2014-08-20 Thread Roger Pau Monné
Author: royger Date: Wed Aug 20 14:57:20 2014 New Revision: 270212 URL: http://svnweb.freebsd.org/changeset/base/270212 Log: pci: make MSI(-X) enable and disable methods of the PCI bus Make the functions pci_disable_msi, pci_enable_msi and pci_enable_msix methods of the newbus PCI bus. Th

Re: svn commit: r265003 - head/secure/usr.sbin/sshd

2014-08-20 Thread Roger Pau Monné
On 20/08/14 17:13, Konstantin Belousov wrote: > On Wed, Aug 20, 2014 at 04:41:05PM +0200, Roger Pau Monn?? wrote: >> On 27/04/14 07:28, Konstantin Belousov wrote: >>> Author: kib >>> Date: Sun Apr 27 05:28:14 2014 >>> New Revision: 265003 >>> URL: http://svnweb.freebsd.org/changeset/base/265003 >>>

Re: svn commit: r265003 - head/secure/usr.sbin/sshd

2014-08-20 Thread Roger Pau Monné
On 20/08/14 17:28, Bryan Drewery wrote: > On 8/20/2014 10:19 AM, Roger Pau Monné wrote: >> On 20/08/14 17:13, Konstantin Belousov wrote: >>> On Wed, Aug 20, 2014 at 04:41:05PM +0200, Roger Pau Monn?? wrote: >>>> On 27/04/14 07:28, Konstantin Belousov wrote: >>&g

Re: svn commit: r265003 - head/secure/usr.sbin/sshd

2014-08-21 Thread Roger Pau Monné
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 21/08/14 10:05, Konstantin Belousov wrote: > On Wed, Aug 20, 2014 at 05:34:58PM +0200, Roger Pau Monn? wrote: >> On 20/08/14 17:28, Bryan Drewery wrote: >>> On 8/20/2014 10:19 AM, Roger Pau Monn? wrote: On 20/08/14 17:13, Konstantin Belousov wr

svn commit: r270332 - head/sys/dev/pci

2014-08-22 Thread Roger Pau Monné
Author: royger Date: Fri Aug 22 15:05:51 2014 New Revision: 270332 URL: http://svnweb.freebsd.org/changeset/base/270332 Log: pci: add a new pci_child_added newbus method. This is needed so when running under Xen the calls to pci_child_added can be intercepted and a custom Xen method can b

svn commit: r270333 - head/sys/dev/xen/netback

2014-08-22 Thread Roger Pau Monné
Author: royger Date: Fri Aug 22 15:10:26 2014 New Revision: 270333 URL: http://svnweb.freebsd.org/changeset/base/270333 Log: netback: fixes for netback This patch contains the following fixes for netback: - Only unbind the evtchn if it has been bound. - Set xnb->bridge to NULL after f

svn commit: r270337 - head/sys/dev/xen/netback

2014-08-22 Thread Roger Pau Monné
Author: royger Date: Fri Aug 22 15:34:56 2014 New Revision: 270337 URL: http://svnweb.freebsd.org/changeset/base/270337 Log: netback: remove dead code Remove the xen_net_read_mac function since it's not used anymore. Sponsored by: Citrix Systems R&D Modified: head/sys/dev/xen/netbac

svn commit: r270339 - head/sys/dev/xen/blkback

2014-08-22 Thread Roger Pau Monné
Author: royger Date: Fri Aug 22 15:38:21 2014 New Revision: 270339 URL: http://svnweb.freebsd.org/changeset/base/270339 Log: xen: fix incorrectly accounted free Fix some frees incorrectly assigned to M_XENBUS when the memory is allocated with M_XENSTORE. Sponsored by: Citrix Systems

Re: svn commit: r269814 - head/sys/dev/xen/blkfront

2014-08-29 Thread Roger Pau Monné
El 28/08/14 a les 20.58, Alexander Motin ha escrit: > On 28.08.2014 21:45, John-Mark Gurney wrote: >> Alexander Motin wrote this message on Thu, Aug 28, 2014 at 21:23 +0300: >>> Hi, Roger. >>> >>> It looks to me like this commit does not work as it should. I got >>> problem when I just tried `newfs

svn commit: r275641 - head/sys/x86/xen

2014-12-09 Thread Roger Pau Monné
Author: royger Date: Tue Dec 9 11:12:24 2014 New Revision: 275641 URL: https://svnweb.freebsd.org/changeset/base/275641 Log: xen: notify ACPI about SCI override If the SCI is remapped to a non-ISA global interrupt notify the ACPI subsystem about the override. Reported by: David P. D

svn commit: r275649 - in head/sys: conf dev/xen/pci x86/xen xen

2014-12-09 Thread Roger Pau Monné
mpty, because file is newly added) +++ head/sys/dev/xen/pci/xen_acpi_pci.c Tue Dec 9 18:03:25 2014 (r275649) @@ -0,0 +1,88 @@ +/* + * Copyright (c) 2014 Roger Pau Monné + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification,

svn commit: r275675 - in head/sys: conf dev/xen/grant_table xen

2014-12-10 Thread Roger Pau Monné
Author: royger Date: Wed Dec 10 11:21:52 2014 New Revision: 275675 URL: https://svnweb.freebsd.org/changeset/base/275675 Log: xen: move grant table code Mave the grant table code into the dev/xen folder in preparation for turning it into a device using the newbus interface. This is just c

svn commit: r275677 - in head/sys: dev/xen/grant_table x86/xen xen

2014-12-10 Thread Roger Pau Monné
Author: royger Date: Wed Dec 10 11:35:41 2014 New Revision: 275677 URL: https://svnweb.freebsd.org/changeset/base/275677 Log: xen: convert the Grant-table code to a NewBus device This allows the Grant-table code to attach directly to the xenpv bus, allowing us to remove the grant-table in

svn commit: r275678 - head/sys/x86/xen

2014-12-10 Thread Roger Pau Monné
Author: royger Date: Wed Dec 10 11:42:02 2014 New Revision: 275678 URL: https://svnweb.freebsd.org/changeset/base/275678 Log: xen: mask event channels while binding them to a vCPU Mask the event channel source before trying to bind it to a CPU, this prevents stray interrupts from firing w

svn commit: r275679 - head/sys/x86/xen

2014-12-10 Thread Roger Pau Monné
Author: royger Date: Wed Dec 10 13:25:21 2014 New Revision: 275679 URL: https://svnweb.freebsd.org/changeset/base/275679 Log: xen/intr: balance dynamic interrupts across available vCPUs By default Xen binds all event channels to vCPU#0, and FreeBSD only shuffles the interrupt sources once

Re: svn commit: r275679 - head/sys/x86/xen

2014-12-11 Thread Roger Pau Monné
El 10/12/14 a les 21.17, Justin T. Gibbs ha escrit: > On Dec 10, 2014, at 6:25 AM, Roger Pau MonnXX wrote: >> >> Author: royger >> Date: Wed Dec 10 13:25:21 2014 >> New Revision: 275679 >> URL: https://svnweb.freebsd.org/changeset/base/275679 >> >> Log: >> xen/intr: balance dynamic interrupts acr

svn commit: r276064 - in head/sys/dev/vt/hw: efifb vga

2014-12-22 Thread Roger Pau Monné
Author: royger Date: Mon Dec 22 16:46:07 2014 New Revision: 276064 URL: https://svnweb.freebsd.org/changeset/base/276064 Log: vt: register the memory regions used by the vt drivers Current VT drivers don't register the memory regions they use with the nexus. This patch makes vt_vga and vt

svn commit: r276405 - head/sys/dev/vt/hw/efifb

2014-12-30 Thread Roger Pau Monné
Author: royger Date: Tue Dec 30 08:50:07 2014 New Revision: 276405 URL: https://svnweb.freebsd.org/changeset/base/276405 Log: Partially revert "vt: register the memory regions used by the vt drivers" Revert the EFI part of r276064 until I can test it properly on a real EFI system. This wa

svn commit: r276406 - head/sys/dev/vt/hw/vga

2014-12-30 Thread Roger Pau Monné
Author: royger Date: Tue Dec 30 08:50:50 2014 New Revision: 276406 URL: https://svnweb.freebsd.org/changeset/base/276406 Log: vt_vga: fix an off-by-one error This correctly sets the end of the memory region registered by vt_vga. Reported by: marius Modified: head/sys/dev/vt/hw/vga/

svn commit: r277215 - in head/sys: amd64/include boot/common boot/fdt boot/forth boot/i386/libi386 boot/i386/loader i386/include x86/xen

2015-01-15 Thread Roger Pau Monné
Modified: head/sys/boot/i386/libi386/libi386.h ========== --- head/sys/boot/i386/libi386/libi386.hThu Jan 15 16:09:35 2015 (r277214) +++ head/sys/boot/i386/libi386/libi386.hThu Jan 15 16:27:20 2015 (r2772

Re: svn commit: r277215 - in head/sys: amd64/include boot/common boot/fdt boot/forth boot/i386/libi386 boot/i386/loader i386/include x86/xen

2015-01-16 Thread Roger Pau Monné
El 16/01/15 a les 0.03, Ian Lepore ha escrit: > On Thu, 2015-01-15 at 16:27 +0000, Roger Pau Monné wrote: >> Author: royger >> Date: Thu Jan 15 16:27:20 2015 >> New Revision: 277215 >> URL: https://svnweb.freebsd.org/changeset/base/277215 >> >> Log: >>

svn commit: r277291 - head/sys/boot/common

2015-01-17 Thread Roger Pau Monné
Author: royger Date: Sat Jan 17 08:09:07 2015 New Revision: 277291 URL: https://svnweb.freebsd.org/changeset/base/277291 Log: loader: use correct types for parse_modmetadata Use the proper types in parse_modmetadata for the p_start and p_end parameters. This was causing problems in the AR

svn commit: r277418 - in head/sys: boot/i386/libi386 x86/xen

2015-01-20 Thread Roger Pau Monné
Author: royger Date: Tue Jan 20 12:28:24 2015 New Revision: 277418 URL: https://svnweb.freebsd.org/changeset/base/277418 Log: loader: fix the size of MODINFOMD_MODULEP The data in MODINFOMD_MODULEP is packed by the loader as a 4 byte type, but the amd64 kernel expects a vm_paddr_t, which

svn commit: r277735 - head/sys/amd64/amd64

2015-01-26 Thread Roger Pau Monné
Author: royger Date: Mon Jan 26 08:42:47 2015 New Revision: 277735 URL: https://svnweb.freebsd.org/changeset/base/277735 Log: amd64: allow base memory segment to start at address different than 0 Current code requires that the first physical memory segment starts at 0, but this is not rea

Re: svn commit: r281789 - head

2015-04-29 Thread Roger Pau Monné
Hello, El 20/04/15 a les 22.33, Eitan Adler ha escrit: > Author: eadler > Date: Mon Apr 20 20:33:22 2015 > New Revision: 281789 > URL: https://svnweb.freebsd.org/changeset/base/281789 > > Log: > phabricator related changes: > - don't lint either contrib or crypto: these are both externall

svn commit: r282216 - head/sys/dev/vt/hw/vga

2015-04-29 Thread Roger Pau Monné
Author: royger Date: Wed Apr 29 12:53:41 2015 New Revision: 282216 URL: https://svnweb.freebsd.org/changeset/base/282216 Log: vt_vga: add a timeout while waiting for vertical retrace On one of my systems FreeBSD will fail to boot because vt_vga gets stuck waiting for the vertical retrace

svn commit: r282269 - head/sys/dev/atkbdc

2015-04-30 Thread Roger Pau Monné
Author: royger Date: Thu Apr 30 07:00:25 2015 New Revision: 282269 URL: https://svnweb.freebsd.org/changeset/base/282269 Log: atkbd: remove usage of x86bios Instead of trying to get the keyboard repeat rate set by the BIOS just set a default one. This allows removing the usage of x86bios

svn commit: r282634 - in head/sys: conf dev/xen/blkback dev/xen/grant_table dev/xen/netback dev/xen/privcmd x86/xen xen xen/xenmem

2015-05-08 Thread Roger Pau Monné
ins. + */ +struct resource *xenmem_alloc(device_t dev, int *res_id, size_t size); +int xenmem_free(device_t dev, int res_id, struct resource *res); + /* Debug/emergency function, prints directly to hypervisor console */ void xc_printf(const char *, ...) __printflike(1, 2); Added: head/sys/x

svn commit: r282908 - head/sys/dev/xen/netfront

2015-05-14 Thread Roger Pau Monné
Author: royger Date: Thu May 14 16:29:11 2015 New Revision: 282908 URL: https://svnweb.freebsd.org/changeset/base/282908 Log: netfront: wait for backend to connect before sending ARP Netfront has to wait for the backend to switch to state XenbusStateConnected before sending the ARP reques

svn commit: r283218 - stable/10/sys/dev/xen/netfront

2015-05-21 Thread Roger Pau Monné
Author: royger Date: Thu May 21 10:28:33 2015 New Revision: 283218 URL: https://svnweb.freebsd.org/changeset/base/283218 Log: MFC: r282908 netfront: wait for backend to connect before sending ARP Sponsored by: Citrix Systems R&D Modified: stable/10/sys/dev/xen/netfront/netfront.c Di

svn commit: r283219 - in stable/10/sys: conf dev/atkbdc

2015-05-21 Thread Roger Pau Monné
Author: royger Date: Thu May 21 10:40:18 2015 New Revision: 283219 URL: https://svnweb.freebsd.org/changeset/base/283219 Log: MFC: r282269, r282277 atkbd: remove usage of x86bios Remove leftover from r282269. Modified: stable/10/sys/conf/files.amd64 stable/10/sys/conf/files.i386 st

Re: svn commit: r279699 - in head/sys: amd64/amd64 i386/i386

2015-03-11 Thread Roger Pau Monné
Hello, On Tue, Mar 10, 2015 at 12:30 AM, John Baldwin wrote: > On Saturday, March 07, 2015 12:55:06 AM Sergey Kandaurov wrote: >> On 6 March 2015 at 23:34, John Baldwin wrote: >> > Author: jhb >> > Date: Fri Mar 6 20:34:28 2015 >> > New Revision: 279699 >> > URL: https://svnweb.freebsd.org/chan

svn commit: r280838 - in head/sys: conf dev/xen/debug

2015-03-30 Thread Roger Pau Monné
-0,0 +1,157 @@ +/* + * Copyright (c) 2015 Roger Pau Monné + * 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 a

svn commit: r280953 - head/sys/boot/i386/libi386

2015-04-01 Thread Roger Pau Monné
Author: royger Date: Wed Apr 1 10:02:28 2015 New Revision: 280953 URL: https://svnweb.freebsd.org/changeset/base/280953 Log: multiboot: zero mod list array Zero the list of modules array before using it, or else we might pass uninitialized data in unused fields of the struct that will ma

  1   2   3   4   >