svn commit: r366678 - head/sys/amd64/amd64

2020-10-13 Thread Tycho Nightingale
Author: tychon Date: Tue Oct 13 18:28:48 2020 New Revision: 366678 URL: https://svnweb.freebsd.org/changeset/base/366678 Log: eliminate possible race in parallel TLB shootdown IPI On the target side TLB shootdown IPI handler, prevent the compiler from performing a forward store

svn commit: r362540 - head/sys/net

2020-06-23 Thread Tycho Nightingale
Author: tychon Date: Tue Jun 23 13:57:53 2020 New Revision: 362540 URL: https://svnweb.freebsd.org/changeset/base/362540 Log: To avoid a startup script race change net.bpf.optimize_writers from CTLFLAG_RW to CTLFLAG_RWTUN to allow it to be modified by a loader tunable. Sponsored by:

svn commit: r346645 - in head/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src sys

2019-09-03 Thread Tycho Nightingale
Author: tychon Date: Wed Apr 24 20:30:45 2019 New Revision: 346645 URL: https://svnweb.freebsd.org/changeset/base/346645 Log: LinuxKPI should use bus_dma(9) to be compatible with an IOMMU Reviewed by: hselasky, kib Tested by:greg@unrelenting.technology Sponsored by: Dell EMC

svn commit: r346386 - in head/sys: dev/bge dev/pci dev/twa x86/iommu

2019-09-03 Thread Tycho Nightingale
Author: tychon Date: Fri Apr 19 13:43:33 2019 New Revision: 346386 URL: https://svnweb.freebsd.org/changeset/base/346386 Log: remove the 4GB boundary requirement on PCI DMA segments Reviewed by: kib Discussed with: jhb Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r346150 - head/sys/vm

2019-09-03 Thread Tycho Nightingale
Author: tychon Date: Fri Apr 12 12:46:25 2019 New Revision: 346150 URL: https://svnweb.freebsd.org/changeset/base/346150 Log: for a cache-only zone the destructor tries to destroy a non-existent keg Reviewed by: markj Sponsored by: Dell EMC Isilon Differential Revision:

Re: svn commit: r346150 - head/sys/vm

2019-09-03 Thread Tycho Nightingale
> On Apr 12, 2019, at 12:43 PM, Enji Cooper wrote: > > >> On Apr 12, 2019, at 5:46 AM, Tycho Nightingale wrote: >> >> Author: tychon >> Date: Fri Apr 12 12:46:25 2019 >> New Revision: 346150 >> URL: https://svnweb.freebsd.org/changeset/bas

svn commit: r346050 - head/tools/tools/ioat

2019-09-03 Thread Tycho Nightingale
Author: tychon Date: Tue Apr 9 10:33:18 2019 New Revision: 346050 URL: https://svnweb.freebsd.org/changeset/base/346050 Log: ioatcontrol(8) crc-copy flag bug and misc usage tweak Reviewed by: cem Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r345812 - in head: sys/dev/ioat tools/tools/ioat

2019-09-03 Thread Tycho Nightingale
Author: tychon Date: Tue Apr 2 19:06:25 2019 New Revision: 345812 URL: https://svnweb.freebsd.org/changeset/base/345812 Log: ioatcontrol(8) could exercise 8k-aligned copy with page-break, crc and crc-copy modes. Reviewed by: cem Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r345811 - head/sys/x86/iommu

2019-09-03 Thread Tycho Nightingale
Author: tychon Date: Tue Apr 2 18:50:49 2019 New Revision: 345811 URL: https://svnweb.freebsd.org/changeset/base/345811 Log: DMAR driver assumes all physical addresses are backed by a fully initialized struct vm_page. Reviewed by: kib Sponsored by: Dell EMC Isilon Differential

svn commit: r345813 - head/sys/dev/ioat

2019-09-03 Thread Tycho Nightingale
Author: tychon Date: Tue Apr 2 19:08:06 2019 New Revision: 345813 URL: https://svnweb.freebsd.org/changeset/base/345813 Log: ioat(4) should use bus_dma(9) for the operation source and destination addresses Reviewed by: cem Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r345777 - head/sys/dev/pci

2019-09-03 Thread Tycho Nightingale
Author: tychon Date: Mon Apr 1 19:08:05 2019 New Revision: 345777 URL: https://svnweb.freebsd.org/changeset/base/345777 Log: Devices behind downstream bridges should still get DMAR protection. Reviewed by: kib Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r345601 - head/sys/x86/iommu

2019-09-03 Thread Tycho Nightingale
Author: tychon Date: Wed Mar 27 20:15:51 2019 New Revision: 345601 URL: https://svnweb.freebsd.org/changeset/base/345601 Log: Use the BUS_DMA_NOWRITE flag to expose and create the read-only VT-d IOMMU mappings. Reviewed by: kib Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r348687 - head/sys/x86/iommu

2019-06-05 Thread Tycho Nightingale
Author: tychon Date: Wed Jun 5 13:08:21 2019 New Revision: 348687 URL: https://svnweb.freebsd.org/changeset/base/348687 Log: another occurrence where a very large dma mapping can cause integer overflow Submitted by: rlibby Sponsored by: Dell EMC Isilon Modified:

svn commit: r348571 - in head/sys: arm64/arm64 x86/iommu x86/x86

