summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
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-08No trailers has been the default and only option for 20 years, yet someTed Unangst
drivers still set IFF_NOTRAILERS while others do not. Remove all usage of the flag from the drivers which in ancient times used it (and the modern drivers which blindly copied it from those drivers of yore). suggested by guenther. ok mpi
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
2015-12-06move around some deck chairs in preparation for supporting VM reboot. thisMike Larkin
diff moves the cpu register init code into its own function which will soon be called from vmd to reset processor state. no functional change with this diff.
2015-12-06Don't bother printing out the count of what type of cpu we have. InsteadMike Larkin
just print the feature being used (eg, VMX/EPT). suggested by and ok deraadt@
2015-12-06don't allow opening of /dev/vmm if we are in an unsupported configurationMike Larkin
or if vmm0 didn't attach, prevents later panics if we try to use vmm in such a state. reported by many on tech/misc
2015-12-06unbreak kernel link if vmm isnt being built as part of the kernel.David Gwynne
2015-12-06restore VMM mode after resume from suspend/hibernateMike Larkin
2015-12-05Avoid using ifq_deq_rollback().Mark Kettenis
2015-12-05AMD Family 12h and later processors keep their APIC clock running in deeperMark Kettenis
C-states. Set the TMP_ARAT flag for these (which is Intel-specific) such that acpicpu(4) enables the deeper C-states on these CPUs. ok deraadt@
2015-12-04Add intr_barrier() just in case...Mark Kettenis
2015-12-04add a missing mtx_leave before a panic to give ddb/reboot a betterJonathan Gray
chance of working. ok deraadt@
2015-12-03Let the IP27 kernel build with DEBUG.Visa Hankala
2015-12-02Enable the DR1 region even with 32-bit page table entries. Those haveVisa Hankala
enough bits for addressing the region.
2015-12-02Clean up octeon memory region setup.Visa Hankala
Diff by miod@ during c2k15 Tested by jbg@, jasper@, pirofti@ OK jasper@, pirofti@
2015-12-02Add a padding in EFI_MEMORY_DESCRIPTOR to align fields properly on ia32.YASUOKA Masahiko
2015-12-02Add missing start_i386.S for ia32. Also start.S is renamed toYASUOKA Masahiko
start_amd64.S.
2015-12-01Change a lot of "else if" lines to single switch block.YASUOKA Masahiko
input by tobias
2015-12-01Pass M_NOWAIT when allocating a temporary page in vm_writepage() to beMartin Pieuchot
coherent with the rest of the allocations. While here report the correct errno if an allocation fails. ok mlarkin@
2015-12-01Instead of using a supplementary variable to check if we found a VCPUMartin Pieuchot
or a VM in an iteration, check against NULL. ok mlarkin@
2015-12-01Do not wait when allocating a page in vcpu_init().Martin Pieuchot
Should help with the possible hang when trying to create a VM when the host is out of memory. It also improves coherency as all the allocations in vmm(4) are done without sleeping. ok mlarkin@
2015-12-01KNFMartin Pieuchot
ok mlarkin@
2015-12-01Prettify dmesg output.Martin Pieuchot
ok reyk@, mlarkin@
2015-12-01Properly disable SVM until its support is added back.Martin Pieuchot
Should prevent a NULL dereference when initializing VM. ok mlarkin@
2015-12-01crunks of AvvionTheo de Raadt
2015-12-01Send solbourne to where the ...........Theo de Raadt
2015-12-01Send Aviion to same place as Nova IITheo de Raadt
discussed with jsg
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-08Oops, correct import this time.Miod Vallat
2006-04-27Oops, correct import this time.Miod Vallat
2006-04-18Oops, correct import this time.Miod Vallat
2015-11-29Disk size in blocks is LastBlock+1. Fix whitespace nit.Kenneth R Westerback
ok yasuoka@
2015-11-28Use the same function as kern/subr_disk.c and fdisk/mbr.c to checkKenneth R Westerback
for a GPT protective MBR. Better than mangling findopenbsd() to do the check. Tested & ok yasuoka@
2015-11-28Check the protective MBR stricter not to choose a broken GPT.YASUOKA Masahiko
test and ok gonzalo
2015-11-27Don't panic in pmap_enter() if we deplete the pool of pv entries and theMark Kettenis
PMAP_CANFAIL flag is set. Return ENOMEM instead.
2015-11-26Avoid setting mode to GOP if the mode is unchanged. Also don't panicYASUOKA Masahiko
if the setting mode is failed. reported and tested by Joe Gidi
2015-11-26Fix a typo in comment.YASUOKA Masahiko
2015-11-26init pat_default to 0 as it may potentially be used uninitialisedJonathan Gray
ok mlarkin@
2015-11-26Automatically start vmm(4) when the first VM is created and after theReyk Floeter
last VM is terminated. This allows to remove the explicit "vmm enable" / "vmm disable" (VMM_IOC_START / VMM_IOC_STOP) ioctls. You'll have to update kernel and userland for this change, as the kernel ABI changes. OK mpi@ mlarkin@
2015-11-25Don't bother keeping track of the resident count for the kernel pmap.Mark Kettenis
2015-11-25Simplify the setup of gather segments.Visa Hankala
2015-11-25Network drivers should not include <net/route.h> or <net/netisr.h>Martin Pieuchot