Re: svn commit: r192937 - head/cddl/contrib/opensolaris/cmd/lockstat

2009-05-27 Thread Peter Grehan
Fix lockstat breakage to arm/powerpc buildworld. Thanks ! later, Peter. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org

svn commit: r193909 - in head/sys/powerpc: aim powerpc

2009-06-10 Thread Peter Grehan
Author: grehan Date: Wed Jun 10 12:47:54 2009 New Revision: 193909 URL: http://svn.freebsd.org/changeset/base/193909 Log: Get the gdb/psim emulator functioning again. aim/machdep.c: - the RI status register bit needs to be set when doing the mtmsrd 64-bit instruction

svn commit: r234194 - head/sys/dev/uart

2012-04-12 Thread Peter Grehan
Author: grehan Date: Thu Apr 12 18:46:48 2012 New Revision: 234194 URL: http://svn.freebsd.org/changeset/base/234194 Log: Complete polled-mode operation by using a callout if the device will be used in polled-mode. The callout invokes uart_intr, which rearms the timeout. Implemented for

svn commit: r234270 - in head/sys/dev/virtio: . balloon block network pci

2012-04-13 Thread Peter Grehan
Author: grehan Date: Sat Apr 14 05:48:04 2012 New Revision: 234270 URL: http://svn.freebsd.org/changeset/base/234270 Log: Catch up with Bryan Venteicher's virtio git repo: a8af6270bd96be6ccd86f70b60fa6512b710e4f0 virtio_blk: Include function name in panic string

svn commit: r234349 - head/sys/dev/virtio/block

2012-04-16 Thread Peter Grehan
Author: grehan Date: Mon Apr 16 18:29:12 2012 New Revision: 234349 URL: http://svn.freebsd.org/changeset/base/234349 Log: Sync with Bryan Venteicher's virtio git repo: d04e609bdd1973cc7d2e8b38b7dcfae057b0962d virtio_blk: Use correct temporary variable in vtblk_poll_request

svn commit: r234364 - head/sys/x86/include

2012-04-16 Thread Peter Grehan
Author: grehan Date: Tue Apr 17 00:54:38 2012 New Revision: 234364 URL: http://svn.freebsd.org/changeset/base/234364 Log: Add x2apic MSR definitions Reviewed by: jhb Obtained from:bhyve via Neel via NetApp Modified: head/sys/x86/include/specialreg.h Modified:

svn commit: r242518 - svnadmin/conf

2012-11-03 Thread Peter Grehan
Author: grehan Date: Sat Nov 3 18:21:32 2012 New Revision: 242518 URL: http://svn.freebsd.org/changeset/base/242518 Log: Welcome Bryan Venteicher to the ranks of src committers. Bryan will be continuing work on the virtio drivers and infrastructure that he contributed to FreeBSD, and will

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

2012-12-12 Thread Peter Grehan
Author: grehan Date: Wed Dec 12 08:35:32 2012 New Revision: 244144 URL: http://svnweb.freebsd.org/changeset/base/244144 Log: Implement an API to allow a hypervisor to save/restore guest floating point state without having to know the size of floating-point state. Unstaticize fpurestore

svn commit: r252321 - in vendor/hyperv/dist/sys: dev/hyperv/stordisengage dev/hyperv/storvsc dev/hyperv/vmbus modules/hyperv modules/hyperv/stordisengage

2013-06-27 Thread Peter Grehan
Author: grehan Date: Fri Jun 28 00:29:07 2013 New Revision: 252321 URL: http://svnweb.freebsd.org/changeset/base/252321 Log: Import Microsoft HyperV driver update From https://github.com/FreeBSDonHyper-V/VendorBranchForFreeBSDonHyper-V rev: 3c707c73520adbd6d1f4ff009826dbbfb0c2dc4d Added:

svn commit: r252322 - vendor/hyperv/20130627

2013-06-27 Thread Peter Grehan
Author: grehan Date: Fri Jun 28 00:34:39 2013 New Revision: 252322 URL: http://svnweb.freebsd.org/changeset/base/252322 Log: Tag hyperv 20130627 Added: vendor/hyperv/20130627/ - copied from r252321, vendor/hyperv/dist/ ___

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

2013-06-27 Thread Peter Grehan
Author: grehan Date: Fri Jun 28 05:01:25 2013 New Revision: 252331 URL: http://svnweb.freebsd.org/changeset/base/252331 Log: Allow the PCI config address register to be read. The Linux kernel does this. Also remove an unused header file. Submitted by: tycho nightingale at

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

2013-06-28 Thread Peter Grehan
Author: grehan Date: Fri Jun 28 06:05:33 2013 New Revision: 252335 URL: http://svnweb.freebsd.org/changeset/base/252335 Log: Make sure all CPUID values are handled, instead of exiting the bhyve process when an unhandled one is encountered. Hide some additional capabilities from the guest

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