2019-06-03 Thread Tycho Nightingale
Author: tychon Date: Mon Jun 3 19:19:35 2019 New Revision: 348571 URL: https://svnweb.freebsd.org/changeset/base/348571 Log: very large dma mappings can cause integer overflow Reviewed by: kib Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r347903 - head/sys/dev/bge

2019-05-17 Thread Tycho Nightingale
Author: tychon Date: Fri May 17 13:08:12 2019 New Revision: 347903 URL: https://svnweb.freebsd.org/changeset/base/347903 Log: Remove unused define. Sponsored by: Dell EMC Isilon Modified: head/sys/dev/bge/if_bgereg.h Modified: head/sys/dev/bge/if_bgereg.h

Re: svn commit: r347890 - in head/sys/dev: aac bge

2019-05-16 Thread Tycho Nightingale
> On May 16, 2019, at 5:23 PM, Hans Petter Selasky wrote: > > On 2019-05-16 22:41, Tycho Nightingale wrote: >> Author: tychon >> Date: Thu May 16 20:41:28 2019 >> New Revision: 347890 >> URL: https://svnweb.freebsd.org/changeset/base/347890 >> Log: >

svn commit: r347896 - head/sys/dev/bge

2019-05-16 Thread Tycho Nightingale
Author: tychon Date: Thu May 16 22:27:38 2019 New Revision: 347896 URL: https://svnweb.freebsd.org/changeset/base/347896 Log: Fix integer overflow in r346386. Sponsored by: Dell EMC Isilon Modified: head/sys/dev/bge/if_bgereg.h Modified: head/sys/dev/bge/if_bgereg.h

svn commit: r347890 - in head/sys/dev: aac bge

2019-05-16 Thread Tycho Nightingale
Author: tychon Date: Thu May 16 20:41:28 2019 New Revision: 347890 URL: https://svnweb.freebsd.org/changeset/base/347890 Log: reinstate 4GB DMA boundary workarounds for bge and aac Reviewed by: kib Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r347836 - in head: sys/arm64/arm64 sys/arm64/include sys/compat/linuxkpi/common/src sys/sys sys/x86/include sys/x86/iommu sys/x86/x86 usr.sbin/camdd

2019-05-16 Thread Tycho Nightingale
Author: tychon Date: Thu May 16 17:41:16 2019 New Revision: 347836 URL: https://svnweb.freebsd.org/changeset/base/347836 Log: Allow loading the same DMA address multiple times without any prior unload for the LinuxKPI. Reviewed by: kib, zeising Sponsored by: Dell EMC Isilon

Re: svn commit: r346645 - in head/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src sys

2019-05-07 Thread Tycho Nightingale
Hi, > On May 7, 2019, at 9:13 PM, Conrad Meyer wrote: > > Hi Tycho, > > On Wed, Apr 24, 2019 at 1:31 PM Tycho Nightingale wrote: >> >> Author: tychon >> Date: Wed Apr 24 20:30:45 2019 >> New Revision: 346645 >> URL: https://svnweb.freebsd.org/c

svn commit: r347168 - in head/sys: dev/nvdimm x86/iommu

2019-05-05 Thread Tycho Nightingale
Author: tychon Date: Mon May 6 00:57:05 2019 New Revision: 347168 URL: https://svnweb.freebsd.org/changeset/base/347168 Log: zero inputs to vm_page_initfake() for predictable results Reviewed by: kib Submitted by: Anton Rang Sponsored by: Dell EMC Isilon Differential Revision:

Re: svn commit: r346958 - head/sys/compat/linuxkpi/common/src

2019-04-30 Thread Tycho Nightingale
> On Apr 30, 2019, at 11:24 AM, Warner Losh wrote: > > > On Tue, Apr 30, 2019 at 9:17 AM Hans Petter Selasky > wrote: > On 4/30/19 3:10 PM, Niclas Zeising wrote: > > On 2019-04-30 12:41, Hans Petter Selasky wrote: > >> Author: hselasky > >> Date: Tue Apr 30 10:41:20

Re: svn commit: r346386 - in head/sys: dev/bge dev/pci dev/twa x86/iommu

2019-04-25 Thread Tycho Nightingale
>>>> >>>> On Thu, Apr 25, 2019 at 3:17 PM Ryan Stone wrote: >>>>> >>>>> This change makes me *very* uncomfortable. It was originally brought >>>>> in due to issues with Adaptec RAID cards using the aac(9) driver. The

Re: svn commit: r346687 - head/sys/compat/linuxkpi/common/src

2019-04-25 Thread Tycho Nightingale
> On Apr 25, 2019, at 2:50 PM, John Baldwin wrote: > > On 4/25/19 11:43 AM, Konstantin Belousov wrote: >> On Thu, Apr 25, 2019 at 06:13:56PM +, Tycho Nightingale wrote: >>> Author: tychon >>> Date: Thu Apr 25 18:13:55 2019 >>> New Revision:

svn commit: r346687 - head/sys/compat/linuxkpi/common/src

2019-04-25 Thread Tycho Nightingale
Author: tychon Date: Thu Apr 25 18:13:55 2019 New Revision: 346687 URL: https://svnweb.freebsd.org/changeset/base/346687 Log: LinuxKPI buildfix for ppc64 after r346645. Proposed by: hselasky Sponsored by: Dell EMC Isilon Modified: head/sys/compat/linuxkpi/common/src/linux_pci.c

