Re: svn commit: r334365 - head/sys/dev/pci

2018-05-30 Thread Peter Grehan
PCIe only permits 1 device on an endpoint, so some devices ignore the device part of B:D:F probing. Although ARI likely fixes this, not all platforms support ARI completely or correctly, so some devices end up showing up 32 times on the bus. I think this might have broken bhyve - a

Re: svn commit: r334365 - head/sys/dev/pci

2018-05-30 Thread Peter Grehan
Hi Nathan, There are a ton of ARM boards that need this too. You can find one-off hacks all through the tree and one of the nice things about this change is that all of those can be consolidated/removed now. If we are going to have some #ifdef and special cases, it would be better to make them

Re: svn commit: r334365 - head/sys/dev/pci

2018-05-30 Thread Peter Grehan
Hi Justin, I can add one either tonight or tomorrow. Thanks. If bhyve has its own attachment id, it is trivial to add a special case on it quickly, too. vendor_id -- 0x1275 later, Peter. ___ svn-src-head@freebsd.org mailing list https://list

Re: svn commit: r334365 - head/sys/dev/pci

2018-05-30 Thread Peter Grehan
If bhyve has its own  attachment id, it is trivial to add a special case on it quickly, too.  vendor_id -- 0x1275 Actually, this can also be AMD. A better check would be if the system is running virtualized. later, Peter. ___ svn-src-head@freeb

Re: svn commit: r334407 - head/sys/dev/pci

2018-05-30 Thread Peter Grehan
Log: Only conform to PCIe spec of 1 device per bus on !x86 bhyve's root PCI complex shows up as PCIe, but behaves as traditional PCI. Until that is special cased in a root complex driver, leave x86 as it was. Thanks Justin ! later, Peter.

svn commit: r334913 - head

2018-06-09 Thread Peter Grehan
Author: grehan Date: Sun Jun 10 04:25:19 2018 New Revision: 334913 URL: https://svnweb.freebsd.org/changeset/base/334913 Log: Pass on bhyve kernel module maintenance to tychon and jhb who've both had a long history with the codebase. Discussed with:tychon, jhb Modified:

svn commit: r327990 - head/share/man/man4

2018-01-14 Thread Peter Grehan
Author: grehan Date: Mon Jan 15 04:52:12 2018 New Revision: 327990 URL: https://svnweb.freebsd.org/changeset/base/327990 Log: The vmm(4) man page is conditional on MK_BHYVE. Submitted by: kevlo Modified: head/share/man/man4/Makefile Modified: head/share/man/man4/Makefile ===

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

2018-05-02 Thread Peter Grehan
Author: grehan Date: Wed May 2 17:41:00 2018 New Revision: 333174 URL: https://svnweb.freebsd.org/changeset/base/333174 Log: Use PCI power-mgmt to reset a device if FLR fails. A large number of devices don't support PCIe FLR, in particular graphics adapters. Use PCI power management to p

Re: svn commit: r333174 - head/sys/amd64/vmm/io

2018-05-02 Thread Peter Grehan
That places the MFC right before the optional 11.2 Beta3, I would rather see this "low risk" change merged before May 11th, the code freeze date and Beta1, if it is desired in 11.2, for maximal test exposure. Sure, that can be done. later, Peter. __

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

2018-05-03 Thread Peter Grehan
Author: grehan Date: Thu May 3 22:51:44 2018 New Revision: 333230 URL: https://svnweb.freebsd.org/changeset/base/333230 Log: Allow PCI VGA devices to be detached. GPUs often have a VGA PCI class code and are probed/attached by the VGA driver. Allow them to be detached so they can be pr

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

2018-05-03 Thread Peter Grehan
Author: grehan Date: Fri May 4 01:36:49 2018 New Revision: 333235 URL: https://svnweb.freebsd.org/changeset/base/333235 Log: Allow arbitrary numbers of columns for VNC server screen resolution. The prior code only allowed multiples of 32 for the numbers of columns. Remove this restrictio

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

2017-06-10 Thread Peter Grehan
Hi Conrad, Here, keystr is not zero initialized Note that strncpy below does not fill the remainder of the buffer with nuls if rc->password is shorter than 7 characters. +* The client then sends the resulting 16-bytes response. +*/ +#ifndef NO_OPENSSL +

