Page MenuHomeFreeBSD

c.koehne_beckhoff.com (Corvin Köhne)
User

Projects

User does not belong to any projects.

User Details

User Since
Aug 27 2020, 6:07 AM (47 w, 1 d)

Recent Activity

Thu, Jul 15

c.koehne_beckhoff.com added a comment to D26209: GVT-d support for bhyve.

I got some new information about Intel Graphics Devices. GOP driver is working properly on my system now. It requires some firmware patches unless it's possible to create and use an E820 table by bhyve. I'm going to update this patch soon.

Thu, Jul 15, 6:20 AM · bhyve

Mon, Jul 5

c.koehne_beckhoff.com updated the summary of D31051: bhyve: use fixed 32 bit BAR base address.
Mon, Jul 5, 1:38 PM · bhyve
c.koehne_beckhoff.com updated the diff for D31051: bhyve: use fixed 32 bit BAR base address.
Mon, Jul 5, 1:33 PM · bhyve
c.koehne_beckhoff.com updated the diff for D31051: bhyve: use fixed 32 bit BAR base address.
Mon, Jul 5, 1:28 PM · bhyve
c.koehne_beckhoff.com requested review of D31051: bhyve: use fixed 32 bit BAR base address.
Mon, Jul 5, 1:27 PM · bhyve

Jun 22 2021

c.koehne_beckhoff.com abandoned D30021: bhyve/virtio: return 0xFF when accessing unused PCI space.

Solved by R10:054accac71e0944ab588c3ab052bea6947df7885

Jun 22 2021, 4:58 AM · bhyve

Jun 2 2021

c.koehne_beckhoff.com updated the diff for D30020: bhyve: add virtio-input emulation.
  • update parse legacy config
Jun 2 2021, 5:29 AM · bhyve

May 31 2021

c.koehne_beckhoff.com updated the summary of D30020: bhyve: add virtio-input emulation.
May 31 2021, 8:37 AM · bhyve
c.koehne_beckhoff.com added a comment to D30020: bhyve: add virtio-input emulation.
In D30020#685930, @wulf wrote:

Could you test https://reviews.freebsd.org/D30542 ?
It should fix

Cannot gain exklusive access to the input device
Occurs when using legacy drivers for FreeBSD

May 31 2021, 8:36 AM · bhyve

May 17 2021

c.koehne_beckhoff.com added a comment to D30020: bhyve: add virtio-input emulation.

Hmm, why? What happens with a Linux guest?

Linux identifies the device as virtio-input device. However, I'm not able to move the mouse or use the keyboard in Linux. I did no further investigations why Linux fails to use the virtio-input device yet.

May 17 2021, 7:35 AM · bhyve
c.koehne_beckhoff.com updated the diff for D30020: bhyve: add virtio-input emulation.
  • fix coding style of pci_vtinput_legacy_config
  • add manpage entry for VirtIO Input
May 17 2021, 7:27 AM · bhyve
c.koehne_beckhoff.com updated the diff for D30021: bhyve/virtio: return 0xFF when accessing unused PCI space.
  • fix coding style
May 17 2021, 6:01 AM · bhyve

Apr 29 2021

c.koehne_beckhoff.com added a comment to D30020: bhyve: add virtio-input emulation.

Hmm, why? What happens with a Linux guest?

Apr 29 2021, 6:01 AM · bhyve
c.koehne_beckhoff.com updated the diff for D30020: bhyve: add virtio-input emulation.
  • add CAPSICUM support (note: untested yet)
Apr 29 2021, 5:57 AM · bhyve

Apr 28 2021

c.koehne_beckhoff.com updated the summary of D30020: bhyve: add virtio-input emulation.
Apr 28 2021, 10:48 AM · bhyve
c.koehne_beckhoff.com added a comment to D30020: bhyve: add virtio-input emulation.

Sadly, I don't know how to implement CAPSICUM support or how to test CAPSICUM. For that reason, I left out support for CAPSICUM.

Apr 28 2021, 10:47 AM · bhyve
c.koehne_beckhoff.com requested review of D30021: bhyve/virtio: return 0xFF when accessing unused PCI space.
Apr 28 2021, 9:29 AM · bhyve
c.koehne_beckhoff.com requested review of D30020: bhyve: add virtio-input emulation.
Apr 28 2021, 9:25 AM · bhyve

Apr 27 2021

