aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/vmm/vmm_host.h
Commit message (Collapse)AuthorAgeFilesLines
* amd64: move GDT into PCPU area.Konstantin Belousov2019-11-121-1/+1
| | | | | | | | | | | Reviewed by: jhb, markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D22302 Notes: svn path=/head/; revision=354646
* Use get_pcpu() to fetch the current CPU's pcpu pointer.John Baldwin2019-08-281-4/+1
| | | | | | | | | | This avoids encoding knowledge about how pcpu objects are allocated and is also a few instructions shorter. MFC after: 2 weeks Notes: svn path=/head/; revision=351591
* sys/amd64: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326257
* revert r315959 because it causes build problemsAndriy Gapon2017-03-271-2/+0
| | | | | | | | | | | | | The change introduced a dependency between genassym.c and header files generated from .m files, but that dependency is not specified in the make files. Also, the change could be not as useful as I thought it was. Reported by: dchagin, Manfred Antar <null@pozo.com>, and many others Notes: svn path=/head/; revision=316021
* specific end of interrupt implementation for AMD Local APICAndriy Gapon2017-03-251-0/+2
| | | | | | | | | | | | | | | | | The change is more intrusive than I would like because the feature requires that a vector number is written to a special register. Thus, now the vector number has to be provided to lapic_eoi(). It was readily available in the IO-APIC and MSI cases, but the IPI handlers required more work. Also, we now store the VMM IPI number in a global variable, so that it is available to the justreturn handler for the same reason. Reviewed by: kib MFC after: 6 weeks Differential Revision: https://reviews.freebsd.org/D9880 Notes: svn path=/head/; revision=315959
* Fix a variety of cosmetic typos and misspellingsConrad Meyer2017-01-151-1/+1
| | | | | | | | | | | No functional change. PR: 216096, 216097, 216098, 216101, 216102, 216106, 216109, 216110 Reported by: Bulat <bltsrc at mail.ru> Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=312235
* Add virtualized XSAVE support to bhyve which permits guests to use XSAVE andJohn Baldwin2014-02-081-0/+8
| | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=261638
* Corral all the host state associated with the virtual machine into its own file.Neel Natu2012-10-291-0/+75
This state is independent of the type of hardware assist used so there is really no need for it to be in Intel-specific code. Obtained from: NetApp Notes: svn path=/projects/bhyve/; revision=242275