svn commit: r362643 - head

2020-06-25 Thread Peter Grehan
Author: grehan Date: Fri Jun 26 06:11:50 2020 New Revision: 362643 URL: https://svnweb.freebsd.org/changeset/base/362643 Log: Update bhyve maintainers. Suggested by: jhb Approved by: jhb, tychon Modified: head/MAINTAINERS Modified: head/MAINTAINERS ===

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

2020-06-26 Thread Peter Grehan
Author: grehan Date: Fri Jun 26 08:20:38 2020 New Revision: 362644 URL: https://svnweb.freebsd.org/changeset/base/362644 Log: Prevent calling USB backends multiple times. The TRB processing loop could potentially call a back-end twice with the same status transaction. While this was gener

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

2020-07-06 Thread Peter Grehan
Author: grehan Date: Mon Jul 6 08:36:14 2020 New Revision: 362952 URL: https://svnweb.freebsd.org/changeset/base/362952 Log: Silence ACPI RTC error/warning in Linux guests. Allow guests to set the RTC bit in the ACPI PM control register. This eliminates an annoying (and harmless)

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

2020-07-10 Thread Peter Grehan
Author: grehan Date: Fri Jul 10 07:26:50 2020 New Revision: 363070 URL: https://svnweb.freebsd.org/changeset/base/363070 Log: Advertise 64-bit physical-address capability. This fixes a coredump with NetBSD guests when XHCI is configured. On seeing the AC64 flag clear, the NetBSD XHCI driv

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

2020-07-27 Thread Peter Grehan
Author: grehan Date: Mon Jul 27 07:56:55 2020 New Revision: 363596 URL: https://svnweb.freebsd.org/changeset/base/363596 Log: Support the setting of additional AHCI controller parameters. Allow the serial number, firmware revision, model number and nominal media rotation rate (nmrr) param

svn commit: r363719 - head/sys/sys

2020-07-30 Thread Peter Grehan
Author: grehan Date: Thu Jul 30 23:49:49 2020 New Revision: 363719 URL: https://svnweb.freebsd.org/changeset/base/363719 Log: Definition for the 'removable media flag' from word 0 in the Identify page. This will be used to remove a magic number in the bhyve AHCI emulation. Reported by:

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

2020-07-31 Thread Peter Grehan
Author: grehan Date: Fri Jul 31 12:10:28 2020 New Revision: 363733 URL: https://svnweb.freebsd.org/changeset/base/363733 Log: Replace magic numbers in Identify page register 0 with ATA definitions. No functional change. Verified with objdump output before/after. Requested by: rpokala

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

2020-08-18 Thread Peter Grehan
Author: grehan Date: Tue Aug 18 07:08:17 2020 New Revision: 364339 URL: https://svnweb.freebsd.org/changeset/base/364339 Log: Allow guest device MMIO access from bootmem memory segments. Recent versions of UEFI have moved local APIC timer initialization into the early SEC phase which runs

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

2020-08-18 Thread Peter Grehan
Author: grehan Date: Tue Aug 18 07:23:47 2020 New Revision: 364340 URL: https://svnweb.freebsd.org/changeset/base/364340 Log: Support guest rdtscp and rdpid instructions on Intel VT-x Enable any of rdtscp and/or rdpid for bhyve guests on Intel-based hosts that support the "enable RDTSCP"

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