Re: svn commit: r346645 - in head/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src sys

2019-04-25 Thread Tycho Nightingale
> On Apr 25, 2019, at 5:13 AM, Hans Petter Selasky wrote: > > On 4/25/19 8:09 AM, Li-Wen Hsu wrote: >> On Thu, Apr 25, 2019 at 5:31 AM Tycho Nightingale wrote: >>> >>> Author: tychon >>> Date: Wed Apr 24 20:30:45 2019 >>> New Revision: 3

svn commit: r346645 - in head/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src sys

2019-04-24 Thread Tycho Nightingale
Author: tychon Date: Wed Apr 24 20:30:45 2019 New Revision: 346645 URL: https://svnweb.freebsd.org/changeset/base/346645 Log: LinuxKPI should use bus_dma(9) to be compatible with an IOMMU Reviewed by: hselasky, kib Tested by:greg@unrelenting.technology Sponsored by: Dell EMC

svn commit: r346386 - in head/sys: dev/bge dev/pci dev/twa x86/iommu

2019-04-19 Thread Tycho Nightingale
Author: tychon Date: Fri Apr 19 13:43:33 2019 New Revision: 346386 URL: https://svnweb.freebsd.org/changeset/base/346386 Log: remove the 4GB boundary requirement on PCI DMA segments Reviewed by: kib Discussed with: jhb Sponsored by: Dell EMC Isilon Differential Revision:

Re: svn commit: r346150 - head/sys/vm

2019-04-12 Thread Tycho Nightingale
> On Apr 12, 2019, at 12:43 PM, Enji Cooper wrote: > > >> On Apr 12, 2019, at 5:46 AM, Tycho Nightingale wrote: >> >> Author: tychon >> Date: Fri Apr 12 12:46:25 2019 >> New Revision: 346150 >> URL: https://svnweb.freebsd.org/changeset/bas

svn commit: r346150 - head/sys/vm

2019-04-12 Thread Tycho Nightingale
Author: tychon Date: Fri Apr 12 12:46:25 2019 New Revision: 346150 URL: https://svnweb.freebsd.org/changeset/base/346150 Log: for a cache-only zone the destructor tries to destroy a non-existent keg Reviewed by: markj Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r346050 - head/tools/tools/ioat

2019-04-09 Thread Tycho Nightingale
Author: tychon Date: Tue Apr 9 10:33:18 2019 New Revision: 346050 URL: https://svnweb.freebsd.org/changeset/base/346050 Log: ioatcontrol(8) crc-copy flag bug and misc usage tweak Reviewed by: cem Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r345813 - head/sys/dev/ioat

2019-04-02 Thread Tycho Nightingale
Author: tychon Date: Tue Apr 2 19:08:06 2019 New Revision: 345813 URL: https://svnweb.freebsd.org/changeset/base/345813 Log: ioat(4) should use bus_dma(9) for the operation source and destination addresses Reviewed by: cem Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r345812 - in head: sys/dev/ioat tools/tools/ioat

2019-04-02 Thread Tycho Nightingale
Author: tychon Date: Tue Apr 2 19:06:25 2019 New Revision: 345812 URL: https://svnweb.freebsd.org/changeset/base/345812 Log: ioatcontrol(8) could exercise 8k-aligned copy with page-break, crc and crc-copy modes. Reviewed by: cem Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r345811 - head/sys/x86/iommu

2019-04-02 Thread Tycho Nightingale
Author: tychon Date: Tue Apr 2 18:50:49 2019 New Revision: 345811 URL: https://svnweb.freebsd.org/changeset/base/345811 Log: DMAR driver assumes all physical addresses are backed by a fully initialized struct vm_page. Reviewed by: kib Sponsored by: Dell EMC Isilon Differential

svn commit: r345777 - head/sys/dev/pci

2019-04-01 Thread Tycho Nightingale
Author: tychon Date: Mon Apr 1 19:08:05 2019 New Revision: 345777 URL: https://svnweb.freebsd.org/changeset/base/345777 Log: Devices behind downstream bridges should still get DMAR protection. Reviewed by: kib Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r345601 - head/sys/x86/iommu

2019-03-27 Thread Tycho Nightingale
Author: tychon Date: Wed Mar 27 20:15:51 2019 New Revision: 345601 URL: https://svnweb.freebsd.org/changeset/base/345601 Log: Use the BUS_DMA_NOWRITE flag to expose and create the read-only VT-d IOMMU mappings. Reviewed by: kib Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r343912 - head/sys/dev/pms/freebsd/driver/common

2019-02-08 Thread Tycho Nightingale
Author: tychon Date: Fri Feb 8 16:05:38 2019 New Revision: 343912 URL: https://svnweb.freebsd.org/changeset/base/343912 Log: pms(4) should use bus_get_dma_tag() to get parent tag. Reviewed by: imp Sponsored by: Dell EMC Isilon Modified:

svn commit: r334856 - head/sys/amd64/amd64

2018-06-08 Thread Tycho Nightingale
Author: tychon Date: Fri Jun 8 20:35:58 2018 New Revision: 334856 URL: https://svnweb.freebsd.org/changeset/base/334856 Log: Don't bother looking for non-executable pages when a process is excluded from PTI. Reviewed by: kib Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r333059 - in head/sys/amd64: amd64 include

