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

svn commit: r368477 - stable/12/usr.sbin/bhyve

2020-12-08 Thread Peter Grehan
Author: grehan Date: Wed Dec 9 02:47:39 2020 New Revision: 368477 URL: https://svnweb.freebsd.org/changeset/base/368477 Log: MFC r367762 Add legacy debug/test interfaces for kvm unit tests. Added: stable/12/usr.sbin/bhyve/pctestdev.c - copied unchanged from r367762,

svn commit: r368135 - stable/12/sys/amd64/vmm/amd

2020-11-28 Thread Peter Grehan
Author: grehan Date: Sun Nov 29 00:54:13 2020 New Revision: 368135 URL: https://svnweb.freebsd.org/changeset/base/368135 Log: MFC r368047 Remove manual instruction encodings for VMLOAD, VMRUN, and VMSAVE. Modified: stable/12/sys/amd64/vmm/amd/svm_support.S Directory Properties:

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

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.

svn commit: r367975 - svnadmin/conf

2020-11-23 Thread Peter Grehan
Author: grehan Date: Tue Nov 24 02:05:43 2020 New Revision: 367975 URL: https://svnweb.freebsd.org/changeset/base/367975 Log: Restore Bryan Venteicher's commit bit grehan to rementor Approved by: core@ Modified: svnadmin/conf/access svnadmin/conf/mentors Modified:

svn commit: r367859 - stable/12/usr.sbin/bhyve

2020-11-19 Thread Peter Grehan
Author: grehan Date: Fri Nov 20 03:33:30 2020 New Revision: 367859 URL: https://svnweb.freebsd.org/changeset/base/367859 Log: MFC r367709 Fix regression in AHCI controller settings. PR: 250924 Submitted by: Rolf Stalder Reported by: Rolf Stalder Relnotes: Yes Modified:

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: 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: 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

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

2020-09-17 Thread Peter Grehan
Author: grehan Date: Fri Sep 18 05:54:59 2020 New Revision: 365873 URL: https://svnweb.freebsd.org/changeset/base/365873 Log: Fix byte-reversal of language ID in string descriptor. The language id of String Descriptors in usb mouse is 0x0904, while the spec require 0x0409 (English -

svn commit: r365560 - in stable/12/sys: amd64/amd64 amd64/include amd64/vmm amd64/vmm/intel i386/i386 x86/include

2020-09-10 Thread Peter Grehan
Author: grehan Date: Thu Sep 10 10:49:59 2020 New Revision: 365560 URL: https://svnweb.freebsd.org/changeset/base/365560 Log: MFC r364340, r364343, r364656 r364340Support guest rdtscp and rdpid instructions on Intel VT-x Follow-on commits: r364343Export a routine to

svn commit: r365443 - stable/12/sys/amd64/vmm

2020-09-07 Thread Peter Grehan
Author: grehan Date: Tue Sep 8 03:55:49 2020 New Revision: 365443 URL: https://svnweb.freebsd.org/changeset/base/365443 Log: MFC 364339 Allow guest device MMIO access from bootmem memory segments. Differential Revision: https://reviews.freebsd.org/D25955 Modified:

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: 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

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: 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"

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

svn commit: r364334 - in stable/12: sys/sys usr.sbin/bhyve

2020-08-17 Thread Peter Grehan
Author: grehan Date: Tue Aug 18 03:40:09 2020 New Revision: 364334 URL: https://svnweb.freebsd.org/changeset/base/364334 Log: MFC 363596, 363719, 363733 363596Support the setting of additional AHCI controller parameters. 363719 Definition for the 'removable media flag' from

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: 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

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)

svn commit: r363240 - stable/12/usr.sbin/bhyve

2020-07-15 Thread Peter Grehan
Author: grehan Date: Thu Jul 16 03:05:10 2020 New Revision: 363240 URL: https://svnweb.freebsd.org/changeset/base/363240 Log: MFC r362952 Silence ACPI RTC error/warning in Linux guests. Modified: stable/12/usr.sbin/bhyve/pm.c Directory Properties: stable/12/ (props changed)

svn commit: r363239 - stable/12/usr.sbin/bhyve

2020-07-15 Thread Peter Grehan
Author: grehan Date: Thu Jul 16 02:53:13 2020 New Revision: 363239 URL: https://svnweb.freebsd.org/changeset/base/363239 Log: MFC r362644 Prevent calling USB backends multiple times. Modified: stable/12/usr.sbin/bhyve/pci_xhci.c stable/12/usr.sbin/bhyve/usb_mouse.c Directory

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

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

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

svn commit: r362643 - head

2020-06-26 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: r361686 - stable/12/usr.sbin/bhyve

