Page MenuHomeFreeBSD
Feed Advanced Search

Jan 23 2018

grehan updated the test plan for D14022: NVMe emulation for bhyve (improved).
Jan 23 2018, 6:19 AM
grehan added a reviewer for D14022: NVMe emulation for bhyve (improved): bhyve.
Jan 23 2018, 6:09 AM
grehan added a comment to D13995: NVMe controller emulator for bhyve..

The updated version of this code is at https://reviews.freebsd.org/D14022

Jan 23 2018, 6:08 AM · bhyve
grehan added a reviewer for D14022: NVMe emulation for bhyve (improved): sux2mfgj_gmail.com.
Jan 23 2018, 6:07 AM
grehan updated subscribers of D14022: NVMe emulation for bhyve (improved).
Jan 23 2018, 6:06 AM
grehan added reviewers for D14022: NVMe emulation for bhyve (improved): trasz, imp.
Jan 23 2018, 6:05 AM
grehan created D14022: NVMe emulation for bhyve (improved).
Jan 23 2018, 6:03 AM

Jan 21 2018

grehan added a comment to D13995: NVMe controller emulator for bhyve..

Leon Dang has also been working on NVMe emulation, and his version works with Linux, Windows and UEFI boot. I'll post that code for review since it is a bit more recent and tested. In the meantime, that version can be seen at www.freebsd.org/~grehan/pci_nvme.c

Jan 21 2018, 12:06 AM · bhyve

Jan 17 2018

grehan requested changes to D13780: vmm/svm: post LAPIC interrupts using event injection rather than virtual interrupts.

@avg I will look at and test D13828.

Jan 17 2018, 6:45 AM

Jan 15 2018

grehan accepted D13919: mitigate against CVE-2017-5715 by clearing registers upon returning from the guest.
Jan 15 2018, 6:09 PM
grehan added a comment to D13919: mitigate against CVE-2017-5715 by clearing registers upon returning from the guest.

Tested the SVM codepath with a Win10 guest on an AMD Sempron APU.

Jan 15 2018, 6:08 PM
grehan added a reviewer for D13919: mitigate against CVE-2017-5715 by clearing registers upon returning from the guest: bhyve.

Add bhyve review group.

Jan 15 2018, 6:07 PM
grehan committed rS327990: The vmm(4) man page is conditional on MK_BHYVE..
The vmm(4) man page is conditional on MK_BHYVE.
Jan 15 2018, 4:52 AM
grehan added a comment to D13780: vmm/svm: post LAPIC interrupts using event injection rather than virtual interrupts.

Dropping kern.hz to 50 on the Sempron seemed to show the problem a bit more: the 2nd phase of a Win10 install wasn't able to complete. With the diff, the install was able to complete. Subjectively things seemed quicker, particularly the disk-writing part of the install.

Jan 15 2018, 12:28 AM

Jan 14 2018

grehan added a comment to D13780: vmm/svm: post LAPIC interrupts using event injection rather than virtual interrupts.

Some more info on how timing-sensitive this is: the 10.3 install Ryzen insta-repro doesn't happen with a 4 vCPU guest on a 1.3Gzh Sempron 3850 APU, nor with 4/6/8 vCPU guests on an Opteron 6320 :( Also, Win10 Pro 2 vCPU guests install fine on both systems, where the Ryzen shows a lockup very quickly.

Jan 14 2018, 6:29 PM

Jan 11 2018

grehan added a comment to D13828: vmm/svm: use special state for LAPIC interrupt injected as virtual interrupt.

The VIRQ injection doesn't cover all cases - it misses out the modification of the TPR register via CR8.

Jan 11 2018, 7:48 AM

Jan 10 2018

grehan added a comment to D13780: vmm/svm: post LAPIC interrupts using event injection rather than virtual interrupts.

CR8 write exits are required or the same situation will occur as with VIRQ - the update written to the V_TPR needs to be acted on immediately by the APIC emulation code since an interrupt that was blocked may need to be injected.

Jan 10 2018, 3:02 AM

Jan 8 2018