c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.
  • do not allocate Graphics Stolen Memory inside PCI Region
Apr 27 2021, 12:53 PM · bhyve

Apr 14 2021

c.koehne_beckhoff.com added a comment to D29665: bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROL.

This commit isn't staged in a tree.

Apr 14 2021, 8:49 AM · bhyve

Apr 13 2021

c.koehne_beckhoff.com added a comment to D29665: bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROL.

I'm able to boot a Windows guest without -w by applying this patch.

Apr 13 2021, 5:28 AM · bhyve
c.koehne_beckhoff.com updated the diff for D29665: bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROL.
Apr 13 2021, 5:27 AM · bhyve

Apr 12 2021

c.koehne_beckhoff.com updated the diff for D29665: bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROL.
  • Use IA32_FEATURE_CONTROL_LOCK define
Apr 12 2021, 5:39 AM · bhyve

Apr 9 2021

c.koehne_beckhoff.com retitled D29665: bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROL from bhyve: fix crash of rdmsr from windows guests to bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROL.
Apr 9 2021, 5:45 AM · bhyve
c.koehne_beckhoff.com updated the summary of D29665: bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROL.
Apr 9 2021, 5:43 AM · bhyve
c.koehne_beckhoff.com requested review of D29665: bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROL.
Apr 9 2021, 5:42 AM · bhyve

Mar 29 2021

c.koehne_beckhoff.com updated the summary of D27456: bhyve: GPU Passthrough for dedicated AMD GPUs.
Mar 29 2021, 10:57 AM · bhyve
c.koehne_beckhoff.com updated the diff for D27456: bhyve: GPU Passthrough for dedicated AMD GPUs.
  • rebase
Mar 29 2021, 10:57 AM · bhyve
c.koehne_beckhoff.com updated the summary of D26209: GVT-d support for bhyve.
Mar 29 2021, 8:22 AM · bhyve
c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.
  • rebase
Mar 29 2021, 8:22 AM · bhyve

Mar 19 2021

c.koehne_beckhoff.com added a comment to D26209: GVT-d support for bhyve.
In D26209#656996, @khng wrote:

I'm going to rebase this patch soon.

The change is upstreamed. You could integrate it with main without integrating your own D24066.

Mar 19 2021, 1:47 PM · bhyve
c.koehne_beckhoff.com added a comment to D26209: GVT-d support for bhyve.

I'm going to rebase this patch soon.

Mar 19 2021, 1:09 PM · bhyve

Mar 16 2021

c.koehne_beckhoff.com added a comment to D27970: bhyve: move 64 bit BAR location to match OVMF assumptions.

One person on Slack said they'd like the BAR in a fixed (high) location, so I wouldn't be confident committing this without other people (e.g. @jhb and @grehan ) reviewing it too.

Mar 16 2021, 12:43 PM · bhyve
c.koehne_beckhoff.com updated the diff for D27456: bhyve: GPU Passthrough for dedicated AMD GPUs.
  • Rebase onto main
  • It's possible to load a Video-BIOS from a file now
Mar 16 2021, 12:30 PM · bhyve

Feb 1 2021

c.koehne_beckhoff.com retitled D27456: bhyve: GPU Passthrough for dedicated AMD GPUs from [WIP] bhyve: GPU Passthrough for dedicated AMD GPUs to bhyve: GPU Passthrough for dedicated AMD GPUs.
Feb 1 2021, 7:48 AM · bhyve

Jan 25 2021

c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.
  • fix compiling
Jan 25 2021, 8:04 AM · bhyve
c.koehne_beckhoff.com updated the summary of D28277: bhyve: rework BAR emulation.
Jan 25 2021, 6:35 AM · bhyve

Jan 22 2021

c.koehne_beckhoff.com updated the summary of D26209: GVT-d support for bhyve.
Jan 22 2021, 11:00 AM · bhyve
c.koehne_beckhoff.com requested review of D28280: bhyve: set lpc IDs to physical values.
Jan 22 2021, 11:00 AM · bhyve
c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.
  • Works with new OVMF (see D27230) now
Jan 22 2021, 10:52 AM · bhyve
c.koehne_beckhoff.com requested review of D28278: bhyve: order BARs by size.
Jan 22 2021, 9:35 AM · bhyve
c.koehne_beckhoff.com requested review of D28277: bhyve: rework BAR emulation.
Jan 22 2021, 9:23 AM · bhyve