2013-06-28 Thread Peter Grehan
Author: grehan Date: Fri Jun 28 06:25:04 2013 New Revision: 252336 URL: http://svnweb.freebsd.org/changeset/base/252336 Log: Allow 8259 registers to be read. This is a transient condition during Linux boot. Submitted by: tycho nightingale at pluribusnetworks com Reviewed by: neel

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

2013-07-01 Thread Peter Grehan
Author: grehan Date: Mon Jul 1 20:05:43 2013 New Revision: 252475 URL: http://svnweb.freebsd.org/changeset/base/252475 Log: Ignore guest PAT settings by default in EPT mappings. From experimentation, other hypervisors also do this. Diagnosed by: tycho nightingale at pluribusnetworks com

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

2013-07-03 Thread Peter Grehan
Author: grehan Date: Thu Jul 4 05:35:56 2013 New Revision: 252682 URL: http://svnweb.freebsd.org/changeset/base/252682 Log: Support an optional mac= parameter to virtio-net config, to allow users to set the MAC address for a device. Clean up some obsolete code in pci_virtio_net.c

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

2013-02-21 Thread Peter Grehan
Author: grehan Date: Fri Feb 22 00:46:32 2013 New Revision: 247144 URL: http://svnweb.freebsd.org/changeset/base/247144 Log: Add the ability to have a 'fallback' search for memory ranges. These set of ranges will be looked at if a standard memory range isn't found, and won't be installed in

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

2013-03-05 Thread Peter Grehan
Author: grehan Date: Wed Mar 6 06:24:09 2013 New Revision: 247865 URL: http://svnweb.freebsd.org/changeset/base/247865 Log: Reorder code to avoid the stat buffer being used uninitialized. Obtained from:NetApp Modified: head/usr.sbin/bhyve/acpi.c Modified:

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

2013-03-05 Thread Peter Grehan
Author: grehan Date: Wed Mar 6 07:28:20 2013 New Revision: 247871 URL: http://svnweb.freebsd.org/changeset/base/247871 Log: Simplify virtio ring num-available calculation. Submitted by: Chris Torek, torek at torek dot net Modified: head/usr.sbin/bhyve/pci_virtio_block.c

Re: svn commit: r247871 - head/usr.sbin/bhyve