2020-08-18 Thread Peter Grehan
On 8/18/20 6:48 PM, Konstantin Belousov wrote: On Tue, Aug 18, 2020 at 07:23:47AM +, Peter Grehan wrote: +void +vmx_msr_guest_exit_tsc_aux(struct vmx *vmx, int vcpuid) +{ + uint64_t guest_tsc_aux = vmx->guest_msrs[vcpuid][IDX_MSR_TSC_AUX]; + uint32_t cpuid = PCPU_GET(cp

svn commit: r364343 - in head/sys: amd64/amd64 amd64/vmm/intel i386/i386 x86/include

2020-08-18 Thread Peter Grehan
Author: grehan Date: Tue Aug 18 11:36:38 2020 New Revision: 364343 URL: https://svnweb.freebsd.org/changeset/base/364343 Log: Export a routine to provide the TSC_AUX MSR value and use this in vmm. Also, drop an unnecessary set of braces. Requested by: kib Reviewed by: kib MF

svn commit: r364656 - in head/sys: amd64/amd64 i386/i386

2020-08-24 Thread Peter Grehan
Author: grehan Date: Mon Aug 24 11:49:49 2020 New Revision: 364656 URL: https://svnweb.freebsd.org/changeset/base/364656 Log: cpu_auxmsr: assert caller is preventing CPU migration. Submitted by: Adam Fenn (adam at fenn dot io) Requested by: kib Reviewed by: kib, grehan Approved by:

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

2020-11-15 Thread Peter Grehan
Author: grehan Date: Sun Nov 15 12:59:24 2020 New Revision: 367709 URL: https://svnweb.freebsd.org/changeset/base/367709 Log: Fix regression in AHCI controller settings. When the AHCI code was reworked to use FreeBSD struct definitions, the valid element was mis-transcribed resulting in

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

2020-11-17 Thread Peter Grehan
Author: grehan Date: Tue Nov 17 13:14:04 2020 New Revision: 367762 URL: https://svnweb.freebsd.org/changeset/base/367762 Log: Add legacy debug/test interfaces for kvm unit tests. Implement the legacy debug/test interfaces expected by KVM-unit-tests' realmode, emulator, and ioapic tests.

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

2020-11-18 Thread Peter Grehan
Author: grehan Date: Thu Nov 19 07:23:39 2020 New Revision: 367834 URL: https://svnweb.freebsd.org/changeset/base/367834 Log: Advance RIP after userspace instruction decode Add update to RIP after a userspace instruction decode (as is done for the in-kernel counterpart of this case).

svn commit: r368047 - head/sys/amd64/vmm/amd

2020-11-25 Thread Peter Grehan
Author: grehan Date: Thu Nov 26 05:58:55 2020 New Revision: 368047 URL: https://svnweb.freebsd.org/changeset/base/368047 Log: Remove manual instruction encodings for VMLOAD, VMRUN, and VMSAVE. This is a relic from when these instructions weren't supported by the toolchain. No

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

2020-11-27 Thread Peter Grehan
Author: grehan Date: Sat Nov 28 01:16:59 2020 New Revision: 368115 URL: https://svnweb.freebsd.org/changeset/base/368115 Log: Convert vmm_ops calls to IFUNC There is no need for these to be function pointers since they are never modified post-module load. Rename AMD/Intel ops to be m

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

2020-12-17 Thread Peter Grehan
Author: grehan Date: Fri Dec 18 00:38:48 2020 New Revision: 368747 URL: https://svnweb.freebsd.org/changeset/base/368747 Log: Fix issues with various VNC clients. - support VNC version 3.3 (macos "Screen Sharing" builtin client) - wait until client has requested an update prior to sending

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

2020-04-19 Thread Peter Grehan
Unless there is an ABI problem, I think we should probably go ahead and bump VM_MAX_MEMMAPS That's a reasonable fix - double it (or more) until it's made dynamic. The VGA code is another (future) client of this, and it would allow other things like multiple frame buffers. later, Peter.

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

2020-05-14 Thread Peter Grehan
Author: grehan Date: Thu May 14 22:18:12 2020 New Revision: 361064 URL: https://svnweb.freebsd.org/changeset/base/361064 Log: Hide host CPUID 0x15 TSC/Crystal ratio/freq info from guest In recent Linux (5.3+) and OpenBSD (6.6+) kernels, and with hosts that support CPUID 0x15, the local AP

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

2020-05-24 Thread Peter Grehan
Author: grehan Date: Mon May 25 06:25:31 2020 New Revision: 361442 URL: https://svnweb.freebsd.org/changeset/base/361442 Log: Fix pci-passthru MSI issues with OpenBSD guests - Return 2 x 16-bit registers in the correct byte order for a 4-byte read that spans the CMD/STATUS register.

Re: svn commit: r325108 - head/sys/amd64/vmm/io

2017-10-29 Thread Peter Grehan
  Improve the performance of the hpet timer in bhyve guests by making the   timer frequency a power of two.  This changes the frequency from 10 to   16.7 MHz (2 ^ 24 HZ).  Using a power of two avoids roundoff errors when   doing arithmetic in sbintime_t units.   Testing shows this can fix

Re: svn commit: r325108 - head/sys/amd64/vmm/io

2017-10-29 Thread Peter Grehan
Hi Ian, In fact I did check maintainers, and I just now checked it again, and seeing nothing on-point, wrote a really snarky reply. Luckily, before hitting send I realized you wouldn't have said anything unless there was an entry in there, so I checked like 4 more times before I noticed the lin

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

2017-10-31 Thread Peter Grehan
Author: grehan Date: Wed Nov 1 03:26:53 2017 New Revision: 325261 URL: https://svnweb.freebsd.org/changeset/base/325261 Log: Emulate the "OR reg, r/m" instruction (opcode 0BH). This is needed for the HDA emulation with FreeBSD guests. Reviewed by: marcelo MFC after:2 week

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 c1

Re: svn commit: r223695 - in head/sys/boot: . common ficl/amd64 i386/libi386 userboot userboot/ficl userboot/libstand userboot/libstand/amd64 userboot/test userboot/userboot

2011-06-30 Thread Peter Grehan
Log: Add a version of the FreeBSD bootloader which can run in userland, packaged as a shared library. This is intended to be used by BHyVe to load FreeBSD kernels into new virtual machines. Thankyou so much for this work Doug ! later, Peter. __

svn commit: r209958 - head/sys/powerpc/powermac

2010-07-12 Thread Peter Grehan
Author: grehan Date: Mon Jul 12 21:09:55 2010 New Revision: 209958 URL: http://svn.freebsd.org/changeset/base/209958 Log: Fix printf specifier to allow 32/64 bit builds. Obtained from:projects/ppc64 Modified: head/sys/powerpc/powermac/grackle.c Modified: head/sys/powerpc/powerma

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 garbl

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 DATA_S

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-head@freebsd.org mailing list http://lists.freebsd.or

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 n

svn commit: r315361 - in head/sys/x86: include x86

2017-03-15 Thread Peter Grehan
Author: grehan Date: Thu Mar 16 03:06:50 2017 New Revision: 315361 URL: https://svnweb.freebsd.org/changeset/base/315361 Log: Add the AMD MONITORX/MWAITX feature definition introduced in Bulldozer/Ryzen CPUs. Reviewed by: kib MFC after:1 week Modified: head/sys/x86/include/speci

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

2017-03-15 Thread Peter Grehan
Author: grehan Date: Thu Mar 16 03:21:42 2017 New Revision: 315364 URL: https://svnweb.freebsd.org/changeset/base/315364 Log: Hide the AMD MONITORX/MWAITX capability. Otherwise, recent Linux guests will use these instructions, resulting in #UD exceptions since bhyve doesn't implement MONITOR

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

2017-03-22 Thread Peter Grehan
Author: grehan Date: Wed Mar 22 16:53:03 2017 New Revision: 315715 URL: https://svnweb.freebsd.org/changeset/base/315715 Log: This fixes a typo in bhyve's USB mouse emulation. There is no behavioral difference, as it's just swapping out the name of two identically-valued constants. Subm

svn commit: r315716 - head/sys/dev/usb/input

2017-03-22 Thread Peter Grehan
Author: grehan Date: Wed Mar 22 17:06:57 2017 New Revision: 315716 URL: https://svnweb.freebsd.org/changeset/base/315716 Log: Bring the handling of the y axis in the ums driver in-line with the other axes. No functional change. Submitted by: Vicki Pfau (vi AT endrift.com) Approved

Re: svn commit: r316311 - in head: lib/libstand sys/boot/geli sys/boot/i386/gptboot sys/boot/i386/loader sys/boot/i386/zfsboot

2017-03-31 Thread Peter Grehan
So... can anyone provide a clue what's "explicit" (or different in any way) between explicit_bzero() and normal bzero()? https://www.freebsd.org/cgi/man.cgi?query=explicit_bzero&sektion=3&manpath=FreeBSD+12-current later, Peter. ___ svn-src-head@fr

svn commit: r330764 - head/usr.sbin/bhyvectl

2018-03-11 Thread Peter Grehan
Author: grehan Date: Sun Mar 11 08:27:11 2018 New Revision: 330764 URL: https://svnweb.freebsd.org/changeset/base/330764 Log: Add CR2 get/set support. Reported/Tested by: Fabian Freyer Reviewed by: araujo Differential Revision:https://reviews.freebsd.org/D14648 MFC after:

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 spec-comp

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: head/usr.sbin

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

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: head/usr.sbin/bhyve/

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.

Re: svn commit: r268837 - head/sys/netinet

2014-07-18 Thread Peter Grehan
Update the default RSS hash to the Chelsio T5 firmware one - it provides markedly better distribution of IPv6 address/ports than the previous key. That's actually the key that's used for verification in the Microsoft spec, though it looks like you have the bytes arranged backwards, which

Re: svn commit: r268837 - head/sys/netinet

2014-07-18 Thread Peter Grehan
Hi Adrian, Hah! I wonder why the key from the T3 NIC that Robert committed was so .. terrible then. Are you saying that the actual byte order is totally reversed, or just endian? The 32-bit word order of your array is reversed. The last 4 bytes should be the first, etc. Have a look at the v

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 Microsft

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 is

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 req/resp

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 pluribusnetworks

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

2013-06-27 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-27 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 Modi

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: r252494 - head/usr.sbin/bhyve

2013-07-01 Thread Peter Grehan
Author: grehan Date: Mon Jul 1 23:53:22 2013 New Revision: 252494 URL: http://svnweb.freebsd.org/changeset/base/252494 Log: Fix up option parsing to allow a colon in the config section. Clean up some other unnecessary code. Submitted by: Dinakar Medavaramdinnu sun at gmail Reviewed

Re: svn commit: r261504 - in head: lib/libvmmapi sys/amd64/include sys/amd64/vmm sys/amd64/vmm/intel sys/boot/common sys/boot/userboot/userboot usr.sbin/bhyveload

2014-02-04 Thread Peter Grehan
booted a 9.2 i386 kernel. Also, CURRENT/i386 was built from a 10.0/i386 VM and booted. The 8.4/i386 ISO also booted, though the installer had some issues with the geometry reported by virtio block. Some bughunting needed there for those interested. later, Peter.

Re: svn commit: r261909 - in head: sys/conf sys/dev/netmap sys/modules/netmap sys/net tools/tools/netmap

2014-02-14 Thread Peter Grehan
- kqueue support (BHyVe needs it); Thanks for that !! later, Peter. ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

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

2014-02-21 Thread Peter Grehan
Author: grehan Date: Fri Feb 21 22:45:35 2014 New Revision: 262311 URL: http://svnweb.freebsd.org/changeset/base/262311 Log: Fix virtio spec URL. Submitted by: lwhsu MFC after:1 week Modified: head/usr.sbin/bhyve/virtio.h Modified: head/usr.sbin/bhyve/virtio.h

svn commit: r262331 - in head: sys/boot/userboot sys/boot/userboot/userboot sys/boot/userboot/zfs usr.sbin/bhyveload

2014-02-21 Thread Peter Grehan
Author: grehan Date: Sat Feb 22 07:18:06 2014 New Revision: 262331 URL: http://svnweb.freebsd.org/changeset/base/262331 Log: ZFS boot support for bhyveload. Modelled after the i386 zfsloader. However, with no 2nd stage zfsboot to search for a bootable dataset, attempt a ZFS boot if ther

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

2014-02-25 Thread Peter Grehan
Author: grehan Date: Wed Feb 26 04:49:09 2014 New Revision: 262523 URL: http://svnweb.freebsd.org/changeset/base/262523 Log: Change the MK_ZFS != "no" case slightly to avoid a name clash with LIBZFS in bsd.lib.mk Submitted by: Max N Boyarov zotrix at bsd dot by OK'd by: sbruno M

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

2014-03-06 Thread Peter Grehan
Author: grehan Date: Fri Mar 7 06:23:37 2014 New Revision: 262884 URL: http://svnweb.freebsd.org/changeset/base/262884 Log: Open the uart emulation's backing tty in non-blocking mode. This fixes the issue of bhyve appearing to halt when using nmdm ports for the console, until a connection i

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-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head 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, wh

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-head@freebsd.org m

Re: svn commit: r273214 - in head/sys: amd64/vmm/intel modules/vmm

2014-10-17 Thread Peter Grehan
> Author: imp Date: Fri Oct 17 13:20:49 2014 New Revision: 273214 URL: https://svnweb.freebsd.org/changeset/base/273214 Log: Fix build to not bogusly always rebuild vmm.ko. Rename vmx_assym.s to vmx_assym.h to reflect that file's actual use and update vmx_support.S's include to match.

svn commit: r273748 - head/sys/x86/x86

2014-10-27 Thread Peter Grehan
Author: grehan Date: Mon Oct 27 22:02:35 2014 New Revision: 273748 URL: https://svnweb.freebsd.org/changeset/base/273748 Log: Output a summary of optional SVM features in dmesg similar to CPU features. If bootverbose is enabled, a detailed list is provided; otherwise, a single-line summary i

svn commit: r273749 - head/sys/amd64/vmm/amd

2014-10-27 Thread Peter Grehan
Author: grehan Date: Mon Oct 27 22:20:51 2014 New Revision: 273749 URL: https://svnweb.freebsd.org/changeset/base/273749 Log: Remove bhyve SVM feature printf's now that they are available in the general CPU feature detection code. Reviewed by: neel Modified: head/sys/amd64/vmm/amd/svm

svn commit: r274407 - head/sys/boot/common

2014-11-11 Thread Peter Grehan
Author: grehan Date: Tue Nov 11 22:03:11 2014 New Revision: 274407 URL: https://svnweb.freebsd.org/changeset/base/274407 Log: Fix incorrect reading of 32-bit modinfo by 64-bit loaders. The various structures in the mod_metadata set of a FreeBSD kernel and modules contain pointers. The Fre

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

2014-11-23 Thread Peter Grehan
Author: grehan Date: Sun Nov 23 23:07:21 2014 New Revision: 274931 URL: https://svnweb.freebsd.org/changeset/base/274931 Log: Change the lower bound for guest vmspace allocation to 0 instead of using the VM_MIN_ADDRESS constant. HardenedBSD redefines VM_MIN_ADDRESS to be 64K, which result

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

2015-05-11 Thread Peter Grehan
Author: grehan Date: Mon May 11 21:24:10 2015 New Revision: 282784 URL: https://svnweb.freebsd.org/changeset/base/282784 Log: Handling indirect descriptors is a capability of the host and not one that needs to be negotiated. Use the host capabilities field and not the negotiated field when v

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

2015-05-13 Thread Peter Grehan
Author: grehan Date: Wed May 13 17:38:07 2015 New Revision: 282865 URL: https://svnweb.freebsd.org/changeset/base/282865 Log: Set the subvendor field in config space to the vendor ID. This is required by the Windows virtio drivers to correctly match a device. Submitted by: Leon Dang (ld

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

2015-05-14 Thread Peter Grehan
Author: grehan Date: Thu May 14 21:08:48 2015 New Revision: 282922 URL: https://svnweb.freebsd.org/changeset/base/282922 Log: Bump the size of the blockif scatter-gather list to 67. The Windows virtio driver ignores the advertized seg_max field and assumes the host can accept up to 67 seg

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

2015-05-20 Thread Peter Grehan
Author: grehan Date: Thu May 21 04:19:22 2015 New Revision: 283168 URL: https://svnweb.freebsd.org/changeset/base/283168 Log: Temporarily revert r282922 which bumped the max descriptors. While there is no issued with the number of descriptors in a virtio indirect descriptor, it's a guest'

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 vmx_inject_pir()

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: head/sys/am

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 s

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 al

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, which

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 fu

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: head/sys/arm/conf/EXYNOS5250.comm

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 vm_exit

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-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-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 pseud

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: r258614 - head/usr.sbin/bhyve

2013-11-25 Thread Peter Grehan
Author: grehan Date: Tue Nov 26 03:00:54 2013 New Revision: 258614 URL: http://svnweb.freebsd.org/changeset/base/258614 Log: The Data Byte Count (DBC) field of a Physical Region Descriptor Table is 22 bits, with the bit 31 being the interrupt-on-completion bit. OpenBSD and UEFI set this

svn commit: r258668 - in head/usr.sbin: bhyve bhyveload

2013-11-26 Thread Peter Grehan
Author: grehan Date: Wed Nov 27 00:21:37 2013 New Revision: 258668 URL: http://svnweb.freebsd.org/changeset/base/258668 Log: Allow bhyve and bhyveload to attach to tty devices. bhyveload: introduce the -c parameter to select a tty for output (or "stdio") bhyve: allow the puc and lp

  1   2   3   >