Jan 18 2021

c.koehne_beckhoff.com updated the diff for D27970: bhyve: move 64 bit BAR location to match OVMF assumptions.
  • Rebase onto 13-CURRENT
Jan 18 2021, 9:24 AM · bhyve

Jan 14 2021

c.koehne_beckhoff.com updated the diff for D27456: bhyve: GPU Passthrough for dedicated AMD GPUs.
  • Use new UEFI provided by D27230
Jan 14 2021, 9:53 AM · bhyve

Jan 6 2021

c.koehne_beckhoff.com updated the diff for D27970: bhyve: move 64 bit BAR location to match OVMF assumptions.
  • Revert rS367606 "bhyve: avoid allocating BARs above the end of supported physical addresses."
Jan 6 2021, 8:27 AM · bhyve
c.koehne_beckhoff.com added a comment to D27970: bhyve: move 64 bit BAR location to match OVMF assumptions.

The alignment depends on gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size which is set in BhyveX64.dsc. On my system with 4 GB of RAM, it's set to 32 GB:
GetFirstNonAddress: Pci64Base=0x800000000 Pci64Size=0x800000000

Jan 6 2021, 7:25 AM · bhyve

Jan 5 2021

c.koehne_beckhoff.com requested review of D27970: bhyve: move 64 bit BAR location to match OVMF assumptions.
Jan 5 2021, 11:16 AM · bhyve

Jan 4 2021

c.koehne_beckhoff.com added a comment to D27230: Update bhyve related ports.

GCD map depends on gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base and gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size which are set at OvmfPkg/Bhyve/PlatformPei/MemDetect.c (GetFirstNonAddress):

Jan 4 2021, 8:06 AM

Dec 16 2020

c.koehne_beckhoff.com added a comment to D27230: Update bhyve related ports.

On my system this EFI version will fail, if a 64-bit BAR above 4 GB is used. GCD-Memory doesn't covers the MMIO-Space above 4 GB:

Dec 16 2020, 10:13 AM

Dec 4 2020

c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.

