summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2017-01-13Enable vmmci(4)Reyk Floeter
OK mlarkin@
2017-01-13Disable and lock Silicon Debug feature on modern Intel CPUsMike Belopuhov
This implements one of the countermeasures against using Direct Connect Interface (DCI) to debug CPUs via USB3 mentioned in the "Tapping into the core" talk at the 33c3: identify and disable the Silicon Debug feature found in Haswell and newer CPUs. ok mlarkin, deraadt
2017-01-13Add vmmci(4) (VMM control interface), a simple guest-side driver for vmm(4) VMsReyk Floeter
While we don't have ACPI in vmm(4), we need a simple way to shutdown and reboot VMs gracefully but the device also allows to add more direct communications between host and guest later. OK mlarkin@
2017-01-13Call pmap_pte_update() where the vp lookup has already been donePatrick Wildt
before. Additionally, simplify pmap_clear_reference() to call pmap_pte_insert() instead of doing it itself.
2017-01-13Some code already does a vp lookup, so there's no need to callPatrick Wildt
pmap_pte_insert() which does the same thing again. Instead, split the function into two parts, so that those that don't need another lookup can simply call pmap_pte_update().
2017-01-13Rename pte_{insert,remove} to pmap_pte_{insert,remove} to betterPatrick Wildt
fit into the grand scheme of things.
2017-01-13Ansify cpu_sysctl() on alpha, arm, arm64, luna88k and sparc64.Frederic Cambus
OK mpi@
2017-01-13SVM/RVI: vm_impl_init_svm implementation, create pmap for RVI VMsMike Larkin
2017-01-13Starting to merge my old AMD SVM/RVI tree, piece by piece.Mike Larkin
SVM/RVI: VMCB structure definitions for amd64/i386
2017-01-12Remove vc_hsa_stack_va, it has not been used in a long time and is noMike Larkin
longer needed.
2017-01-12add a couple missing comments, no code changeMike Larkin
2017-01-11A data abort caused by an execution access fault should propagate itsPatrick Wildt
fault as execution fault. This is especially needed as in comparison to ARMv7 we can have execute-only user pages on ARMv8. This means that there is a distinction between executing and reading pages, which we did not have before. We need to treat PROT_EXEC separate but similar to PROT_READ. Additionally, use pte_insert() to manage a page's pagetable entry instead of manually accessing and modifying the pagetable.
2017-01-11Prohibit execution of kernel pages by userland and prohibit executionPatrick Wildt
of user pages by the kernel. Additionally, don't allow userland to read executable pages that were not mapped explicitly with a read flag.
2017-01-11SVM intercept codes (exit reason) definesMike Larkin
2017-01-11Update floating point header to better represent 64-bit ARM.Patrick Wildt
2017-01-10Cleanup TCB header a la OpenBSD/armv7.Patrick Wildt
2017-01-10Add rd(4) to OpenBSD/arm64's list of devices. Additionally, purge thePatrick Wildt
remains of st(4).
2017-01-10enable acpihve(4)Jonathan Gray
2017-01-10matching i386 diff from previous amd64 - ensure page walk length 4, as weMike Larkin
don't support other ept depths
2017-01-10ensure EPT page walk length 4. We don't support other page walk lengthsMike Larkin
2017-01-10Display resolution and color depth when attaching.Frederic Cambus
OK visa@, kettenis@, deraadt@
2017-01-09Sync with NetBSD/luna68k changes.Kenji Aoyama
>> Fix (mostly harmless) off-by-one size check in XPIOCDOWNLD ioctl. >> Consistently use sc_shm_size initialized at device attach. http://mail-index.netbsd.org/source-changes/2017/01/08/msg080666.html http://mail-index.netbsd.org/source-changes/2017/01/08/msg080667.html
2017-01-09i386 vmm requires PAE mode to be in use. don't match vmm(4) if ! PAE.Mike Larkin
2017-01-08Revert previous commit as it failed to handle unset vmcs pointers properlyMike Larkin
noticed by Josh Grosse
2017-01-08Add support for the RTC found on the Allwinner H3.Mark Kettenis
2017-01-08Specify correct size for the softc.Mark Kettenis
2017-01-07Make getting the parent clock for the SD/MMC controller work on theMark Kettenis
Allwinner H3.
2017-01-07reduce statement nesting depth in a couple places, suggested byMike Larkin
Michael Bombardieri
2017-01-07add rcs tagsMike Larkin
2017-01-07use 16 bit segment selectors. also reduces differences with i386 vmmMike Larkin
2017-01-07Fill bootstrap translation table with zeroes before we use it and don't mapMark Kettenis
the vectors page at address 0 as we don't put them there. ok patrick@
2017-01-06Ansify cpu_sysctl() on mips64 platforms.Frederic Cambus
OK patrick@, visa@, jasper@, mpi@
2017-01-06there is no longer a need to ifdef __armv7__ armv6 rev instructionsJonathan Gray
2017-01-06unifdef CPU_ARMv7 and ARM_ARCH_7Jonathan Gray
ok kettenis@ patrick@
2017-01-05Pass value as input instead of output register, otherwise we writePatrick Wildt
garbage into the control register. While there remove positional argument leftover from the 32-bit version.
2017-01-05Now that all non-ARMv7 platforms are gone, tedu the legacy atomicPatrick Wildt
locking code. ok kettenis@
2017-01-05Complete idle PCB allocation for secondary processors so that it makesPatrick Wildt
sense and builds as part of an MP kernel. ok kettenis@ mpi@
2017-01-05Fix boot(8) crashing on some amd64 machines when booting from softraid crypto.Stefan Sperling
Allocate a 4k temp buffer on the heap instead of the stack. Problem was introduced in arch/amd64/stand/libsa/softraid_amd64.c r1.3. Reported by Andreas Bartelt on bugs@ ok krw@ kettenis@ yasuoka@
2017-01-04Cleanup gpio(4) support code.Mark Kettenis
ok jsg@
2017-01-04unifdef CPU_XSCALE_PXA2X0, ARM_MMU_XSCALE, ARM_MMU_GENERIC (armv3)Jonathan Gray
and remove some xscale definitions. ok kettenis@
2017-01-03Add simplefb(4), a driver to support the framebuffer set up by the firmwareMark Kettenis
on some platforms that use device trees. Works on Allwinner (sunxi) and should also work on Raspberry Pi (broadcom) armv7 platforms. ok jsg@, visa@
2017-01-03Remove #define __SWAP_BROKEN from mips64. The architecture nowVisa Hankala
has a proper pmap_collect() implementation, and the current uvm_swapout_threads() code does not need other MD interfaces. OK miod@
2017-01-03reduce differences between amd64 and i386 vmmMike Larkin
2017-01-02Allow freeing of newly empty directory pages.Visa Hankala
2017-01-02Enable xbf(4).Rafael Zalamena
ok mikeb@
2017-01-02delete obsolete (disabled) pool_cache_invalidate. pool caches were removedTed Unangst
many years ago, and the just reimported version doesn't cache constructed objects. from Nick Gonella
2017-01-02remove unused armv4 and xscale filesJonathan Gray
ok kettenis@ patrick@
2017-01-01recognise Cortex A32Jonathan Gray
2016-12-31Add missing $OpenBSD$ marker.Mark Kettenis
2016-12-30Increase space for ramdisk inserts to match ftp(1) https growth.Theo de Raadt