grehan added a comment to D13780: vmm/svm: post LAPIC interrupts using event injection rather than virtual interrupts.

Good to know that it fixes the issue on the Phenom. My Ryzen 1700 is pre-July17 so can't necessarily be trusted.

Jan 8 2018, 10:02 PM
grehan added a comment to D13780: vmm/svm: post LAPIC interrupts using event injection rather than virtual interrupts.

Also, I think CR8 write exits are needed to force re-evaluation of the TPR for the software APIC model.

Jan 8 2018, 7:37 AM
grehan added a comment to D13780: vmm/svm: post LAPIC interrupts using event injection rather than virtual interrupts.

I didn't have success with this on my Ryzen 1700, but it's also possibly buggy :( I'll try with an Opteron tomorrow.

Jan 8 2018, 7:34 AM

Dec 21 2017

grehan accepted D13573: recognize a pending virtual interrupt while emulating halt instruction.
Dec 21 2017, 6:10 PM

Dec 20 2017

grehan added a comment to D13229: Save and restore guest debug registers..

This looks fine. I'll test on AMD. Some comments:

Dec 20 2017, 1:47 AM

Dec 6 2017

grehan updated subscribers of D10335: VirtFS/9p filesystem passthrough support (virtio-9p).

Adding tychon@ as a subscriber: he's been doing some 9P work in recent times.

Dec 6 2017, 1:19 AM

Nov 26 2017

grehan accepted D13062: Add vmm(4) man page.

Fine with the minor additions.

Nov 26 2017, 5:14 AM

Nov 9 2017

grehan accepted D12985: bhyve: don't try to capsicumise after failed open.

Thanks for this patch.

Nov 9 2017, 2:40 PM · bhyve

Nov 8 2017

grehan accepted D12976: Fix issue with VXLAN-encapsulated rx h/w checksum.
Nov 8 2017, 3:26 AM

Nov 1 2017

grehan added a comment to D12419: HD Audio Emulation For Bhyve (Based on D7840).

The OR emulation has been checked in with r325261

Nov 1 2017, 3:29 AM
grehan added a comment to D12419: HD Audio Emulation For Bhyve (Based on D7840).

The OR emulation has been checked in with r325261

Nov 1 2017, 3:29 AM
grehan committed rS325261: Emulate the "OR reg, r/m" instruction (opcode 0BH)..
Emulate the "OR reg, r/m" instruction (opcode 0BH).
Nov 1 2017, 3:27 AM
grehan closed D12832: Add 0xb OR opcode support to bhyve's instruction emulation.
Nov 1 2017, 3:27 AM

Oct 30 2017

grehan created D12832: Add 0xb OR opcode support to bhyve's instruction emulation.
Oct 30 2017, 7:17 AM

Oct 27 2017

grehan accepted D12661: Rework pass through changes in r305485 to be safer..

Matt Macy has some additional reset code for non-FLR devices (in his case GPGPUs).

Oct 27 2017, 2:04 PM

Oct 20 2017

grehan added a comment to D12419: HD Audio Emulation For Bhyve (Based on D7840).

I disabled capsicum by commenting out the cap_enter() call, and with the above struct revert, was able to cat a .WAV file and also use mpg123 to play a long mp3 file on a FreeBSD 11.1/amd64 guest, with a cheap USB audio adapter for output. Volume control seemed to work fine with mpg123. There was a very small glitch/skip when the audio was first played (or on resume after pause in mpg123).

Oct 20 2017, 4:29 AM

Oct 15 2017

grehan added a comment to D12661: Rework pass through changes in r305485 to be safer..

Looking at this...

Oct 15 2017, 6:16 PM

Sep 26 2017

grehan added a comment to D12419: HD Audio Emulation For Bhyve (Based on D7840).

There are a bunch of minor style(9) issues.

Sep 26 2017, 6:56 PM

Sep 5 2017

grehan accepted D12212: bhyve: actually call bhyve_caph_cache_catpages.

Thanks - this keeps the behviour in sync with head where the routines are hidden in caph helpers, so my opinion is it is best to keep the catpages call.

Sep 5 2017, 5:35 AM

Aug 15 2017

grehan added a comment to D11768: Add support to devel/libhyve-remote. (VNC Server).

Some high-level comments:

Aug 15 2017, 4:04 PM

Aug 3 2017

grehan accepted D11846: Add to sysreg definition for coproc regs required for virtualization.

I checked the numbers and they look good.

Aug 3 2017, 6:15 PM

Jul 29 2017

grehan requested changes to D11768: Add support to devel/libhyve-remote. (VNC Server).

I'm looking at this now. I think there will need to be some changes in the mechanics for this, and also the abstraction. I'll write up something longer with more detail.

Jul 29 2017, 6:29 PM

Jul 28 2017

grehan accepted D11775: bhyve/vga.c: fix atc_color_select_67 bit shift.
Jul 28 2017, 6:25 PM
grehan accepted D11774: bhyve/pci_e82545.c: squelch gcc warning for noreturn procedure.

Shutdown hooks will make it some day...

Jul 28 2017, 5:55 PM

Jul 13 2017

grehan committed rS320935: MFS 320891.
MFS 320891
Jul 13 2017, 8:13 AM
grehan committed rS320934: MFS 320866.
MFS 320866
Jul 13 2017, 7:55 AM
grehan committed rS320933: MFS r320855.
MFS r320855
Jul 13 2017, 7:33 AM

Jul 11 2017

grehan committed rS320891: MFC r317542, r317543, r317543.
MFC r317542, r317543, r317543
Jul 11 2017, 6:39 AM

Jul 10 2017

grehan committed rS320866: MFC 313727, 317483.
MFC 313727, 317483
Jul 10 2017, 6:29 AM
grehan committed rS320855: MFC r311699.
MFC r311699
Jul 10 2017, 3:12 AM

Jul 6 2017

grehan accepted D11485: amd-vi: fix gcc build errors.

Tested fine on a Ryzen 1700, passing through an em device to an 11.1 guest, and doing lots of network file transfers.

Jul 6 2017, 7:36 AM

Jul 5 2017

grehan added a comment to D11485: amd-vi: fix gcc build errors.

Thanks for this work. Let me give it a quick test (later today) to verify.

Jul 5 2017, 12:57 PM

Jul 3 2017

grehan added a comment to D11113: Intel SGX driver.

(interested in adding bhyve support for SGX)

Jul 3 2017, 11:50 PM

Jun 8 2017

grehan accepted D11071: Make the VNC authentication build with LibreSSL on HardenedBSD and TrueOS..
Jun 8 2017, 4:36 AM
grehan accepted D11090: Allow sysctl kern.vm_guest to return bhyve when running under bhyve..
Jun 8 2017, 3:41 AM

Jun 1 2017

grehan accepted D10818: VNC authentication based on review D7029.

Please credit Fabian Freyer (from D7029) as the original submitter of this code when committing.

Jun 1 2017, 10:28 PM

May 26 2017

grehan added inline comments to D10818: VNC authentication based on review D7029.
May 26 2017, 2:37 AM

May 25 2017

grehan added inline comments to D10818: VNC authentication based on review D7029.
May 25 2017, 1:10 AM

May 24 2017

grehan added a comment to D10581: Raise BLOCKIF_IOV_MAX to 128. Windows uses at least 67 and qemu alsosupports 128..

There was already a review for this in D9033 where I pointed out the initial fix by myself that bumped the number of descs, and the subsequent backout when it broke Linux guests :(

May 24 2017, 9:52 PM

May 18 2017

grehan requested changes to D10581: Raise BLOCKIF_IOV_MAX to 128. Windows uses at least 67 and qemu alsosupports 128..

I emailed Marcelo some changes I had to this - it doesn't work as is.

May 18 2017, 11:00 PM
grehan added a comment to D10170: Capsicumize cpuset_*.

Any chance this could be committed ?

May 18 2017, 2:33 AM

May 2 2017

grehan added a comment to D10014: bhyve: document fbuf and xhci devices in the manpage.

I missed one thing yesterday. The default for vga is "on", not "io". Lines 363-364 of pci_fbuf.c.

May 2 2017, 6:26 PM

May 1 2017

grehan added inline comments to D10540: vmx: explicit checking for necessary invvpid/invept types.
May 1 2017, 4:43 PM

Apr 27 2017

grehan added inline comments to D10014: bhyve: document fbuf and xhci devices in the manpage.
Apr 27 2017, 4:34 PM

Apr 24 2017

grehan accepted D10049: Add AMD IOMMU support in bhyve.

Thanks for the clarification on v2.

Apr 24 2017, 5:25 AM

Apr 13 2017

grehan added inline comments to D10213: Adding virtualization support for ARMv7 platforms.
Apr 13 2017, 9:39 PM · ARM

Apr 10 2017

grehan added a comment to D10335: VirtFS/9p filesystem passthrough support (virtio-9p).

You'll have to use openat(), with the fd set up prior to cap_enter(). Here's a small example from theraven@freebsd.org, who I'm sure will be happy to provide further advice :) http://www.informit.com/articles/article.aspx?p=1924012&seqNum=2

Apr 10 2017, 2:15 AM

Apr 9 2017

grehan added a comment to D10335: VirtFS/9p filesystem passthrough support (virtio-9p).

Any thoughts on the interaction with capsicum ? Seems like you just need blanket access underneath a particular directory.

Apr 9 2017, 10:17 PM
grehan accepted D10014: bhyve: document fbuf and xhci devices in the manpage.

Fine to commit after the max fbuf res added.

Apr 9 2017, 5:53 PM

Apr 5 2017

grehan added a comment to D9921: AMD-Vi (IOMMU)support for bhyve.

Fine by me. I didn't check, but were all the comments in this applied to the new revision ?

Apr 5 2017, 12:57 AM

Mar 25 2017

grehan committed rS315930: MFC r315716.
MFC r315716
Mar 25 2017, 5:41 AM
grehan committed rS315929: MFC r315715 Fix a type in bhyve's USB mouse emulation..
MFC r315715 Fix a type in bhyve's USB mouse emulation.
Mar 25 2017, 5:22 AM
grehan committed rS315928: MFC r315361 and r315364: Hide MONITORX/MWAITX from guests..
MFC r315361 and r315364: Hide MONITORX/MWAITX from guests.
Mar 25 2017, 5:09 AM
grehan committed rS315927: MFC r315361 and r315364: Hide MONITORX/MWAITX from guests..
MFC r315361 and r315364: Hide MONITORX/MWAITX from guests.
Mar 25 2017, 5:05 AM

Mar 23 2017

grehan added inline comments to D10014: bhyve: document fbuf and xhci devices in the manpage.
Mar 23 2017, 12:13 AM

Mar 22 2017

grehan closed D9595: Fix ums handling of y axis by committing rS315716: Bring the handling of the y axis in the ums driver in-line with the other.
Mar 22 2017, 5:07 PM
grehan committed rS315716: Bring the handling of the y axis in the ums driver in-line with the other.
Bring the handling of the y axis in the ums driver in-line with the other
Mar 22 2017, 5:07 PM
grehan committed rS315715: This fixes a typo in bhyve's USB mouse emulation..
This fixes a typo in bhyve's USB mouse emulation.
Mar 22 2017, 4:53 PM
grehan closed D9597: Fix typo in bhyve usb_mouse.c by committing rS315715: This fixes a typo in bhyve's USB mouse emulation..
Mar 22 2017, 4:53 PM
grehan accepted D9597: Fix typo in bhyve usb_mouse.c.
Mar 22 2017, 4:45 PM

Mar 21 2017

grehan added a comment to D10049: Add AMD IOMMU support in bhyve.

The most recent spec (Rev 3.00—December 2016, http://support.amd.com/TechDocs/48882_IOMMU.pdf) seems to indicate that v1 is the base features, and new features are described as options, so not sure how to determine if it's v2. The IVRS table does have a v1/v2 format discriminator, though that isn't printed out in the current code.

Mar 21 2017, 6:31 PM
grehan added a comment to D10049: Add AMD IOMMU support in bhyve.

Tested fine on a Ryzen 1700 + Asus X370 mobo, with a dual-port Intel 82571 card. Both ports passed through to a FreeBSD 12-CURRENT amd64 4 vCPU guest, with iperf3/netperf stress tests run.

Mar 21 2017, 5:28 PM

Mar 20 2017

grehan added inline comments to D10014: bhyve: document fbuf and xhci devices in the manpage.
Mar 20 2017, 4:27 AM

Mar 16 2017

grehan added a comment to D10014: bhyve: document fbuf and xhci devices in the manpage.

Many thanks for doing this. I'll get some detailed comments shortly.

Mar 16 2017, 5:16 AM
grehan added inline comments to D9930: Bhyve cpu topology control.
Mar 16 2017, 4:13 AM
grehan committed rS315364: Hide the AMD MONITORX/MWAITX capability..
Hide the AMD MONITORX/MWAITX capability.
Mar 16 2017, 3:21 AM
grehan committed rS315361: Add the AMD MONITORX/MWAITX feature definition introduced in.
Add the AMD MONITORX/MWAITX feature definition introduced in
Mar 16 2017, 3:07 AM

Mar 15 2017

grehan accepted D10009: Fix a memory leak in bhyve.
Mar 15 2017, 1:18 AM

Mar 8 2017

grehan added a comment to D7149: Fix gcc warnings.

That was mentioned in earlier review comments. Maybe something like a kassert_decl attribute (expanding to unused if INVARIANTS not defined) ?

Mar 8 2017, 6:49 PM
grehan added a comment to D7149: Fix gcc warnings.

Thanks for the info. I'll see if I can move this forward under a different phab review.

Mar 8 2017, 7:20 AM
grehan added a comment to D7149: Fix gcc warnings.

I emailed on 7/16/2016 asking for help on running gcc and didn't get a response.

Mar 8 2017, 7:08 AM

Mar 3 2017

grehan requested changes to D2448: give bhyve the ability to parse a libucl guest configuration file.

Thanks for keeping this going Allan.

Mar 3 2017, 4:03 AM

Feb 25 2017

grehan accepted D9564: bhyve: document virtio-console in the manpage.
Feb 25 2017, 4:59 PM

Feb 16 2017

grehan committed rS313812: MFC r311702.
MFC r311702
Feb 16 2017, 5:09 PM
grehan committed rS313811: MFC r311702.
MFC r311702
Feb 16 2017, 5:07 PM

Feb 14 2017

grehan added a comment to D8290: Capsicumise bhyve.

emaste - any suggestions for a good forum to discuss this ? Unfortunately it straddles the capsicum@ and virtualization@ lists :(

Feb 14 2017, 5:47 PM

Feb 12 2017

grehan accepted D8290: Capsicumise bhyve.

robak - this is fine to commit once the last minor changes are done.

Feb 12 2017, 8:08 PM

Feb 8 2017

grehan added a comment to D8290: Capsicumise bhyve.

Into the final straight now: doing a visual inspection and picking up minor style issues.

Feb 8 2017, 8:08 AM

Feb 6 2017

grehan added a comment to D7029: VNC Auth for bhyve_graphics.

Click on the 'Download raw diff' button on the right-hand side menu. Apply that diff to a FreeBSD source tree and rebuild.

Feb 6 2017, 6:41 PM

Feb 4 2017

grehan added inline comments to D8290: Capsicumise bhyve.
Feb 4 2017, 5:54 AM

Feb 1 2017

grehan added inline comments to D8290: Capsicumise bhyve.
Feb 1 2017, 8:47 AM

Jan 30 2017

grehan added a comment to D8290: Capsicumise bhyve.

Still some of the test matrix to cover. Hopefully shortly.

Jan 30 2017, 3:56 PM
grehan added inline comments to D8290: Capsicumise bhyve.
Jan 30 2017, 9:28 AM