summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Consolidate code related to setting up physical memory configuration intoian2014-02-0814-328/+494
| | | | | | | | | | | | | | a new physmem.c file. The new code provides helper routines that can be used by legacy SoCs and newer FDT-based systems. There are routines to add one or more regions of physically contiguous ram, and exclude one or more physically contiguous regions of ram. Ram can be excluded from crash dumps, from being given over to the vm system for allocation management, or both. After all the included and excluded regions have been added, arm_physmem_init_kernel_globals() processes the regions into the global dump_avail and phys_avail arrays and realmem and physmem variables that communicate memory configuration to the rest of the kernel. Convert all existing SoCs to use the new helper code.
* Remove the ARM_USE_SMALL_ALLOC option and code related to it.ian2014-02-0821-539/+10
| | | | | | | | | | This was an optimization used only by a few xscale platforms. Part of the optimization was to create a direct map for all physical pages, and that resulted in making multiple mappings of pages in a way that bypassed the logic in pmap.c to handle VIVT cache aliasing. It also just generally made the code more complex and hard to maintain for all SoCs. Reviewed by: cognet
* Remove ft_rtalloc and choose rtalloc function at compile time.glebius2014-02-081-17/+6
|
* Spacing.glebius2014-02-081-30/+30
|
* Add drivers for:br2014-02-086-0/+732
| | | | | - Enhanced Direct Memory Access Controller (eDMA) - Direct Memory Access Multiplexer (DMAMUX)
* Add virtualized XSAVE support to bhyve which permits guests to use XSAVE andjhb2014-02-085-7/+166
| | | | | | | | | | | | | | | XSAVE-enabled features like AVX. - Store a per-cpu guest xcr0 register. When switching to the guest FPU state, switch to the guest xcr0 value. Note that the guest FPU state is saved and restored using the host's xcr0 value and xcr0 is saved/restored "inside" of saving/restoring the guest FPU state. - Handle VM exits for the xsetbv instruction by updating the guest xcr0. - Expose the XSAVE feature to the guest only if the host has enabled XSAVE, and only advertise XSAVE features enabled by the host to the guest. This ensures that the guest will only adjust FPU state that is a subset of the guest FPU state saved and restored by the host. Reviewed by: grehan
* init: Remove code to track line numbers in /etc/ttys.jilles2014-02-081-16/+4
| | | | | | | The tracking generated warnings when the line number of an existing tty in /etc/ttys changed, which would corrupt utmp (as it was indexed by the line number). With utmpx, the line number no longer matters, so the tracking is no longer needed.
* mdoc: minor paragraph fixes.joel2014-02-0810-33/+2
|
* Correct example.joel2014-02-081-2/+2
| | | | | Submitted by: Jason McIntyre <jmc@kerhand.co.uk> Thomas Klausner <wiz@netbsd.org>
* Revert accidentially leaked changes in r261627.glebius2014-02-081-0/+4
|
* Remove never set flag FL_OVERWRITE. The only place whereglebius2014-02-082-7/+0
| | | | it was checked led to lock/critnest leak.
* Add a counter to differentiate between VM-exits due to nested paging faultsneel2014-02-083-3/+6
| | | | and instruction emulation faults.
* MFV r261619:delphij2014-02-081-2/+3
| | | | | | | | | | | 4574 get_clones_stat does not call zap_count in non-debug kernel zap_count(...) is never called in non-DEBUG kernel. As result "count" variable is always 0, and "goto fail" is always reached. This means get_clones_stat function never makes up list of clones for "clones" properties. MFC after: 2 weeks
* In g_eli_crypto_hmac_init(), zero out after using the ipad buffer,delphij2014-02-081-0/+1
| | | | | | | | | | | | | k_ipad. Note that the two consumers in geli(4) are not affected by this issue because the way the code is constructed and as such, we believe there is no security impact with or without this change with geli(4)'s usage. Reported by: Serge van den Boom <serge vdboom.org> Reviewed by: pjd MFC after: 2 weeks
* Fix a bug in the handling of VM-exits caused by non-maskable interrupts (NMI).neel2014-02-081-15/+36
| | | | | | | | | | | | | | | If a VM-exit is caused by an NMI then "blocking by NMI" is in effect on the CPU when the VM-exit is completed. No more NMIs will be recognized until the execution of an "iret". Prior to this change the NMI handler was dispatched via a software interrupt with interrupts enabled. This meant that an interrupt could be recognized by the processor before the NMI handler completed its execution. The "iret" issued by the interrupt handler would then cause the "blocking by NMI" to be cleared prematurely. This is now fixed by handling the NMI with interrupts disabled in addition to "blocking by NMI" already established by the VM-exit.
* Remove FreeBSD 6 supportimp2014-02-082-10/+0
|
* tests/sys/Makefileasomers2014-02-081-5/+3
| | | | | | | | | | use TESTS_SUBDIRS for kern instead of SUBDIRS. I don't think it makes a difference in this case, but TESTS_SUBDIRS is generally correct for subdirectories that contain tests. Sponsored by: Spectra Logic MFC after: 5 days X-MFC-With: r261133
* Build a 32-bit libstand under sys/boot/ for ppc64emaste2014-02-074-3/+7
| | | | | | This change is equivalent to r261567 for i386/amd64. Sponsored by: The FreeBSD Foundation
* Fix comment.glebius2014-02-071-1/+1
|
* Add cross-references to casperd(8) and libcapsicum(3).pjd2014-02-071-1/+3
| | | | Suggested by: rwatson
* Add some context for the "kldload sem" command; minor other improvements.brueffer2014-02-071-3/+7
| | | | | | PR: 183650 Submitted by: Bjorn Heidotting MFC after: 1 week
* Remove unused defines.glebius2014-02-071-7/+0
|
* Pull in upstream libcxxrt commit 8006101, which makes its cxxabi.h filedim2014-02-071-0/+1
| | | | | | | compilable just by itself. PR: kern/184019 MFC after: 3 days
* Apply a cleaner solution for the sign warnings that can occur whendim2014-02-071-4/+4
| | | | | | | | compiling libc++'s <locale> header with -Wsystem-headers on. This has also been submitted upstream. Reported by: asomers
* Mark the I/O ports used by the bhyve console and debug devices as systemjhb2014-02-072-0/+6
| | | | | | resources. MFC after: 1 week
* Dynamically generate the page table. This will allow us to detect theandrew2014-02-071-36/+55
| | | | physical address we are loaded at to change the mapping.
* Now that FreeBSD/i386 works as a bhyve guest, allow i386 kernels tojhb2014-02-071-0/+5
| | | | include bvmconsole and bvmdebug.
* HEAD is not buildable for the past day. Commit a 'quick fix' in order to permiteadler2014-02-071-4/+4
| | | | | | buildworld to complete. Reviewed by: theraven
* Don't force efi to a 32-bit build on amd64emaste2014-02-071-8/+1
| | | | Sponsored by: The FreeBSD Foundation
* Set errno on inet_ntop(3) failure.kevlo2014-02-071-2/+4
| | | | Reviewed by: glebius
* o Revamp API between flowtable and netinet, netinet6.glebius2014-02-0712-553/+409
| | | | | | | | | | | | | | | | | | | | | | | | - ip_output() and ip_output6() simply call flowtable_lookup(), passing mbuf and address family. That's the only code under #ifdef FLOWTABLE in the protocols code now. o Revamp statistics gathering and export. - Remove hand made pcpu stats, and utilize counter(9). - Snapshot of statistics is available via 'netstat -rs'. - All sysctls are moved into net.flowtable namespace, since spreading them over net.inet isn't correct. o Properly separate at compile time INET and INET6 parts. o General cleanup. - Remove chain of multiple flowtables. We simply have one for IPv4 and one for IPv6. - Flowtables are allocated in flowtable.c, symbols are static. - With proper argument to SYSINIT() we no longer need flowtable_ready. - Hash salt doesn't need to be per-VNET. - Removed rudimentary debugging, which use quite useless in dtrace era. The runtime behavior of flowtable shouldn't be changed by this commit. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* - Use a callout instead of the deprecated timeout_handle.jhb2014-02-071-12/+10
| | | | | - Set the console name always so that the bvm console device can be used via conscontrol even if it isn't chosen as the default console.
* The atp USB driver is generic and its manual page should be availablehselasky2014-02-071-5/+2
| | | | | | for all platforms. Add wsp manual page to build. MFC after: 1 week
* Update atp driver manual page.hselasky2014-02-071-52/+1
| | | | | | Moused is now started automatically by devd. MFC after: 1 week
* Add manual page for wsp driver.hselasky2014-02-071-0/+96
| | | | MFC after: 1 week
* Remove references to PHYSADDR where it's used only in debugging output,ian2014-02-074-6/+2
| | | | | | | and where the code that references it can safely be elided if it's not defined (meaning the code is used for legacy arm platforms that still define the compile-time PHYSADDR but not on newer systems that calculate the value at runtime).
* sysctl_handle_counter_u64() doesn't use arg2 argument, thus simplifyglebius2014-02-072-5/+5
| | | | | | the SYSCTL_COUNTER_U64() macro. Sponsored by: Nginx, Inc.
* Utilize SYSCTL_UMA_CUR() to export usage of syncache andglebius2014-02-072-28/+5
| | | | | | tcp reassembly zones. Sponsored by: Nginx, Inc.
* Provide macros that allow easily export uma(9) zone limits andglebius2014-02-073-1/+94
| | | | | | | | | | | current usage via sysctl(9): SYSCTL_UMA_MAX() SYSCTL_ADD_UMA_MAX() SYSCTL_UMA_CUR() SYSCTL_ADD_UMA_CUR() Sponsored by: Nginx, Inc.
* Catch up on r261590.glebius2014-02-071-4/+0
|
* Make libstand setjmp work for both 64- and 32-bit ABIs.nwhitehorn2014-02-071-27/+106
|
* Remove identical vnet sysctl handlers, and handle CTLFLAG_VNETglebius2014-02-073-51/+8
| | | | | | | | | | in the sysctl_root(). Note: SYSCTL_VNET_* macros can be removed as well. All is needed to virtualize a sysctl oid is set CTLFLAG_VNET on it. But for now keep macros in place to avoid large code churn. Sponsored by: Nginx, Inc.
* fts: Fix double-free with conflicting concurrent modifications.jilles2014-02-071-4/+8
| | | | | | | | | | | If rare conditions such as concurrent conflicting manipulation of the filesystem occur, fts_read() frees the current FTSENT without adjusting the pointers in the FTS accordingly. A later fts_close() then frees the same FTSENT again. Reported by: pho Tested by: pho MFC after: 1 week
* Fix the build with DEBUG enabled. Where possible, fix style(9) issues.loos2014-02-072-51/+58
| | | | | Reviewed by: bde Approved by: adrian (mentor)
* Implement vd_drawrect and vd_setpixel for vt(9)'s VGA driver.ray2014-02-071-0/+29
| | | | Sponsored by: The FreeBSD Foundation
* In IPv6 code examples, use the correct v6 socket.brueffer2014-02-071-2/+2
| | | | MFC after: 1 week
* Unlock entry before retry.ae2014-02-071-0/+1
| | | | | Submitted by: melifaro MFC after: 1 week
* Spacing.glebius2014-02-071-33/+33
|
* Revert r234666. Clearing TWSI IRQ seems to cause watchdog timeoutyongari2014-02-071-3/+0
| | | | | | | on old Yukon II controllers. Tested by: bsam MFC after: 2 weeks
* Add option USB_HOST_ALIGN=64 for all SoCs that have 64 byte cache lines.ian2014-02-077-0/+7
|
OpenPOWER on IntegriCloud