2018-04-27 Thread Tycho Nightingale
Author: tychon Date: Fri Apr 27 12:44:20 2018 New Revision: 333059 URL: https://svnweb.freebsd.org/changeset/base/333059 Log: Expand the checks for UCR3 == PMAP_NO_CR3 to enable processes to be excluded from PTI. Reviewed by: kib Sponsored by: Dell EMC Isilon Differential Revision:

Re: svn commit: r332994 - head/sys/amd64/amd64

2018-04-25 Thread Tycho Nightingale
> On Apr 25, 2018, at 10:30 AM, Oliver Pinter <oliver.pin...@hardenedbsd.org> > wrote: > > On Wednesday, April 25, 2018, Tycho Nightingale <tyc...@freebsd.org > <mailto:tyc...@freebsd.org>> wrote: > Author: tychon > Date: Wed Apr 25 14:21:13 2

svn commit: r332994 - head/sys/amd64/amd64

2018-04-25 Thread Tycho Nightingale
Author: tychon Date: Wed Apr 25 14:21:13 2018 New Revision: 332994 URL: https://svnweb.freebsd.org/changeset/base/332994 Log: If a trap is encountered upon executing iretq from within doreti() the hardware will ensure the stack pointer is aligned to a 16-byte boundary before saving the

svn commit: r332479 - in head/sys/amd64: include vmm vmm/intel

2018-04-13 Thread Tycho Nightingale
Author: tychon Date: Fri Apr 13 17:23:05 2018 New Revision: 332479 URL: https://svnweb.freebsd.org/changeset/base/332479 Log: Add SDT probes to vmexit on Intel. Submitted by: domagoj.stolfa_gmail.com Reviewed by: grehan, tychon Sponsored by: DARPA/AFRL Differential Revision:

Re: svn commit: r328011 - in head/sys/amd64/vmm: amd intel

2018-03-09 Thread Tycho Nightingale
> On Mar 9, 2018, at 9:26 AM, Ed Maste <ema...@freebsd.org> wrote: > > On 8 March 2018 at 21:57, Kubilay Kocak <ko...@freebsd.org> wrote: >> On 9/03/2018 8:57 am, Ed Maste wrote: >>> On 15 January 2018 at 13:37, Tycho Nightingale <tyc...@freebsd.org> wro

svn commit: r330615 - in head/sys/amd64: include vmm/intel

2018-03-07 Thread Tycho Nightingale
Author: tychon Date: Wed Mar 7 18:03:22 2018 New Revision: 330615 URL: https://svnweb.freebsd.org/changeset/base/330615 Log: Fix a lock recursion introduced in r327065. Reported by: kmacy Reviewed by: grehan, jhb Sponsored by: Dell EMC Isilon Differential Revision:

Re: svn commit: r329162 - in head/sys/amd64/vmm: amd intel

2018-02-12 Thread Tycho Nightingale
Hi, > On Feb 12, 2018, at 10:37 AM, Shawn Webb <shawn.w...@hardenedbsd.org> wrote: > > On Mon, Feb 12, 2018 at 02:45:27PM +, Tycho Nightingale wrote: >> Author: tychon >> Date: Mon Feb 12 14:45:27 2018 >> New Revision: 329162 >> URL: https://s

svn commit: r329162 - in head/sys/amd64/vmm: amd intel

2018-02-12 Thread Tycho Nightingale
Author: tychon Date: Mon Feb 12 14:45:27 2018 New Revision: 329162 URL: https://svnweb.freebsd.org/changeset/base/329162 Log: Provide further mitigation against CVE-2017-5715 by flushing the return stack buffer (RSB) upon returning from the guest. This was inspired by this linux commit:

svn commit: r328011 - in head/sys/amd64/vmm: amd intel

2018-01-15 Thread Tycho Nightingale
Author: tychon Date: Mon Jan 15 18:37:03 2018 New Revision: 328011 URL: https://svnweb.freebsd.org/changeset/base/328011 Log: Provide some mitigation against CVE-2017-5715 by clearing registers upon returning from the guest which aren't immediately clobbered by the host. This eradicates

svn commit: r327065 - head/sys/amd64/vmm/intel

2017-12-21 Thread Tycho Nightingale
Author: tychon Date: Thu Dec 21 18:30:11 2017 New Revision: 327065 URL: https://svnweb.freebsd.org/changeset/base/327065 Log: Recognize a pending virtual interrupt while emulating the halt instruction. Reviewed by: grehan, rgrimes Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r316304 - head/lib/libprocstat

2017-03-30 Thread Tycho Nightingale
Author: tychon Date: Thu Mar 30 20:42:16 2017 New Revision: 316304 URL: https://svnweb.freebsd.org/changeset/base/316304 Log: Reorder includes to placate MIPS build. Reported by: markj Sponsored by: Dell EMC Isilon Modified: head/lib/libprocstat/libprocstat.c Modified:

Re: svn commit: r316286 - in head: lib/libprocstat sys/kern sys/sys usr.bin/gcore usr.bin/procstat

2017-03-30 Thread Tycho Nightingale
Additionally: Differential Revision: https://reviews.freebsd.org/D9995 Tycho > On Mar 30, 2017, at 2:21 PM, Tycho Nightingale <tyc...@freebsd.org> wrote: > > Author: tychon > Date: Thu Mar 30 18:21:36 2017 > New Revision: 316286 > URL: https://svnweb.freebsd.o

