summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
2016-01-17enable ikbd(4)Jonathan Gray
2016-01-15enable sdhc@acpi so emmc will be available at install timeJonathan Gray
ok kettenis@
2016-01-14Eable ikbd(4).Mark Kettenis
2016-01-13Enable Xen support in GENERIC; discussed with deraadt@Mike Belopuhov
2016-01-12naddy observed the TSC fallback code could encounter (high word) %edxTheo de Raadt
being 0; after multiply there is no perturbance to the from-disk entropy buffer. Further investigation showed perturbance was biased towards the lower bytes of a word. Compensate for this with a hocus pocus bit-spreading operation which applies a result byte by byte. discussion with kettenis, tb, mlarkin, naddy ok naddy
2016-01-12Add dwiic, a driver for the Synopsys DesignWare i2c controller foundJoshua Stein
on the Samsung ATIV Book 9 laptop. This initial version only supports ACPI config/attachment. Add ihidev, a HID-over-i2c driver largely based on uhidev. dwiic handles attaching ihidev devices found in ACPI. Add ims, a HID-over-i2c mouse/trackpad driver to get basic cursor and button functionality from HID-compliant i2c trackpads. ok kettenis deraadt
2016-01-11Enable sdhc* at acpi?.Mark Kettenis
2016-01-11Add a "mux -1" locator to wsdisplay(4) instances representing secondaryMark Kettenis
displays. This makes sure the keyboard mux gets picked up by the primary (console) display and that USB keyboards get paired with the console even if they are not marked as the console keyboard. This is what most people expect to happen. If you really want to associate your USB keyboard with a secondary display, you can detach it from the mux using wsconscfg -f /dev/ttyCcfg -k -d and attach it to another display using wsconscfg -f /dev/ttyDcfg -k
2016-01-10match up code and comments, add missing $OpenBSD$; ok jsing@ a while agoChristian Weisgerber
2016-01-10Page fault handling tweaks for vmm:Stefan Kempf
- compute fault reason for uvm_fault() (e.g. page not present, protection violation) instead of passing a protection code - a page does not need to be zero'd after faulting it in. uvm_fault() does that for fresh anon pages already, and we also do not want a page that is swapped back in have its contents wiped. ok mlarkin@
2016-01-10Introduce acpi_intr_establish(9), an API to establish interrupt handlers forMark Kettenis
"platform" devices that attach to acpi(4). ok mlarkin@, deraadt@
2016-01-08Move HID support files out of dev/usb into new dev/hid directoryJoshua Stein
These files aren't USB-specific and were used by the previous Bluetooth implementation, and will be used by the upcoming HID-over-i2C implementation ok deraadt previous version ok kettenis and mpi
2016-01-08Add "vmm" pledge to allow restricted ioctl access to /dev/vmm.Reyk Floeter
This will allow to pledge vmd(8)'s vmm and vm processes, so that VMs themselves run "sandboxed", including their host-side virtio layer. It will remain disabled for now (in userland) to not get into the way of ongoing development and upcoming changes in vmd and the ioctl interface. OK mlarkin@ deraadt@ "kernel side in, but not the callers in userland"
2016-01-08Enable uonerng(4) where ualea(4) is already present.Martin Pieuchot
2016-01-08Use off_t to store the offset we want to access the NVRAM atStefan Kempf
and check that is valid. Ensures that NVRAM is accessed at sensible offsets. Convert i386/nvram.c to uiomove() while there. Diff from Martin Natano, thanks! ok kettenis@, deraadt@
2016-01-07Xen virtual networking interface (Netfront) driver.Mike Belopuhov
Encouragement from deraadt@, ok reyk
2016-01-06We want the first, not the last, OpenBSD partition in the MBR.Kenneth R Westerback
2016-01-06Bring efidev.c goodness into softraid.c by returning and displayingKenneth R Westerback
the same error messages on GPT processing failures. Add a message about failed GPT entry checksum error to both. This was inadvertantly deleted in the switch to one entry at a time processing. tweaks & ok yasuoka@ jsing@
2016-01-04Remove parameter name from gpt_chk_mbr() prototype and add prototypeKenneth R Westerback
for findopenbsd_gpt().
2016-01-04Do proper termination of VMs by doing proper VCPU run state management.Mike Larkin
This should fix some of the odd termination errors people have been seeing (vmctl status showing running VMs after they have exited/crashed, and invalid instruction panics on vmptrld during certain races) This diff also implements dropping the biglock when running a VCPU, and reacquiring the lock as needed based on the type of exit (normal vs. external interrupt) diff supplied by Stefan Kempf <sn.kempf at t-online.de>, many thanks!
2016-01-04wrap a long lineMike Larkin
2016-01-03Don't need two 16K static buffers to checksum the GPT entries and find theKenneth R Westerback
OpenBSD partition. Just one 128-byte stack copy of a single entry. Problems with EFI installs involving many disks reported by and fix tested by Thomas Bohl. Stefan Kempf pointed finger of suspicion at the addition of the 2nd 16K static buffer for softraid GPT and suggested/reviewed several versions of the diff. Tweaked and ok jsing@
2015-12-31Add pchtemp(4) a driver for the thermal sensor on recent Intel PCHs.Mark Kettenis
2015-12-27If available prefer the rdseed instruction over rdrand when adding entropyJonathan Gray
to the kernel rng. If the rdseed source is empty fallback to rdrand as suggested by naddy. rdrand output comes from a prng that is periodically reseeded. rdseed should give us more bits of entropy. ok naddy@ djm@ deraadt@
2015-12-24If the GPT header checksum check fails, do *not* say the OpenBSD partitionKenneth R Westerback
starts at sector 1. Instead return -1, as for all other failures during the header check.
2015-12-24Make all instances of gpt_chk_mbr() identical (bar static vsKenneth R Westerback
non-static) by passing disk size as 2nd parameter instead of the different structures holding the disk size info. The fifth copy of gpt_chk_mbr() in fdisk is a little specialer. No functional change.
2015-12-24Add prototype for gpt_chk_mbr() to i386_installboot.c. Add 'static' toKenneth R Westerback
declarations of gpt_chk_mbr() to match prototypes in efidev.c and softraid.c.
2015-12-24Normalize return values from various exit functions.Mike Larkin
Another diff from Stefan Kempf <sn.kempf at t-online.de>.
2015-12-24Make sure we don't overflow a page during vm_readpage/vm_writepage.Mike Larkin
Noticed over a month ago by Stefan Kempf <sn.kempf at t-online.de>, and I shamefully just got around to committing it. Thanks Stefan.
2015-12-24Argh. The other part the wrong diff was missing.Kenneth R Westerback
Use the size info in struct sr_boot_volume, and not the uninitialized info in the disklabel, when checking the GPT protective MBR. Now both GPT and MBR formatted softraid volumes actually boot. As a bonus add prototype for gpt_chk_mbr().
2015-12-23Ooops. Wrong version of the diff committed, with reversed check forKenneth R Westerback
MBR/GPT. Problem found the hard way by Glenn Faustino on tech@
2015-12-22Find OpenBSD disklabel on GPT partitioned softraid volumes. Now you canKenneth R Westerback
boot from such volumes to match being able to install to them. Problem spotted by jcs@, fix tested by rpe@, ok jsing@
2015-12-21add virtio-console driverStefan Fritsch
This patch adds a new driver for use of virtio-console devices as ttys. It's still in an early state and not compiled by default, yet. Currently it is only wired into amd64. i386 is still missing. Discussed with uebayasi@, deraadt@
2015-12-17add a size to free. from MathieuTed Unangst
2015-12-17Move vcpu register state init to vmd. Allows vmd bootloader to make theMike Larkin
decision as to how the vcpu should be set up for initial start and reset. Also removes some hardcoded register constants from vmm(4). ok jsing@, mpi@
2015-12-15remove some not interesting debug printfsMike Larkin
2015-12-15support reset vcpu by triple fault (kernel part, userland fix will comeMike Larkin
later). discussed with deraadt@ and reyk@ at length.
2015-12-14Support only one vcpu for now, until we implement SMP support.Mike Larkin
2015-12-14track used memory in each VM. This is passed back to vmctl status.Mike Larkin
ok reyk@, beck@, mpi@
2015-12-12Identify hypervisors before configuring other children of the mainbusReyk Floeter
(bios, CPU, interrupt handlers, pvbus). This splits the pvbus attach function into two parts: pvbus_identify() to scan the CPUID registers for supported hypervisors and pvbus_attach() to attach the bus, print information, and configure the children. This will be needed for Xen and KVM, as discussed with mikeb@ and sf@ OK mlarkin@
2015-12-11comment typommcc
2015-12-09successful vmm enter/leave does not need to be reportedTheo de Raadt
ok mlarkin
2015-12-08Disable xspd(4) until the man page is written; noticed by reyk@Mike Belopuhov
2015-12-08Driver for the XenSource Platform DeviceMike Belopuhov
This is a simple driver for the virtual PCI device with only one purpose: to allocate the interrupt vector and communicate that to the Hypervisor in case the IDT callback method was not available. With input from and OK deraadt, mlarkin, reyk, mpi
2015-12-08Set up an IDT vector for Xen callbacksMike Belopuhov
This adds support for delivering the combined Xen interrupt that later fans out into event port specific (device specific) interrupts via an IDT of a guest system. The Xen IDT vector is set to be the first of the IPL_NET group and is implemented the same way LAPIC timer and IPIs are done. The additional machinery is there to be able to mask it via standard mechanisms (e.g. splnet). Discussed with kettenis@, OK mlarkin, reyk
2015-12-08Setup a hypercall page in the kernel .text segmentMike Belopuhov
Its location will be communicated with the Xen hypervisor that will fill it in with instructions resulting in VMEXIT events. Discussed with kettenis@ and deraadt@, with input from and OK mpi, mlarkin, reyk
2015-12-08Xen basic infrastructure files and pvbus(4) attachment.Mike Belopuhov
With input from and OK mpi, mlarkin, reyk
2015-12-07Add cpuid bits documented in the August 2015 revision ofJonathan Gray
"Intel Architecture Instruction Set Extensions Programming Reference"
2015-12-06child_return() is already declared in <sys/proc.h>Philip Guenther
2015-12-06add function prototypeMike Larkin