2013-03-06 Thread Peter Grehan
On 03/06/13 15:16, David Malone wrote: + /* +* We're just computing (a-b) in GF(216). + ndesc = (unsigned)*hq-hq_avail_idx - (unsigned)hq-hq_cur_aidx; I think the comment here is wrong? Subtraction (and addition) in GF(2^16) is just xor of 16 bit numbers. You seem to actually be

svn commit: r248545 - svnadmin/conf

2013-03-20 Thread Peter Grehan
Author: grehan Date: Wed Mar 20 06:35:03 2013 New Revision: 248545 URL: http://svnweb.freebsd.org/changeset/base/248545 Log: Release Bryan from mentorship and allow him to go full-blast with his excellent contributions. Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors

svn commit: r248555 - svnadmin/conf

2013-03-20 Thread Peter Grehan
Author: grehan Date: Wed Mar 20 13:45:15 2013 New Revision: 248555 URL: http://svnweb.freebsd.org/changeset/base/248555 Log: Really release Bryan this time :) Pointed out by: many Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors

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

2013-04-05 Thread Peter Grehan
Author: grehan Date: Fri Apr 5 22:14:07 2013 New Revision: 249173 URL: http://svnweb.freebsd.org/changeset/base/249173 Log: config checksum is over the entire fixed portion, not just the config header. FreeBSD doesn't check this but other o/s's do. Obtained from:NetApp

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

2013-04-05 Thread Peter Grehan
Author: grehan Date: Fri Apr 5 22:16:31 2013 New Revision: 249174 URL: http://svnweb.freebsd.org/changeset/base/249174 Log: Don't panic when a valid divisor of 1 has been requested. Obtained from:NetApp Modified: head/sys/amd64/vmm/io/vlapic.c Modified:

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

2013-04-05 Thread Peter Grehan
Author: grehan Date: Fri Apr 5 22:19:02 2013 New Revision: 249175 URL: http://svnweb.freebsd.org/changeset/base/249175 Log: Remove dangling ISA uart stubs. Obtained from:NetApp Deleted: head/usr.sbin/bhyve/uart.c Modified: head/usr.sbin/bhyve/Makefile Modified:

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

2013-04-24 Thread Peter Grehan
Author: grehan Date: Thu Apr 25 04:56:43 2013 New Revision: 249879 URL: http://svnweb.freebsd.org/changeset/base/249879 Log: Add RIP-relative addressing to the instruction decoder. Rework the guest register fetch code to allow the RIP to be extracted from the VMCS while the kernel decoder

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

2013-04-25 Thread Peter Grehan
Author: grehan Date: Fri Apr 26 05:13:48 2013 New Revision: 249917 URL: http://svnweb.freebsd.org/changeset/base/249917 Log: Use a thread for the processing of virtio tx descriptors rather than blocking the vCPU thread. This improves bulk data performance by ~30-40% and doesn't harm

svn commit: r250199 - in vendor/hyperv: . dist dist/sys dist/sys/dev dist/sys/dev/hyperv dist/sys/dev/hyperv/include dist/sys/dev/hyperv/netvsc dist/sys/dev/hyperv/storvsc dist/sys/dev/hyperv/utili...

2013-05-02 Thread Peter Grehan
Author: grehan Date: Fri May 3 02:03:36 2013 New Revision: 250199 URL: http://svnweb.freebsd.org/changeset/base/250199 Log: Initial import of the Microsoft HyperV 'enlightened' drivers. From https://github.com/FreeBSDonHyper-V/VendorBranchForFreeBSDonHyper-V rev:

svn commit: r250200 - vendor/hyperv/20130502

2013-05-02 Thread Peter Grehan
Author: grehan Date: Fri May 3 02:07:02 2013 New Revision: 250200 URL: http://svnweb.freebsd.org/changeset/base/250200 Log: Tag hyperv 20130502 Added: vendor/hyperv/20130502/ - copied from r250199, vendor/hyperv/dist/ ___

svn commit: r240427 - head/sys/dev/virtio

2012-09-12 Thread Peter Grehan
Author: grehan Date: Thu Sep 13 00:36:46 2012 New Revision: 240427 URL: http://svn.freebsd.org/changeset/base/240427 Log: Relax requirement of certain mb()s Submitted by: Bryan Venteicher bryanv at daemoninthecloset org Modified: head/sys/dev/virtio/virtqueue.c Modified:

svn commit: r240430 - head/sys/dev/virtio

2012-09-12 Thread Peter Grehan
Author: grehan Date: Thu Sep 13 00:42:56 2012 New Revision: 240430 URL: http://svn.freebsd.org/changeset/base/240430 Log: No need to leak these into the includer's namespace. Submitted by: Bryan Venteicher bryanv at daemoninthecloset org Modified: head/sys/dev/virtio/virtio.h Modified:

svn commit: r241469 - head/sys/dev/virtio

2012-10-11 Thread Peter Grehan
Author: grehan Date: Thu Oct 11 23:03:42 2012 New Revision: 241469 URL: http://svn.freebsd.org/changeset/base/241469 Log: Patch from Bryan to fix a virtqueue issue: virtqueue: Fix non-indirect virtqueues We really must walk the entire descriptor chain in order to append

svn commit: r241470 - in head: share/man/man4 sys/dev/virtio sys/dev/virtio/scsi sys/modules/virtio sys/modules/virtio/scsi

2012-10-11 Thread Peter Grehan
Author: grehan Date: Thu Oct 11 23:41:18 2012 New Revision: 241470 URL: http://svn.freebsd.org/changeset/base/241470 Log: Virtio SCSI driver Submitted by: Bryan Venteicher bryanv at daemoninthecloset dot org Reviewed by: grehan Added: head/share/man/man4/virtio_scsi.4 (contents,

Re: svn commit: r241495 - head/sys/dev/virtio/scsi

2012-10-12 Thread Peter Grehan
Fix build with PAE enabled. I doubt any code uses CAM_SCATTER_VALID or CAM_DATA_PHYS, or they ever correctly worked, but make this build at least. Doh, didn't test build with PAE - I will next time. Thanks for the fix ! later, Peter. ___

Re: svn commit: r238167 - in head/contrib/binutils: gas/config opcodes

2012-07-06 Thread Peter Grehan
To my knowledge, this allows bhyve to now be built with our in-tree toolchain. It does :) Thanks for doing this work. I'll IFC the bhyve branch and remove the Makefile changes that invoked the binutils port. later, Peter. ___

svn commit: r238360 - in head/sys/dev/virtio: . balloon block network pci

2012-07-10 Thread Peter Grehan
Author: grehan Date: Wed Jul 11 02:57:19 2012 New Revision: 238360 URL: http://svn.freebsd.org/changeset/base/238360 Log: Various VirtIO improvements PCI: - Properly handle interrupt fallback from MSIX to MSI to legacy. The host may not have sufficient resources

Re: svn commit: r238755 - head/sys/x86/x86

2012-07-26 Thread Peter Grehan
Yes, CPUID or LFENCE is enough to fix the failure. CPUID causes an unconditional exit in VT-x/SVM so it would be best to avoid that if possible. later, Peter. ___ svn-src-all@freebsd.org mailing list

Re: svn commit: r238755 - head/sys/x86/x86

2012-07-27 Thread Peter Grehan
CPUID causes an unconditional exit in VT-x/SVM so it would be best to avoid that if possible. The only place where the use of CPUID in tsc patch seems to be reasonable is at the SMP test, since it is too much burden to check SSE2/Intel/AMD nuances at the boot time, to be redone later anyway.

svn commit: r245046 - in stable/9/sys/amd64: amd64 include

2013-01-04 Thread Peter Grehan
Author: grehan Date: Fri Jan 4 19:29:23 2013 New Revision: 245046 URL: http://svnweb.freebsd.org/changeset/base/245046 Log: MFC r244144 Implement an API to allow a hypervisor to save/restore guest floating point state without having to know the size of floating-point state.

svn commit: r245148 - in head/sys/boot: common userboot/userboot

2013-01-07 Thread Peter Grehan
Author: grehan Date: Tue Jan 8 03:27:37 2013 New Revision: 245148 URL: http://svnweb.freebsd.org/changeset/base/245148 Log: Bring in some userboot changes from the bhyve branch to reduce diffs. r238966 Bump up the heap size to 1MB. With a few kernel modules, libstand zalloc and

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

2013-01-25 Thread Peter Grehan
Author: grehan Date: Fri Jan 25 21:38:31 2013 New Revision: 245917 URL: http://svnweb.freebsd.org/changeset/base/245917 Log: Always allow access to the sysenter cs/esp/eip MSRs since they are automatically saved and restored in the VMCS. Reviewed by: neel Obtained from:NetApp

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

2013-01-25 Thread Peter Grehan
Author: grehan Date: Fri Jan 25 22:43:20 2013 New Revision: 245920 URL: http://svnweb.freebsd.org/changeset/base/245920 Log: Improve correctness of rtc register implementation. Submitted by: tycho nightingale at pluribusnetworks com Modified: head/usr.sbin/bhyve/rtc.c Modified:

svn commit: r228301 - in head/sys/dev/virtio: . balloon block network pci

2011-12-05 Thread Peter Grehan
Author: grehan Date: Tue Dec 6 06:28:32 2011 New Revision: 228301 URL: http://svn.freebsd.org/changeset/base/228301 Log: Catch up with Bryan Venteicher's virtio Hg repo: c162516 Remove vtblk_sector_size c162515 Wrap long license lines c162514 Remove vtblk_unit

Re: svn commit: r215649 - in head/sys: conf dev/usb dev/usb/controller modules/usb/usb

2010-11-21 Thread Peter Grehan
I plan some follow-up patches to improve the USB PF-solution and to make it a loadable kernel module this week. Could the USB support in libpcap somehow hook into this ? later, Peter. ___ svn-src-all@freebsd.org mailing list

svn commit: r212170 - in head/sys/powerpc: conf include powerpc

2010-09-02 Thread Peter Grehan
Author: grehan Date: Fri Sep 3 03:56:09 2010 New Revision: 212170 URL: http://svn.freebsd.org/changeset/base/212170 Log: - Bump MAXCPU to 4. Tested on a quad G5 with both 32 and 64-bit kernels. A make buildkernel -j4 uses ~360% CPU. - Bracket the AP spinup printf with a mutex to avoid

svn commit: r212597 - head/sys/powerpc/aim

2010-09-13 Thread Peter Grehan
Author: grehan Date: Tue Sep 14 03:18:11 2010 New Revision: 212597 URL: http://svn.freebsd.org/changeset/base/212597 Log: Resurrect PSIM support by moving the cacheline size-detection warning printf outside of the MMU-disabled region. A call into OpenFirmware with the MMU off resulted in an

svn commit: r212627 - in head/sys/powerpc: aim booke include

2010-09-14 Thread Peter Grehan
Author: grehan Date: Wed Sep 15 00:17:52 2010 New Revision: 212627 URL: http://svn.freebsd.org/changeset/base/212627 Log: Introduce inheritance into the PowerPC MMU kobj interface. include/mmuvar.h - Change the MMU_DEF macro to also create the class definition as well as define the

svn commit: r227652 - in head: share/man/man4 sys/dev/virtio sys/dev/virtio/balloon sys/dev/virtio/block sys/dev/virtio/network sys/dev/virtio/pci sys/modules sys/modules/virtio sys/modules/virtio/...

2011-11-17 Thread Peter Grehan
Author: grehan Date: Fri Nov 18 05:43:43 2011 New Revision: 227652 URL: http://svn.freebsd.org/changeset/base/227652 Log: Import virtio base, PCI front-end, and net/block/balloon drivers. Tested on Qemu/KVM, VirtualBox, and BHyVe. Currently built as modules-only on i386/amd64. Man pages

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

2014-07-14 Thread Peter Grehan
Author: grehan Date: Tue Jul 15 00:25:54 2014 New Revision: 268638 URL: http://svnweb.freebsd.org/changeset/base/268638 Log: Add a call to synthesize a C/H/S value for block emulations that require it (ahci). The algorithm used is from the VHD specification. Modified:

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

2014-07-14 Thread Peter Grehan
Author: grehan Date: Tue Jul 15 00:27:08 2014 New Revision: 268639 URL: http://svnweb.freebsd.org/changeset/base/268639 Log: Use the blockif CHS routine to create fake CHS values, and then populate them in the identity page. This fixes a divide-by-zero error at probe time with NetBSD.

svn commit: r269391 - head/sys/netinet

2014-08-01 Thread Peter Grehan
Author: grehan Date: Fri Aug 1 18:36:40 2014 New Revision: 269391 URL: http://svnweb.freebsd.org/changeset/base/269391 Log: Fix byte ordering in default RSS key. The rss_key[] array in netinet/in_rss.c has the bytes in incorrect order. This results in the RSS test vectors in the

svn commit: r270070 - in stable/10: lib/libvmmapi sys/amd64/include sys/amd64/vmm sys/amd64/vmm/io usr.sbin/bhyve usr.sbin/bhyvectl

2014-08-16 Thread Peter Grehan
Author: grehan Date: Sun Aug 17 00:52:07 2014 New Revision: 270070 URL: http://svnweb.freebsd.org/changeset/base/270070 Log: MFC r266933 Activate vcpus from bhyve(8) using the ioctl VM_ACTIVATE_CPU instead of doing it implicitly in vmm.ko. Modified: stable/10/lib/libvmmapi/vmmapi.c

svn commit: r270071 - in stable/10: lib/libvmmapi sys/amd64/include sys/amd64/vmm usr.sbin/bhyveload

2014-08-16 Thread Peter Grehan
Author: grehan Date: Sun Aug 17 01:00:42 2014 New Revision: 270071 URL: http://svnweb.freebsd.org/changeset/base/270071 Log: MFC r267216 Add ioctl(VM_REINIT) to reinitialize the virtual machine state maintained by vmm.ko. This allows the virtual machine to be restarted without having to

svn commit: r270073 - in stable/10/sys/amd64/vmm: intel io

2014-08-16 Thread Peter Grehan
Author: grehan Date: Sun Aug 17 01:16:40 2014 New Revision: 270073 URL: http://svnweb.freebsd.org/changeset/base/270073 Log: MFC r267178, r267300 Support guest accesses to %cr8 Add reserved bit checking when doing %CR8 emulation and inject #GP if required. Modified:

svn commit: r270074 - in stable/10: lib/libvmmapi sys/amd64/include sys/amd64/vmm sys/amd64/vmm/intel usr.sbin/bhyve usr.sbin/bhyveload

2014-08-16 Thread Peter Grehan
Author: grehan Date: Sun Aug 17 01:23:52 2014 New Revision: 270074 URL: http://svnweb.freebsd.org/changeset/base/270074 Log: MFC r267311, r267330, r267811, r267884 Turn on interrupt window exiting unconditionally when an ExtINT is being injected into the guest. Add helper functions

svn commit: r270082 - stable/10/sys/amd64/include

2014-08-16 Thread Peter Grehan
Author: grehan Date: Sun Aug 17 03:01:56 2014 New Revision: 270082 URL: http://svnweb.freebsd.org/changeset/base/270082 Log: MFC r267338 Replace enum forward declarations with complete definitions Modified: stable/10/sys/amd64/include/vmm.h Directory Properties: stable/10/ (props

svn commit: r270159 - in stable/10: lib/libvmmapi sys/amd64/amd64 sys/amd64/include sys/amd64/vmm sys/amd64/vmm/intel sys/amd64/vmm/io sys/x86/include usr.sbin/bhyve usr.sbin/bhyvectl usr.sbin/bhyv...

2014-08-18 Thread Peter Grehan
Author: grehan Date: Tue Aug 19 01:20:24 2014 New Revision: 270159 URL: http://svnweb.freebsd.org/changeset/base/270159 Log: MFC r267921, r267934, r267949, r267959, r267966, r268202, r268276, r268427, r268428, r268521, r268638, r268639, r268701, r268777, r268889,

svn commit: r270185 - stable/10/sys/kern

2014-08-19 Thread Peter Grehan
Author: grehan Date: Tue Aug 19 23:08:47 2014 New Revision: 270185 URL: http://svnweb.freebsd.org/changeset/base/270185 Log: MFC r265098 Bump WITNESS_PENDLIST by MAXCPU to account for the pmap pvlist locks which are scaled by MAXCPU. Modified: stable/10/sys/kern/subr_witness.c

svn commit: r270186 - stable/10/sys/cddl/dev/dtrace/x86

2014-08-19 Thread Peter Grehan
Author: grehan Date: Tue Aug 19 23:15:47 2014 New Revision: 270186 URL: http://svnweb.freebsd.org/changeset/base/270186 Log: MFC r266103 Update dis_tables.c to the latest Illumos version. This includes decodes of recent Intel instructions, in particular VT-x and related

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

2014-04-23 Thread Peter Grehan
Author: grehan Date: Thu Apr 24 00:27:34 2014 New Revision: 264846 URL: http://svnweb.freebsd.org/changeset/base/264846 Log: Allow the guest to read the TSC via MSR 0x10. NetBSD/amd64 does this, as does Linux on AMD CPUs. Reviewed by: neel MFC after:3 weeks Modified:

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

2014-04-25 Thread Peter Grehan
Author: grehan Date: Fri Apr 25 17:35:34 2014 New Revision: 264921 URL: http://svnweb.freebsd.org/changeset/base/264921 Log: Respect and track the enable bit in the PCI configuration address word. Ignore writes, and return 0xff's, on config accesses when not set. Behaviour now matches that

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

2014-04-28 Thread Peter Grehan
Author: grehan Date: Mon Apr 28 18:41:25 2014 New Revision: 265058 URL: http://svnweb.freebsd.org/changeset/base/265058 Log: Implement legacy interrupts for the AHCI device emulation according to the method outlined in the AHCI spec. Tested with FreeBSD 9/10/11 with MSI disabled, and

svn commit: r265098 - head/sys/kern

2014-04-29 Thread Peter Grehan
Author: grehan Date: Tue Apr 29 17:22:29 2014 New Revision: 265098 URL: http://svnweb.freebsd.org/changeset/base/265098 Log: Bump WITNESS_PENDLIST by MAXCPU to account for the pmap pvlist locks which are scaled by MAXCPU. This allows an amd64 system to boot with MAXCPU set to 256,

svn commit: r265165 - head/sys/boot/userboot/userboot

2014-04-30 Thread Peter Grehan
Author: grehan Date: Thu May 1 00:12:24 2014 New Revision: 265165 URL: http://svnweb.freebsd.org/changeset/base/265165 Log: Provide an alias for the userboot console and name it 'comconsole'. This allows existing loader.conf files that set console=comconsole to work without failing. No

svn commit: r265869 - head/sys/arm/conf

2014-05-10 Thread Peter Grehan
Author: grehan Date: Sun May 11 04:18:51 2014 New Revision: 265869 URL: http://svnweb.freebsd.org/changeset/base/265869 Log: Enable SMP for Exynos-based platforms (i.e. Chromebook) Reviewed by: br Modified: head/sys/arm/conf/EXYNOS5250.common Modified:

svn commit: r266103 - head/sys/cddl/dev/dtrace/x86

2014-05-14 Thread Peter Grehan
Author: grehan Date: Thu May 15 01:06:27 2014 New Revision: 266103 URL: http://svnweb.freebsd.org/changeset/base/266103 Log: Update dis_tables.c to the latest Illumos version. This includes decodes of recent Intel instructions, in particular VT-x and related instructions. This allows the

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

2014-05-17 Thread Peter Grehan
Author: grehan Date: Sun May 18 03:50:17 2014 New Revision: 266390 URL: http://svnweb.freebsd.org/changeset/base/266390 Log: Make the vmx asm code dtrace-fbt-friendly by - inserting frame enter/leave sequences - restructuring the vmx_enter_guest routine so that it subsumes the

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

2014-05-19 Thread Peter Grehan
Add support for decoding the AMD SVM instructions. Thankyou !! later, Peter. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org

svn commit: r266462 - head/sys/net

2014-05-19 Thread Peter Grehan
Author: grehan Date: Tue May 20 02:59:13 2014 New Revision: 266462 URL: http://svnweb.freebsd.org/changeset/base/266462 Log: Bump bhyve allocation up to 20 bits to avoid birthday-paradox style address collisions when bhyve VMs are connected to the same broadcoast domain and are using

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

2013-07-10 Thread Peter Grehan
/usr.sbin/bhyve/rtc.h Thu Jul 11 03:54:35 2013(r253181) @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2013 Peter Grehan gre...@freebsd.org + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following

svn commit: r253250 - stable/9/sys/kern

2013-07-11 Thread Peter Grehan
Author: grehan Date: Fri Jul 12 05:45:09 2013 New Revision: 253250 URL: http://svnweb.freebsd.org/changeset/base/253250 Log: MFC r245066 - Teach the kernel to recognize that it is executing inside a bhyve virtual

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

2013-07-17 Thread Peter Grehan
Author: grehan Date: Wed Jul 17 23:37:33 2013 New Revision: 253440 URL: http://svnweb.freebsd.org/changeset/base/253440 Log: Major rework of the virtio code. Split out common parts, and modify the net/block devices accordingly. Submitted by: Chris Torek torek at torek dot net

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

2013-07-18 Thread Peter Grehan
Author: grehan Date: Thu Jul 18 18:40:54 2013 New Revision: 253452 URL: http://svnweb.freebsd.org/changeset/base/253452 Log: Sanity-check the vm exitcode, and exit the process if it's out-of-bounds or there is no registered handler. Submitted by: Bela Lubkin bela dot lubkin at

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

2013-07-31 Thread Peter Grehan
Author: grehan Date: Thu Aug 1 01:18:51 2013 New Revision: 253849 URL: http://svnweb.freebsd.org/changeset/base/253849 Log: Correctly maintain the CR0/CR4 shadow registers. This was exposed with AP spinup of Linux, and booting OpenBSD, where the CR0 register is unconditionally written to

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

2013-07-31 Thread Peter Grehan
Author: grehan Date: Thu Aug 1 05:59:28 2013 New Revision: 253854 URL: http://svnweb.freebsd.org/changeset/base/253854 Log: Moved clearing of vmm_initialized to avoid the case of unloading the module while VMs existed. This would result in EBUSY, but would prevent further operations on

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

2013-08-02 Thread Peter Grehan
Author: grehan Date: Sat Aug 3 03:16:42 2013 New Revision: 253909 URL: http://svnweb.freebsd.org/changeset/base/253909 Log: Follow-up commit to fix CR0 issues. Maintain architectural state on CR vmexits by guaranteeing that EFER, CR0 and the VMCS entry controls are all in sync when

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

2013-08-15 Thread Peter Grehan
Author: grehan Date: Fri Aug 16 00:35:20 2013 New Revision: 254395 URL: http://svnweb.freebsd.org/changeset/base/254395 Log: Fix ordering of legacy IRQ reservations. Submitted by: Jeremiah Lott jlott at averesystems dot com Modified: head/usr.sbin/bhyve/pci_emul.c Modified:

Re: svn commit: r254520 - in head/sys: kern sys

2013-08-19 Thread Peter Grehan
I recently tried some experiments to reduce the number of mbuf and cluster allocations in a 40G NIC driver. M_NOFREE and EXT_EXTREF proved very useful and the code changes to the kernel were minimal. See user/np/cxl_tuning. The experiment was quite successful and I was planning to bring in

Re: svn commit: r254520 - in head/sys: kern sys

2013-08-21 Thread Peter Grehan
The way to go should be 4K clusters as they are native to the architecture. IIRC a PCIe DMA can't cross a 4K boundary anyway That's a 4G boundary, for some devices. later, Peter. ___ svn-src-all@freebsd.org mailing list

Re: svn commit: r254520 - in head/sys: kern sys

2013-08-21 Thread Peter Grehan
Hi Andre, On 21.08.2013 17:03, Peter Grehan wrote: The way to go should be 4K clusters as they are native to the architecture. IIRC a PCIe DMA can't cross a 4K boundary anyway That's a 4G boundary, for some devices. I meant a single PCIe DMA transaction can be at most 4K before it has

Re: svn commit: r254605 - in head/sys: kern sys

2013-08-21 Thread Peter Grehan
Log: Revert r254520 and resurrect the M_NOFREE mbuf flag and functionality. Requested by:np, grehan Thanks Andre. later, Peter. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To

svn commit: r266916 - svnadmin/conf

2014-05-30 Thread Peter Grehan
Author: grehan Date: Sat May 31 01:44:11 2014 New Revision: 266916 URL: http://svnweb.freebsd.org/changeset/base/266916 Log: Release Tycho from mentorship ! Co-Approved by: neel Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors

svn commit: r267591 - in head/etc: etc.amd64 etc.i386

2014-06-17 Thread Peter Grehan
Author: grehan Date: Tue Jun 17 18:51:03 2014 New Revision: 267591 URL: http://svnweb.freebsd.org/changeset/base/267591 Log: Convert the potential console port over to using 3wire, for i386/amd64. (This change was already in place for other arches via r262957) Reviewed by: nwhitehorn

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

2014-06-25 Thread Peter Grehan
Author: grehan Date: Wed Jun 25 22:13:35 2014 New Revision: 267884 URL: http://svnweb.freebsd.org/changeset/base/267884 Log: Expose the amount of resident and wired memory from the guest's vmspace. This is different than the amount shown for the process e.g. by /usr/bin/top - that is the

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

2014-06-26 Thread Peter Grehan
Author: grehan Date: Fri Jun 27 05:27:37 2014 New Revision: 267949 URL: http://svnweb.freebsd.org/changeset/base/267949 Log: Set the version and date to fixed fields rather than using preprocessor macros that don't allow reproducible builds. As a side-effect, the date string is now

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

2014-07-02 Thread Peter Grehan
Author: grehan Date: Thu Jul 3 00:23:14 2014 New Revision: 268202 URL: http://svnweb.freebsd.org/changeset/base/268202 Log: Use correct flag for event index. Submitted by: luigi Obtained from:Vincenzo Maffione, Universita` di Pisa MFC after:1 week Modified:

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

2014-07-04 Thread Peter Grehan
Author: grehan Date: Sat Jul 5 02:38:53 2014 New Revision: 268276 URL: http://svnweb.freebsd.org/changeset/base/268276 Log: Extend capabilities to 64-bits in preparation for some API changes. The v1.0 virtio spec supports an extended size for guest/host caps, but in practice 64-bits should

Re: svn commit: r263427 - in head/sys: arm/conf boot/fdt/dts/arm

2014-03-20 Thread Peter Grehan
okay. suggestions? may be CHROMEBOOK-XE303 ? The new ones look to be called 'chromebook 2', so CHROMEBOOK looks fine in implying v1. later, Peter. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To

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

2014-04-02 Thread Peter Grehan
Author: grehan Date: Wed Apr 2 20:18:17 2014 New Revision: 264055 URL: http://svnweb.freebsd.org/changeset/base/264055 Log: Add support for the virtio RNG entropy-source device. Call through to /dev/random synchronously to fill virtio buffers with RNG data. Tested with FreeBSD-CURRENT

Re: svn commit: r264179 - in head/sys/amd64/vmm: . intel io

2014-04-06 Thread Peter Grehan
Make the vmm code compile with gcc too. Not entirely sure things are correct for the pirbase test Then why not contact the authors/maintainers of this code ? We'll take it from here and will revert/rework this change, as well as making sure it compiles with gcc and also testing it,

svn commit: r264195 - head

2014-04-06 Thread Peter Grehan
Author: grehan Date: Sun Apr 6 16:48:00 2014 New Revision: 264195 URL: http://svnweb.freebsd.org/changeset/base/264195 Log: This should have been obvious, but make it so. Modified: head/MAINTAINERS Modified: head/MAINTAINERS

Re: svn commit: r264179 - in head/sys/amd64/vmm: . intel io

2014-04-06 Thread Peter Grehan
Make the vmm code compile with gcc too. Not entirely sure things are correct for the pirbase test Warner has contacted me privately; we have a way forward and I now consider the issue closed. later, Peter. ___ svn-src-all@freebsd.org

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

2014-04-10 Thread Peter Grehan
Author: grehan Date: Thu Apr 10 19:15:58 2014 New Revision: 264324 URL: http://svnweb.freebsd.org/changeset/base/264324 Log: Rework r264179. - remove redundant code - remove erroneous setting of the error return in vmmdev_ioctl() - use style(9) initialization - in

svn commit: r259301 - in stable/10/usr.sbin: bhyve bhyveload

2013-12-12 Thread Peter Grehan
Author: grehan Date: Fri Dec 13 06:59:18 2013 New Revision: 259301 URL: http://svnweb.freebsd.org/changeset/base/259301 Log: MFC r256657,r257018,r257347,r257423,r257729,r257767, r257933,r258609,r258614,r258668,r258673,r258855 Pull in some minor bugfixes and functionality enhancements

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

2013-12-13 Thread Peter Grehan
Peter Grehan +.\ All rights reserved. +.\ +.\ Redistribution and use in source and binary forms, with or without +.\ modification, are permitted provided that the following conditions +.\ are met: +.\ 1. Redistributions of source code must retain the above copyright +.\notice, this list

svn commit: r259496 - in releng/10.0/usr.sbin: bhyve bhyveload

2013-12-16 Thread Peter Grehan
Author: grehan Date: Tue Dec 17 06:39:48 2013 New Revision: 259496 URL: http://svnweb.freebsd.org/changeset/base/259496 Log: MFStable-10 r259301 MFC r256657,r257018,r257347,r257423,r257729,r257767, r257933,r258609,r258614,r258668,r258673,r258855 Pull in some minor bugfixes

svn commit: r259536 - stable/10/usr.sbin/bhyve

2013-12-17 Thread Peter Grehan
Author: grehan Date: Wed Dec 18 03:51:04 2013 New Revision: 259536 URL: http://svnweb.freebsd.org/changeset/base/259536 Log: MFC r259302,r259413 r259302 bhyve(8) man page r259413 mdoc: sort SEE ALSO Added: stable/10/usr.sbin/bhyve/bhyve.8 - copied, changed from

svn commit: r259639 - releng/10.0/usr.sbin/bhyve

2013-12-19 Thread Peter Grehan
) == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ releng/10.0/usr.sbin/bhyve/bhyve.8 Fri Dec 20 00:47:54 2013 (r259639, copy of r259536, stable/10/usr.sbin/bhyve/bhyve.8) @@ -0,0 +1,299 @@ +.\ Copyright (c) 2013 Peter Grehan +.\ All rights reserved

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

2014-01-03 Thread Peter Grehan
Author: grehan Date: Fri Jan 3 19:31:40 2014 New Revision: 260239 URL: http://svnweb.freebsd.org/changeset/base/260239 Log: Cosmetic change - switch over to vertical SRCS to make it easier to keep files in alpha order. Reviewed by: neel Modified: head/usr.sbin/bhyve/Makefile

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

2014-01-08 Thread Peter Grehan
Author: grehan Date: Thu Jan 9 07:17:21 2014 New Revision: 260469 URL: http://svnweb.freebsd.org/changeset/base/260469 Log: Fix issue with the virtio descriptor region being truncated if it was above 4GB. This was seen with CentOS 6.5 guests with large RAM, since the block drivers are

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

2014-01-24 Thread Peter Grehan
Author: grehan Date: Sat Jan 25 06:58:41 2014 New Revision: 261148 URL: http://svnweb.freebsd.org/changeset/base/261148 Log: Change RWX to XWR in comments to match intent and bit patterns in discussion of valid EPT pte protections. Discussed with: neel MFC after:3 days

  1   2   3   >