svn commit: r316286 - in head: lib/libprocstat sys/kern sys/sys usr.bin/gcore usr.bin/procstat

2017-03-30 Thread Tycho Nightingale
Author: tychon Date: Thu Mar 30 18:21:36 2017 New Revision: 316286 URL: https://svnweb.freebsd.org/changeset/base/316286 Log: Add support for capturing 'struct ptrace_lwpinfo' for signals resulting in a process dumping core in the corefile. Also extend procstat to view select members of

svn commit: r284877 - head/sys/amd64/vmm

2015-06-26 Thread Tycho Nightingale
Author: tychon Date: Fri Jun 26 18:00:29 2015 New Revision: 284877 URL: https://svnweb.freebsd.org/changeset/base/284877 Log: verify_gla() needs to account for non-zero segment base addresses. Reviewed by: neel Modified: head/sys/amd64/vmm/vmm_instruction_emul.c Modified:

svn commit: r284174 - head/sys/amd64/vmm/intel

2015-06-08 Thread Tycho Nightingale
Author: tychon Date: Tue Jun 9 00:14:47 2015 New Revision: 284174 URL: https://svnweb.freebsd.org/changeset/base/284174 Log: Support guest writes to the TSC by enabling the use TSC offsetting execution control and writing the difference between the host TSC and the guest TSC into the TSC

svn commit: r283264 - head/usr.sbin/bhyve

2015-05-21 Thread Tycho Nightingale
Author: tychon Date: Thu May 21 20:11:52 2015 New Revision: 283264 URL: https://svnweb.freebsd.org/changeset/base/283264 Log: The 'hostbridge' device exists to allow guests to infer msi/msix capablity by advertising pcie capability. Since the 'hostbridge' device isn't a true pci-to-pci

svn commit: r281987 - head/sys/amd64/vmm

2015-04-25 Thread Tycho Nightingale
Author: tychon Date: Sat Apr 25 19:02:06 2015 New Revision: 281987 URL: https://svnweb.freebsd.org/changeset/base/281987 Log: STOS/STOSB/STOSW/STOSD/STOSQ instruction emulation. Reviewed by: neel Modified: head/sys/amd64/vmm/vmm_instruction_emul.c Modified:

svn commit: r281561 - head/usr.sbin/bhyve

2015-04-15 Thread Tycho Nightingale
Author: tychon Date: Wed Apr 15 18:49:03 2015 New Revision: 281561 URL: https://svnweb.freebsd.org/changeset/base/281561 Log: Prior to aborting due to an ioport error, it is always interesting to see what the guest's %rip is. Reviewed by: grehan Modified:

svn commit: r281145 - head/sys/amd64/vmm

2015-04-06 Thread Tycho Nightingale
Author: tychon Date: Mon Apr 6 12:22:41 2015 New Revision: 281145 URL: https://svnweb.freebsd.org/changeset/base/281145 Log: Enhance the support for Group 1 Extended opcodes: * Implemement the 0x81 and 0x83 CMP instructions. * Implemement the 0x83 AND instruction. * Implemement

svn commit: r280968 - head/usr.sbin/bhyve

2015-04-01 Thread Tycho Nightingale
Author: tychon Date: Wed Apr 1 20:36:07 2015 New Revision: 280968 URL: https://svnweb.freebsd.org/changeset/base/280968 Log: Prior to aborting due to an instruction emulation error, it is always interesting to see what the guest's %rip and instruction bytes are. Reviewed by: grehan

svn commit: r280929 - in head: lib/libvmmapi sys/amd64/include sys/amd64/vmm

2015-03-31 Thread Tycho Nightingale
Author: tychon Date: Wed Apr 1 00:15:31 2015 New Revision: 280929 URL: https://svnweb.freebsd.org/changeset/base/280929 Log: Fix MOVS instruction memory to MMIO emulation. Currently updates to %rdi, %rsi, etc are inadvertently bypassed along with the check to see if the instruction needs

svn commit: r280447 - in head/sys/amd64: include vmm vmm/amd vmm/intel

2015-03-24 Thread Tycho Nightingale
Author: tychon Date: Tue Mar 24 17:12:36 2015 New Revision: 280447 URL: https://svnweb.freebsd.org/changeset/base/280447 Log: When fetching an instruction in non-64bit mode, consider the value of the code segment base address. Also if an instruction doesn't support a mod R/M (modRM)

svn commit: r279683 - head/sys/amd64/vmm/io

2015-03-05 Thread Tycho Nightingale
Author: tychon Date: Fri Mar 6 02:05:45 2015 New Revision: 279683 URL: https://svnweb.freebsd.org/changeset/base/279683 Log: When ICW1 is issued the edge sense circuit is reset which means that following an initialization a low-to-high transistion is necesary to generate an interrupt.

svn commit: r274330 - head/usr.sbin/bhyve

2014-11-09 Thread Tycho Nightingale
Author: tychon Date: Sun Nov 9 21:08:52 2014 New Revision: 274330 URL: https://svnweb.freebsd.org/changeset/base/274330 Log: To allow a request to be submitted from within the callback routine of a completing one increase the total by 1 but don't advertise it. Reviewed by: grehan