Updates:

  • Implement GVT-d emulation as passthru device.
  • Include D24066 for easier testing (will be removed as soon as it's merged)
Dec 4 2020, 10:21 AM · bhyve
c.koehne_beckhoff.com added a comment to D27456: bhyve: GPU Passthrough for dedicated AMD GPUs.

Are there any technical limitations that make this specific to AMD GPU?

Dec 4 2020, 7:15 AM · bhyve

Dec 3 2020

c.koehne_beckhoff.com requested review of D27456: bhyve: GPU Passthrough for dedicated AMD GPUs.
Dec 3 2020, 9:42 AM · bhyve

Nov 18 2020

c.koehne_beckhoff.com added inline comments to D26209: GVT-d support for bhyve.
Nov 18 2020, 11:46 AM · bhyve

Nov 17 2020

c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.

Fix code style of comments

Nov 17 2020, 12:27 PM · bhyve

Nov 16 2020

c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.
Nov 16 2020, 8:42 AM · bhyve

Oct 15 2020

c.koehne_beckhoff.com updated the summary of D26506: [WIP] bhyve: GPU Passthrough for AMD Ryzen V1000.
Oct 15 2020, 1:11 PM · bhyve
c.koehne_beckhoff.com updated the diff for D26506: [WIP] bhyve: GPU Passthrough for AMD Ryzen V1000.
Oct 15 2020, 7:18 AM · bhyve

Oct 13 2020

c.koehne_beckhoff.com updated the diff for D26506: [WIP] bhyve: GPU Passthrough for AMD Ryzen V1000.
Oct 13 2020, 6:54 AM · bhyve

Oct 7 2020

c.koehne_beckhoff.com added a comment to D26506: [WIP] bhyve: GPU Passthrough for AMD Ryzen V1000.

The work is at https://www.gulbra.net/freebsd-bhyve/

You'd need to extract the PCI ROM BIOS support. I can help or even do that.

Oct 7 2020, 6:57 AM · bhyve
c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.

Updates:

Oct 7 2020, 6:23 AM · bhyve

Oct 5 2020

c.koehne_beckhoff.com updated the summary of D26506: [WIP] bhyve: GPU Passthrough for AMD Ryzen V1000.
Oct 5 2020, 1:56 PM · bhyve
c.koehne_beckhoff.com added a comment to D26506: [WIP] bhyve: GPU Passthrough for AMD Ryzen V1000.

Generic PCI ROM BIOS support in EFI might be a better solution for this (there is a version posted in the vga-bios patches a while back), with ROM extraction being a separate issue.

Oct 5 2020, 1:56 PM · bhyve

Sep 25 2020

c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.

Updates:

  • Use an own device emulation for GVT-d
  • Do not modify the current implementation of passthru devices
Sep 25 2020, 10:28 AM · bhyve

Sep 22 2020

c.koehne_beckhoff.com updated the summary of D26506: [WIP] bhyve: GPU Passthrough for AMD Ryzen V1000.
Sep 22 2020, 1:26 PM · bhyve
c.koehne_beckhoff.com updated the summary of D26209: GVT-d support for bhyve.
Sep 22 2020, 1:26 PM · bhyve
c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.

Fixed Issues:

  1. Do not patch cfgread and cfgwrite of passthru devices:

The device emulation functions are shared by every passthru device.
If igd emulationen patches it's cfgread and cfgwrite functions, it will be changed for every passthru device too.
To avoid this, add a passthru_type to decide which function to take.

Sep 22 2020, 1:08 PM · bhyve

Sep 21 2020

c.koehne_beckhoff.com requested review of D26506: [WIP] bhyve: GPU Passthrough for AMD Ryzen V1000.
Sep 21 2020, 11:48 AM · bhyve

Sep 14 2020

c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.

Add copyright header to new file "pci_igd_lpc.c"

Sep 14 2020, 8:42 AM · bhyve

Sep 11 2020

c.koehne_beckhoff.com updated the summary of D26209: GVT-d support for bhyve.
Sep 11 2020, 5:24 AM · bhyve
c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.

Fixed Issues:

  1. register_bar and unregister_bar functions doesn't handle MSI-X BAR properly
Sep 11 2020, 5:13 AM · bhyve

Sep 9 2020

c.koehne_beckhoff.com added a watcher for bhyve: c.koehne_beckhoff.com.
Sep 9 2020, 7:37 AM

Sep 8 2020

c.koehne_beckhoff.com added a comment to D26209: GVT-d support for bhyve.

Thank's for your feedback.

Sep 8 2020, 11:10 AM · bhyve
c.koehne_beckhoff.com added a comment to D26209: GVT-d support for bhyve.

Glad to hear that it works on your system.

Sep 8 2020, 8:08 AM · bhyve

Sep 4 2020

c.koehne_beckhoff.com added a comment to D26209: GVT-d support for bhyve.

Thanks for your detailed description.

Sep 4 2020, 2:01 PM · bhyve
c.koehne_beckhoff.com added a comment to D26209: GVT-d support for bhyve.

I want to test this patch. Currently, I am using a Lenovo M920Q with i5 8400T, 16G RAM, and 2 SSDs.

What is PM support? I cannot find anything similar in BIOS settings.

Sep 4 2020, 7:32 AM · bhyve
c.koehne_beckhoff.com updated the summary of D26209: GVT-d support for bhyve.
Sep 4 2020, 5:38 AM · bhyve

Sep 3 2020

c.koehne_beckhoff.com added inline comments to D26209: GVT-d support for bhyve.
Sep 3 2020, 2:55 PM · bhyve
c.koehne_beckhoff.com updated the summary of D26209: GVT-d support for bhyve.
Sep 3 2020, 2:22 PM · bhyve
c.koehne_beckhoff.com updated the diff for D26209: GVT-d support for bhyve.

Updates:

  • Use PCI-MMIO-Space (0xC0000000 - 0xE0000000) for allocation of Opregion and Graphics Stolen Memory
  • Increase size of Opregion to 16 kB
  • Detect size of Graphics Stolen Memory
Sep 3 2020, 1:50 PM · bhyve

Aug 27 2020

c.koehne_beckhoff.com added a comment to D26209: GVT-d support for bhyve.

The Intel ACRN edk2 fork has a GVT GOP driver that may be suitable

https://github.com/projectacrn/acrn-edk2/tree/ovmf-acrn/OvmfPkg/GvtGopDxe
Aug 27 2020, 1:38 PM · bhyve
c.koehne_beckhoff.com requested review of D26209: GVT-d support for bhyve.
Aug 27 2020, 6:59 AM · bhyve