2020-05-31 Thread Peter Grehan
Author: grehan Date: Mon Jun 1 05:14:01 2020 New Revision: 361686 URL: https://svnweb.freebsd.org/changeset/base/361686 Log: MFC r361442 Fix pci-passthru MSI issues with OpenBSD guests PR: 245392 Modified: stable/12/usr.sbin/bhyve/pci_emul.c stable/12/usr.sbin/bhyve/pci_emul.h

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

2020-05-25 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.

svn commit: r361151 - releng/11.4/sys/amd64/vmm

2020-05-18 Thread Peter Grehan
Author: grehan Date: Mon May 18 07:06:35 2020 New Revision: 361151 URL: https://svnweb.freebsd.org/changeset/base/361151 Log: MFS r361132 Hide host CPUID 0x15 TSC/Crystal ratio/freq info from guest Approved by: re (kib), bz (mentor) Modified: releng/11.4/sys/amd64/vmm/x86.c

svn commit: r361132 - stable/11/sys/amd64/vmm

2020-05-17 Thread Peter Grehan
Author: grehan Date: Sun May 17 11:13:12 2020 New Revision: 361132 URL: https://svnweb.freebsd.org/changeset/base/361132 Log: MFC r361064 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

svn commit: r361131 - stable/12/sys/amd64/vmm

2020-05-17 Thread Peter Grehan
Author: grehan Date: Sun May 17 11:09:38 2020 New Revision: 361131 URL: https://svnweb.freebsd.org/changeset/base/361131 Log: MFC r361064 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

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

svn commit: r360432 - in stable/11/sys/amd64/vmm: intel io

2020-04-28 Thread Peter Grehan
Author: grehan Date: Tue Apr 28 08:28:13 2020 New Revision: 360432 URL: https://svnweb.freebsd.org/changeset/base/360432 Log: MFC r358848: Untangle TPR shadowing and APIC virtualization. This speeds up Windows guests tremendously. The patch does: Add a new tuneable

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: 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:

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.

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. ___

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-all@freebsd.org mailing list

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

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 -

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

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

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: 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

svn commit: r332517 - stable/11/usr.sbin/bhyvectl

2018-04-15 Thread Peter Grehan
Author: grehan Date: Sun Apr 15 20:29:37 2018 New Revision: 332517 URL: https://svnweb.freebsd.org/changeset/base/332517 Log: MFC r330764 Add CR2 get/set support. Modified: stable/11/usr.sbin/bhyvectl/bhyvectl.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r332516 - stable/11/sys/amd64/vmm

2018-04-15 Thread Peter Grehan
Author: grehan Date: Sun Apr 15 20:20:08 2018 New Revision: 332516 URL: https://svnweb.freebsd.org/changeset/base/332516 Log: MFC r325261 Emulate the "OR reg, r/m" instruction (opcode 0BH). This is needed for the HDA emulation with FreeBSD guests. Modified:

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: 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: 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

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

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

svn commit: r320935 - releng/11.1/usr.sbin/bhyve

2017-07-13 Thread Peter Grehan
Author: grehan Date: Thu Jul 13 08:13:29 2017 New Revision: 320935 URL: https://svnweb.freebsd.org/changeset/base/320935 Log: MFS 320891 MFC r317542, r317543, r317543 317542 comment fix 317543 set rfb default port 317543 listen on localhost by default for

svn commit: r320934 - in releng/11.1: lib/libvmmapi usr.sbin/bhyve

2017-07-13 Thread Peter Grehan
Author: grehan Date: Thu Jul 13 07:55:00 2017 New Revision: 320934 URL: https://svnweb.freebsd.org/changeset/base/320934 Log: MFS 320866 MFC 313727, 317483 In addition, replace the missing caph routines with small helper functions (bhyverun.c) or an open-coded

svn commit: r320933 - releng/11.1/usr.sbin/bhyve

2017-07-13 Thread Peter Grehan
Author: grehan Date: Thu Jul 13 07:32:55 2017 New Revision: 320933 URL: https://svnweb.freebsd.org/changeset/base/320933 Log: MFS r320855 ps2 mouse fixes, found by plan9/9front. Approved by:re (kib) Modified: releng/11.1/usr.sbin/bhyve/ps2mouse.c Directory Properties:

svn commit: r320891 - stable/11/usr.sbin/bhyve

2017-07-11 Thread Peter Grehan
Author: grehan Date: Tue Jul 11 06:39:12 2017 New Revision: 320891 URL: https://svnweb.freebsd.org/changeset/base/320891 Log: MFC r317542, r317543, r317543 317542 comment fix 317543 set rfb default port 317543 listen on localhost by default for rfb Modified:

svn commit: r320866 - in stable/11: lib/libvmmapi usr.sbin/bhyve

2017-07-10 Thread Peter Grehan
Author: grehan Date: Mon Jul 10 06:28:50 2017 New Revision: 320866 URL: https://svnweb.freebsd.org/changeset/base/320866 Log: MFC 313727, 317483 In addition, replace the missing caph routines with small helper functions (bhyverun.c) or an open-coded replacement (uart_emul.c)

svn commit: r320855 - stable/11/usr.sbin/bhyve

2017-07-09 Thread Peter Grehan
Author: grehan Date: Mon Jul 10 03:11:48 2017 New Revision: 320855 URL: https://svnweb.freebsd.org/changeset/base/320855 Log: MFC r311699 ps2 mouse fixes, found by plan9/9front. Reminded by: sevan Modified: stable/11/usr.sbin/bhyve/ps2mouse.c Directory Properties: stable/11/

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 +

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=3=FreeBSD+12-current later, Peter. ___ svn-src-all@freebsd.org

svn commit: r315930 - stable/11/sys/dev/usb/input

2017-03-24 Thread Peter Grehan
Author: grehan Date: Sat Mar 25 05:41:34 2017 New Revision: 315930 URL: https://svnweb.freebsd.org/changeset/base/315930 Log: MFC r315716 Bring the handling of the y axis in the ums driver in-line with the other axes. No functional change. Modified:

svn commit: r315929 - stable/11/usr.sbin/bhyve

2017-03-24 Thread Peter Grehan
Author: grehan Date: Sat Mar 25 05:21:49 2017 New Revision: 315929 URL: https://svnweb.freebsd.org/changeset/base/315929 Log: MFC r315715 Fix a type in bhyve's USB mouse emulation. Modified: stable/11/usr.sbin/bhyve/usb_mouse.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r315928 - in stable/10/sys: amd64/vmm x86/include x86/x86

2017-03-24 Thread Peter Grehan
Author: grehan Date: Sat Mar 25 05:09:03 2017 New Revision: 315928 URL: https://svnweb.freebsd.org/changeset/base/315928 Log: MFC r315361 and r315364: Hide MONITORX/MWAITX from guests. r315361 Add the AMD MONITORX/MWAITX feature definition introduced in Bulldozer/Ryzen CPUs.

svn commit: r315927 - in stable/11/sys: amd64/vmm x86/include x86/x86

2017-03-24 Thread Peter Grehan
Author: grehan Date: Sat Mar 25 05:05:12 2017 New Revision: 315927 URL: https://svnweb.freebsd.org/changeset/base/315927 Log: MFC r315361 and r315364: Hide MONITORX/MWAITX from guests. r315361 Add the AMD MONITORX/MWAITX feature definition introduced in Bulldozer/Ryzen CPUs.

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

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.

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

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:

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

2017-02-16 Thread Peter Grehan
Author: grehan Date: Thu Feb 16 17:08:43 2017 New Revision: 313812 URL: https://svnweb.freebsd.org/changeset/base/313812 Log: MFC r311702 Use correct PCI device id for virtio-rng. This prevented the device from attaching with a Windows guest (most other guests use the device type

svn commit: r313811 - stable/11/usr.sbin/bhyve

2017-02-16 Thread Peter Grehan
Author: grehan Date: Thu Feb 16 17:07:20 2017 New Revision: 313811 URL: https://svnweb.freebsd.org/changeset/base/313811 Log: MFC r311702 Use correct PCI device id for virtio-rng. This prevented the device from attaching with a Windows guest (most other guests use the device type

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

2017-01-08 Thread Peter Grehan
Author: grehan Date: Sun Jan 8 20:58:58 2017 New Revision: 311702 URL: https://svnweb.freebsd.org/changeset/base/311702 Log: Use correct PCI device id for virtio-rng. This prevented the device from attaching with a Windows guest (most other guests use the device type for matching)

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

2017-01-08 Thread Peter Grehan
Author: grehan Date: Sun Jan 8 20:29:35 2017 New Revision: 311699 URL: https://svnweb.freebsd.org/changeset/base/311699 Log: Make sure the 'Always-one' bit is always set to one, in the first byte of the 3-byte mouse data report. Plan9/9front requires this. Switch over to using

svn commit: r305718 - stable/11/usr.sbin/bhyve

2016-09-11 Thread Peter Grehan
Author: grehan Date: Mon Sep 12 00:24:56 2016 New Revision: 305718 URL: https://svnweb.freebsd.org/changeset/base/305718 Log: MFC r305061 Invert calloc(3) argument order Modified: stable/11/usr.sbin/bhyve/pci_e82545.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r305717 - stable/11/usr.sbin/bhyve

2016-09-11 Thread Peter Grehan
Author: grehan Date: Mon Sep 12 00:21:55 2016 New Revision: 305717 URL: https://svnweb.freebsd.org/changeset/base/305717 Log: MFC r303352 - Change the fbuf "vga" parameter to "vga=on|io|off". "io" is the default, and allows VGA i/o registers to be accessed. This is

svn commit: r305716 - stable/11/usr.sbin/bhyve

2016-09-11 Thread Peter Grehan
Author: grehan Date: Mon Sep 12 00:16:26 2016 New Revision: 305716 URL: https://svnweb.freebsd.org/changeset/base/305716 Log: MFC r302972,r303349 r302972 Disallow interrupt requests on disabled endpoints. r303349 Catch another case where an XHCI interrupt was being

svn commit: r305714 - stable/11/usr.sbin/bhyve

2016-09-11 Thread Peter Grehan
Author: grehan Date: Mon Sep 12 00:03:14 2016 New Revision: 305714 URL: https://svnweb.freebsd.org/changeset/base/305714 Log: MFC r302546 Implement right shift/ctl, and convert the VNC/xorg scancode of 0xff03 into right-alt. Modified: stable/11/usr.sbin/bhyve/ps2kbd.c Directory

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

2016-07-26 Thread Peter Grehan
Author: grehan Date: Wed Jul 27 00:03:29 2016 New Revision: 303352 URL: https://svnweb.freebsd.org/changeset/base/303352 Log: - Change the fbuf "vga" parameter to "vga=on|io|off". "io" is the default, and allows VGA i/o registers to be accessed. This is required by Win7/2k8 graphics

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

2016-07-26 Thread Peter Grehan
Author: grehan Date: Tue Jul 26 23:40:25 2016 New Revision: 303349 URL: https://svnweb.freebsd.org/changeset/base/303349 Log: Catch another case where an XHCI interrupt was being injected without state being set up. This fixes a core dump when dropping to the UEFI prompt with graphics

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

2016-07-17 Thread Peter Grehan
Author: grehan Date: Sun Jul 17 20:34:46 2016 New Revision: 302972 URL: https://svnweb.freebsd.org/changeset/base/302972 Log: Disallow interrupt requests on disabled endpoints. Submitted by: Leon Dang MFC after:3 days Modified: head/usr.sbin/bhyve/pci_xhci.c Modified:

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

2016-07-11 Thread Peter Grehan
Author: grehan Date: Mon Jul 11 06:31:15 2016 New Revision: 302546 URL: https://svnweb.freebsd.org/changeset/base/302546 Log: Implement right shift/ctl, and convert the VNC/xorg scancode of 0xff03 into right-alt. Reported by: lme@ MFC after:1 week Modified:

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

2016-07-05 Thread Peter Grehan
This breaks the external GCC 5.2 build: Fix being worked on in https://reviews.freebsd.org/D7119 later, Peter. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to

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

2016-07-03 Thread Peter Grehan
Author: grehan Date: Mon Jul 4 03:19:06 2016 New Revision: 302332 URL: https://svnweb.freebsd.org/changeset/base/302332 Log: Import bhyve_graphics into CURRENT. Thanks to all who tested this on the branch. Original commit message: Initial bhyve native graphics support. This

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

2016-04-20 Thread Peter Grehan
Author: grehan Date: Wed Apr 20 17:05:32 2016 New Revision: 298355 URL: https://svnweb.freebsd.org/changeset/base/298355 Log: Don't use SYSDIR to avoid conflicts with existing usage. Also, use SRCTOP to locate the top of the source tree instead of a relative path. PR: 208856

Re: svn commit: r297806 - head/sys/amd64/vmm/amd

2016-04-11 Thread Peter Grehan
Hi Shawn, Pardon my ignorance, but does that mean that prior to this commit, a bhyve guest on AMD could modify hardware? No. Before this commit, the guest would exit if it attempted to update microcode. Now it just ignores the attempt. later, Peter.

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

2016-04-09 Thread Peter Grehan
Author: grehan Date: Sun Apr 10 05:58:19 2016 New Revision: 297778 URL: https://svnweb.freebsd.org/changeset/base/297778 Log: Allow the location of the kernel source tree to be overridden. This makes it easier for the bhyve executable to be built out of the tree. Modified:

Re: svn commit: r296428 - head/sys/boot/common

2016-03-07 Thread Peter Grehan
Are the CFI directives so that DTRACE works, or is there some other reason? It allows gdb to backtrace across exception frames. later, Peter. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To