svn commit: r274045 - head/usr.sbin/bhyve

2014-11-03 Thread Tycho Nightingale
Author: tychon Date: Mon Nov 3 12:55:31 2014 New Revision: 274045 URL: https://svnweb.freebsd.org/changeset/base/274045 Log: If the start bit, PxCMD.ST, is cleared and nothing is in-flight then PxCI, PxSACT, PxCMD.CCS and PxCMD.CR should be 0. Reviewed by: grehan Modified:

svn commit: r274076 - head/usr.sbin/bhyve

2014-11-03 Thread Tycho Nightingale
Author: tychon Date: Tue Nov 4 01:06:33 2014 New Revision: 274076 URL: https://svnweb.freebsd.org/changeset/base/274076 Log: Improve the ability to cancel an in-flight request by using an interrupt, via SIGCONT, to force the read or write system call to return prematurely. Reviewed

svn commit: r273212 - head/usr.sbin/bhyve

2014-10-17 Thread Tycho Nightingale
Author: tychon Date: Fri Oct 17 11:37:50 2014 New Revision: 273212 URL: https://svnweb.freebsd.org/changeset/base/273212 Log: Support stopping and restarting the AHCI command list via toggling PxCMD.ST from '1' to '0' and back. This allows the driver a chance to recover if for instance a

svn commit: r270326 - head/usr.sbin/bhyve

2014-08-22 Thread Tycho Nightingale
Author: tychon Date: Fri Aug 22 13:01:22 2014 New Revision: 270326 URL: http://svnweb.freebsd.org/changeset/base/270326 Log: Fix a recursive lock acquisition in vi_reset_dev(). Reviewed by: grehan Modified: head/usr.sbin/bhyve/virtio.c Modified: head/usr.sbin/bhyve/virtio.c

svn commit: r269317 - head/usr.sbin/bhyve

2014-07-30 Thread Tycho Nightingale
Author: tychon Date: Wed Jul 30 18:47:31 2014 New Revision: 269317 URL: http://svnweb.freebsd.org/changeset/base/269317 Log: Commands which encounter a fatal error shouldn't be marked as completed. Furthermore, provide an indication of the current command so it can be determined which one

svn commit: r267921 - head/sys/amd64/vmm

2014-06-26 Thread Tycho Nightingale
Author: tychon Date: Thu Jun 26 17:15:41 2014 New Revision: 267921 URL: http://svnweb.freebsd.org/changeset/base/267921 Log: Add support for emulating the move instruction: mov r/m8, imm8. Reviewed by: neel Modified: head/sys/amd64/vmm/vmm_instruction_emul.c Modified:

svn commit: r267558 - head/sys/amd64/vmm/intel

2014-06-16 Thread Tycho Nightingale
Author: tychon Date: Mon Jun 16 22:59:18 2014 New Revision: 267558 URL: http://svnweb.freebsd.org/changeset/base/267558 Log: Bring an overly enthusiastic KASSERT inline with the Intel SDM. Reviewed by: neel Modified: head/sys/amd64/vmm/intel/vmx.c Modified:

svn commit: r267338 - head/sys/amd64/include

2014-06-10 Thread Tycho Nightingale
Author: tychon Date: Tue Jun 10 18:46:00 2014 New Revision: 267338 URL: http://svnweb.freebsd.org/changeset/base/267338 Log: Replace enum forward declarations with complete definitions. Reviewed by: neel Modified: head/sys/amd64/include/vmm.h Modified: head/sys/amd64/include/vmm.h

svn commit: r267294 - head/usr.sbin/bhyve

2014-06-09 Thread Tycho Nightingale
Author: tychon Date: Mon Jun 9 19:55:50 2014 New Revision: 267294 URL: http://svnweb.freebsd.org/changeset/base/267294 Log: r267169 should apply to 64-bit BARs as well. Reviewed by: neel Modified: head/usr.sbin/bhyve/pci_emul.c Modified: head/usr.sbin/bhyve/pci_emul.c

svn commit: r267169 - head/usr.sbin/bhyve

2014-06-06 Thread Tycho Nightingale
Author: tychon Date: Fri Jun 6 16:18:37 2014 New Revision: 267169 URL: http://svnweb.freebsd.org/changeset/base/267169 Log: Some devices (e.g. Intel AHCI and NICs) support quad-word access to register pairs where two 32-bit registers make up a larger logical size. Support those access by

svn commit: r267178 - in head/sys/amd64/vmm: intel io

2014-06-06 Thread Tycho Nightingale
Author: tychon Date: Fri Jun 6 18:23:49 2014 New Revision: 267178 URL: http://svnweb.freebsd.org/changeset/base/267178 Log: Support guest accesses to %cr8. Reviewed by: neel Modified: head/sys/amd64/vmm/intel/vmx.c head/sys/amd64/vmm/io/vlapic.c head/sys/amd64/vmm/io/vlapic.h

svn commit: r266910 - head/sys/amd64/vmm/intel

2014-05-30 Thread Tycho Nightingale
Author: tychon Date: Fri May 30 23:37:31 2014 New Revision: 266910 URL: http://svnweb.freebsd.org/changeset/base/266910 Log: If VMX isn't enabled so long as the lock bit isn't set yet in MSR IA32_FEATURE_CONTROL it still can be. Approved by: grehan (co-mentor) Modified:

svn commit: r264916 - head/usr.sbin/bhyve

2014-04-25 Thread Tycho Nightingale
/bhyve/atkbdc.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.sbin/bhyve/atkbdc.cFri Apr 25 13:38:18 2014 (r264916) @@ -0,0 +1,85 @@ +/*- + * Copyright (c) 2014 Tycho

svn commit: r264768 - in head: sys/amd64/vmm usr.sbin/bhyve

2014-04-22 Thread Tycho Nightingale
Author: tychon Date: Tue Apr 22 16:13:56 2014 New Revision: 264768 URL: http://svnweb.freebsd.org/changeset/base/264768 Log: Factor out common ioport handler code for better hygiene -- pointed out by neel@. Approved by: neel (co-mentor) Modified: head/sys/amd64/vmm/vmm_ioport.c

svn commit: r264648 - in head: sys/amd64/vmm sys/amd64/vmm/io usr.sbin/bhyve

2014-04-18 Thread Tycho Nightingale
Author: tychon Date: Fri Apr 18 15:22:56 2014 New Revision: 264648 URL: http://svnweb.freebsd.org/changeset/base/264648 Log: Respect the destination operand size of the 'Input from Port' instruction. Approved by: grehan (co-mentor) Modified: head/sys/amd64/vmm/io/vatpic.c

svn commit: r264650 - head/usr.sbin/bhyve

2014-04-18 Thread Tycho Nightingale
Author: tychon Date: Fri Apr 18 16:01:19 2014 New Revision: 264650 URL: http://svnweb.freebsd.org/changeset/base/264650 Log: Fix ACPI DSDT indentation cosmetic breakage introduced in r264631 -- pointed out by jhb@. Approved by: grehan (co-mentor) Modified:

svn commit: r264651 - head/sys/amd64/vmm/io

2014-04-18 Thread Tycho Nightingale
Author: tychon Date: Fri Apr 18 16:05:12 2014 New Revision: 264651 URL: http://svnweb.freebsd.org/changeset/base/264651 Log: Add support for the PIT 'readback' command -- based on a patch by grehan@. Approved by: grehan (co-mentor) Modified: head/sys/amd64/vmm/io/vatpit.c Modified:

svn commit: r264631 - in head: sys/amd64/vmm sys/amd64/vmm/io usr.sbin/bhyve

2014-04-17 Thread Tycho Nightingale
Author: tychon Date: Fri Apr 18 00:02:06 2014 New Revision: 264631 URL: http://svnweb.freebsd.org/changeset/base/264631 Log: Add support for reading the PIT Counter 2 output signal via the NMI Status and Control register at port 0x61. Be more conservative about catching up callouts that

svn commit: r264501 - head/sys/amd64/vmm

2014-04-15 Thread Tycho Nightingale
Author: tychon Date: Tue Apr 15 15:11:10 2014 New Revision: 264501 URL: http://svnweb.freebsd.org/changeset/base/264501 Log: Add support for emulating the byte move and sign extend instructions: movsx r/m8, r32 and movsx r/m8, r64. Approved by: grehan (co-mentor) Modified:

svn commit: r264509 - head/sys/amd64/vmm

2014-04-15 Thread Tycho Nightingale
Author: tychon Date: Tue Apr 15 17:06:26 2014 New Revision: 264509 URL: http://svnweb.freebsd.org/changeset/base/264509 Log: Local APIC access via 32-bit naturally-aligned loads is merely suggested in the SDM. Since some OSes have implemented otherwise don't be too rigorous in enforcing

svn commit: r264468 - in head: lib/libvmmapi sys/amd64/vmm/io usr.sbin/bhyve

2014-04-14 Thread Tycho Nightingale
Author: tychon Date: Mon Apr 14 19:00:20 2014 New Revision: 264468 URL: http://svnweb.freebsd.org/changeset/base/264468 Log: Add support for emulating the slave PIC. Reviewed by: grehan, jhb Approved by: grehan (co-mentor) Modified: head/lib/libvmmapi/vmmapi.h

svn commit: r264347 - head/sys/amd64/vmm

2014-04-11 Thread Tycho Nightingale
Author: tychon Date: Fri Apr 11 18:19:21 2014 New Revision: 264347 URL: http://svnweb.freebsd.org/changeset/base/264347 Log: Account for the plus 1 encoding of the CPUID Function 4 reported core per package and cache sharing values. Approved by: grehan (co-mentor) Modified:

svn commit: r264302 - head/usr.sbin/bhyve

2014-04-09 Thread Tycho Nightingale
Author: tychon Date: Wed Apr 9 14:50:55 2014 New Revision: 264302 URL: http://svnweb.freebsd.org/changeset/base/264302 Log: Constrain the amount of data returned to what is actually available not the size of the buffer. Approved by: grehan (co-mentor) Modified:

svn commit: r263744 - in head: sys/amd64/include sys/amd64/vmm sys/amd64/vmm/io sys/modules/vmm usr.sbin/bhyve

2014-03-25 Thread Tycho Nightingale
/vatpit.c Tue Mar 25 19:20:34 2014 (r263744) @@ -0,0 +1,370 @@ +/*- + * Copyright (c) 2014 Tycho Nightingale tycho.nighting...@pluribusnetworks.com + * Copyright (c) 2011 NetApp, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without

svn commit: r263236 - head/usr.sbin/bhyve

2014-03-16 Thread Tycho Nightingale
Author: tychon Date: Sun Mar 16 12:31:28 2014 New Revision: 263236 URL: http://svnweb.freebsd.org/changeset/base/263236 Log: Support the bootloader's single 16-bit 'outw' access to the Divisor Latch MSB and LSB registers. Approved by: neel (co-mentor) Modified:

svn commit: r263238 - head/usr.sbin/bhyve

2014-03-16 Thread Tycho Nightingale
Author: tychon Date: Sun Mar 16 12:33:40 2014 New Revision: 263238 URL: http://svnweb.freebsd.org/changeset/base/263238 Log: Though there currently isn't a way to insert new media into an ATAPI drive, at least pretend to support Asynchronous Notification (AN) to avoid a guest needlessly

svn commit: r263211 - in head/sys/amd64: include vmm vmm/intel vmm/io

2014-03-15 Thread Tycho Nightingale
Author: tychon Date: Sat Mar 15 23:09:34 2014 New Revision: 263211 URL: http://svnweb.freebsd.org/changeset/base/263211 Log: Fix a race wherein the source of an interrupt vector is wrongly attributed if an ExtINT arrives during interrupt injection. Also, fix a spurious interrupt if the

svn commit: r263035 - in head: lib/libvmmapi sys/amd64/include sys/amd64/vmm sys/amd64/vmm/intel sys/amd64/vmm/io sys/modules/vmm usr.sbin/bhyve

2014-03-11 Thread Tycho Nightingale
11 16:56:00 2014 (r263035) @@ -0,0 +1,595 @@ +/*- + * Copyright (c) 2014 Tycho Nightingale tycho.nighting...@pluribusnetworks.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following

svn commit: r263054 - head/sys/amd64/vmm/io

2014-03-11 Thread Tycho Nightingale
Author: tychon Date: Tue Mar 11 22:12:12 2014 New Revision: 263054 URL: http://svnweb.freebsd.org/changeset/base/263054 Log: Don't try to return a vector to a caller that only cares if a vector is pending or not. Approved by: neel (co-mentor) Modified: head/sys/amd64/vmm/io/vlapic.c

svn commit: r262744 - head/usr.sbin/bhyve

2014-03-04 Thread Tycho Nightingale
Mar 4 17:12:06 2014 (r262744) @@ -0,0 +1,832 @@ +/*- + * Copyright (c) 2014 Tycho Nightingale tycho.nighting...@pluribusnetworks.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided

svn commit: r262274 - head/usr.sbin/bhyve

2014-02-20 Thread Tycho Nightingale
Author: tychon Date: Fri Feb 21 01:15:26 2014 New Revision: 262274 URL: http://svnweb.freebsd.org/changeset/base/262274 Log: Avoid clobbering the counter mode when issuing a latch command. Approved by: grehan (co-mentor) Modified: head/usr.sbin/bhyve/pit_8254.c Modified:

svn commit: r261785 - head/usr.sbin/bhyve

2014-02-11 Thread Tycho Nightingale
Author: tychon Date: Wed Feb 12 00:32:14 2014 New Revision: 261785 URL: http://svnweb.freebsd.org/changeset/base/261785 Log: Provide an indication a PIO Setup Device to Host FIS occurred while executing the IDENTIFY DEVICE and IDENTIFY PACKET DEVICE commands. Also, provide an indication

svn commit: r261503 - head/sys/amd64/vmm

2014-02-04 Thread Tycho Nightingale
Author: tychon Date: Wed Feb 5 02:01:08 2014 New Revision: 261503 URL: http://svnweb.freebsd.org/changeset/base/261503 Log: Add support for emulating the byte move and zero extend instructions: mov r/m8, r32 and mov r/m8, r64. Approved by: neel (co-mentor) Modified:

svn commit: r260997 - head/share/misc

2014-01-21 Thread Tycho Nightingale
trhodes [label=Tom Rhodes\ntrho...@freebsd.org\n2002/05/28] trociny [label=Mikolaj Golub\ntroc...@freebsd.org\n2011/03/10] tuexen [label=Michael Tuexen\ntue...@freebsd.org\n2009/06/06] +tychon [label=Tycho Nightingale\ntyc...@freebsd.org\n2014/01/21] ume [label=Hajimu UMEMOTO\n...@freebsd.org

svn commit: r260999 - head/usr.sbin/bhyve

2014-01-21 Thread Tycho Nightingale
Author: tychon Date: Wed Jan 22 01:56:49 2014 New Revision: 260999 URL: http://svnweb.freebsd.org/changeset/base/260999 Log: Increase the block-layer backend maximum number of requests to match the AHCI command queue depth. This allows a slew of commands issued by a Linux guest to be

svn commit: r261000 - head/usr.sbin/bhyve

2014-01-21 Thread Tycho Nightingale
Author: tychon Date: Wed Jan 22 01:57:52 2014 New Revision: 261000 URL: http://svnweb.freebsd.org/changeset/base/261000 Log: Fix issue with stale fields from a recycled request pulled off the freelist. Approved by: grehan (co-mentor) Modified: head/usr.sbin/bhyve/pci_ahci.c Modified: