freebsd-skq/sys/amd64/vmm/io
Neel Natu 485b3300cc Implement guest vcpu pinning using 'pthread_setaffinity_np(3)'.
Prior to this change pinning was implemented via an ioctl (VM_SET_PINNING)
that called 'sched_bind()' on behalf of the user thread.

The ULE implementation of 'sched_bind()' bumps up 'td_pinned' which in turn
runs afoul of the assertion '(td_pinned == 0)' in userret().

Using the cpuset affinity to implement pinning of the vcpu threads works with
both 4BSD and ULE schedulers and has the happy side-effect of getting rid
of a bunch of code in vmm.ko.

Discussed with:	grehan
2013-02-11 20:36:07 +00:00
..
iommu.c Allocate memory pages for the guest from the host's free page queue. 2012-10-08 23:41:26 +00:00
iommu.h Allocate memory pages for the guest from the host's free page queue. 2012-10-08 23:41:26 +00:00
ppt.c Implement guest vcpu pinning using 'pthread_setaffinity_np(3)'. 2013-02-11 20:36:07 +00:00
ppt.h MSI-x interrupt support for PCI pass-thru devices. 2012-04-28 16:28:00 +00:00
vdev.c
vdev.h
vlapic.c Modify the default behavior of bhyve such that it no longer forces the use of 2012-12-16 01:20:08 +00:00
vlapic.h Calculate the number of host ticks until the next guest timer interrupt. 2012-10-20 08:23:05 +00:00