svn commit: r295124 - in stable/10: lib/libvmmapi share/examples/bhyve sys/amd64/include sys/amd64/vmm sys/amd64/vmm/amd sys/amd64/vmm/intel sys/amd64/vmm/io sys/sys usr.sbin/bhyve usr.sbin/bhyvect...

2016-02-01 Thread Peter Grehan
Author: grehan Date: Mon Feb 1 14:56:11 2016 New Revision: 295124 URL: https://svnweb.freebsd.org/changeset/base/295124 Log: MFC r284539, r284630, r284688, r284877, r285217, r285218, r286837, r286838, r288470, r288522, r288524, r288826, r289001 Pull in bhyve bug fixes and

svn commit: r295084 - svnadmin/conf

2016-01-30 Thread Peter Grehan
Author: grehan Date: Sat Jan 30 20:48:45 2016 New Revision: 295084 URL: https://svnweb.freebsd.org/changeset/base/295084 Log: Welcome Anish Gupta (anish) as a new src committer. Anish added support for AMD/SVM processors to bhyve and will be continuing to work on that along with new

svn commit: r292061 - head

2015-12-10 Thread Peter Grehan
Author: grehan Date: Thu Dec 10 12:12:47 2015 New Revision: 292061 URL: https://svnweb.freebsd.org/changeset/base/292061 Log: vmm is still maintained. Modified: head/MAINTAINERS Modified: head/MAINTAINERS == ---

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

2015-10-05 Thread Peter Grehan
Author: grehan Date: Mon Oct 5 14:57:45 2015 New Revision: 288826 URL: https://svnweb.freebsd.org/changeset/base/288826 Log: Clean up some harmless unimplemented-command warning messages. - Don't advertize trusted-computing capability in the Identify page. This prevents Windows from

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

2015-10-02 Thread Peter Grehan
Author: grehan Date: Fri Oct 2 22:05:51 2015 New Revision: 288524 URL: https://svnweb.freebsd.org/changeset/base/288524 Log: Fix post-test typo that snuck in. Modified: head/usr.sbin/bhyve/fwctl.c Modified: head/usr.sbin/bhyve/fwctl.c

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

2015-10-02 Thread Peter Grehan
y, because file is newly added) +++ head/usr.sbin/bhyve/fwctl.c Fri Oct 2 21:09:49 2015(r288522) @@ -0,0 +1,549 @@ +/*- + * Copyright (c) 2015 Peter Grehan <gre...@freebsd.org> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + *

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

2015-10-01 Thread Peter Grehan
Author: grehan Date: Fri Oct 2 02:09:50 2015 New Revision: 288470 URL: https://svnweb.freebsd.org/changeset/base/288470 Log: - Increase the max number of indirect descriptors to match the largest that the Windows virtio driver can send down - Always advertize indirect descriptors. The

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

2015-08-17 Thread Peter Grehan
Author: grehan Date: Mon Aug 17 05:59:36 2015 New Revision: 286838 URL: https://svnweb.freebsd.org/changeset/base/286838 Log: Add simple (no-op) emulations for the CHECK_POWER_MODE, READ_VERIFY and READ_VERIFY_EXT commands. Reviewed by: mav Modified: head/usr.sbin/bhyve/pci_ahci.c

svn commit: r286837 - head/sys/sys

2015-08-16 Thread Peter Grehan
Author: grehan Date: Mon Aug 17 05:56:41 2015 New Revision: 286837 URL: https://svnweb.freebsd.org/changeset/base/286837 Log: Add define for SATA Check-Power-Mode command, 0xe5. Modified: head/sys/sys/ata.h Modified: head/sys/sys/ata.h

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

2015-07-06 Thread Peter Grehan
This seems like a wrong fix. A real 3-wire serial console doesn't have DCD and DSR wired on. Why isn't the right fix here having the user with this problem to do stty -f /dev/ttyu0.lock clocal, maybe in rc.local? Hmmm, or maybe it would be right for getty to do the equivelent when it sees a

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

2015-07-06 Thread Peter Grehan
Ok, so I just tested on real hardware, and something is wrong w/ FreeBSD's behavior... Could this be a change between 10 and HEAD? uart_tty.c r264175 wasn't MFC'd - see UPDATING, 20140405 for the details. later, Peter. ___ svn-src-all@freebsd.org

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

2015-07-06 Thread Peter Grehan
Though there is a question is why DCD isn't assert by bhyve when there is a session attached to the console... Modem signal policy wasn't implemented. The workaround now is that DCD is permanently asserted, but at some point when a proper terminal backend is in place, the signal policy would

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

  1   2   3   >