Page MenuHomeFreeBSD

corvink (Corvin Köhne)
User

Projects

User does not belong to any projects.

User Details

User Since
Aug 27 2020, 6:07 AM (225 w, 2 d)

Recent Activity

Nov 12 2024

corvink committed rGfe019d5e443b: bhyve: TPM 2.0 emulation with swtpm (authored by rosenfeld_grumpf.hope-2000.org).
bhyve: TPM 2.0 emulation with swtpm
Nov 12 2024, 7:56 AM
corvink committed rGb3180bea9b1d: bhyve: TPM CRB: pass actual TPM request length to backend execute_cmd() (authored by rosenfeld_grumpf.hope-2000.org).
bhyve: TPM CRB: pass actual TPM request length to backend execute_cmd()
Nov 12 2024, 7:56 AM
corvink committed rG5a43d257c0fe: bhyve: don't crash when guest writes TPM int_enable register (authored by rosenfeld_grumpf.hope-2000.org).
bhyve: don't crash when guest writes TPM int_enable register
Nov 12 2024, 7:56 AM
corvink committed rG1616f7d4b57b: bhyve: avoid a potential deadlock (authored by khorben_defora.org).
bhyve: avoid a potential deadlock
Nov 12 2024, 7:56 AM
corvink committed rG660e7182dbee: bhyve: merge adjacent E820 entries (authored by corvink).
bhyve: merge adjacent E820 entries
Nov 12 2024, 7:56 AM
corvink committed rG541696f2a1d0: bhyve: remove empty E820 entries (authored by corvink).
bhyve: remove empty E820 entries
Nov 12 2024, 7:56 AM

Oct 22 2024

corvink committed rG08139140c5f9: bhyve: merge adjacent E820 entries (authored by corvink).
bhyve: merge adjacent E820 entries
Oct 22 2024, 12:19 PM
corvink closed D45336: bhyve: merge adjacent E820 entries.
Oct 22 2024, 12:19 PM
corvink committed rGd93fbcf0222b: bhyve: TPM 2.0 emulation with swtpm (authored by rosenfeld_grumpf.hope-2000.org).
bhyve: TPM 2.0 emulation with swtpm
Oct 22 2024, 12:07 PM
corvink committed rGbc3d09e90b86: bhyve: TPM CRB: pass actual TPM request length to backend execute_cmd() (authored by rosenfeld_grumpf.hope-2000.org).
bhyve: TPM CRB: pass actual TPM request length to backend execute_cmd()
Oct 22 2024, 12:07 PM
corvink committed rG2feea221b248: bhyve: don't crash when guest writes TPM int_enable register (authored by rosenfeld_grumpf.hope-2000.org).
bhyve: don't crash when guest writes TPM int_enable register
Oct 22 2024, 12:07 PM
corvink closed D46373: bhyve: TPM 2.0 emulation with swtpm.
Oct 22 2024, 12:07 PM
corvink closed D46564: bhyve: TPM CRB: pass actual TPM request length to backend execute_cmd().
Oct 22 2024, 12:07 PM
corvink closed D46562: bhyve: don't crash when guest writes TPM int_enable register.
Oct 22 2024, 12:07 PM

Sep 20 2024

corvink added a comment to D46562: bhyve: don't crash when guest writes TPM int_enable register.

Do I need a more elaborate commit message here, too?

Also, and in general, where do testing notes go, assuming they are needed?

Sep 20 2024, 7:02 AM

Sep 18 2024

corvink accepted D46564: bhyve: TPM CRB: pass actual TPM request length to backend execute_cmd().

Where's the commit message?

Sep 18 2024, 12:43 PM
corvink accepted D46562: bhyve: don't crash when guest writes TPM int_enable register.
Sep 18 2024, 12:40 PM
corvink accepted D45120: Add bhyve uart raw tcp backend.

It would be a very good idea to improve your commit message. It would be nice to explain the use case in more detail (if possible). Additionally, it would be great to mention limitations of this new feature e.g. that user have to make sure to protect the tcp socket from unprivileged access.

Sep 18 2024, 12:38 PM
corvink added a comment to D45340: bhyve: trap protected BAR regions of passthru devices.

ping

Sep 18 2024, 12:35 PM
corvink added a comment to D45339: bhyve: add BAR handler list for passthru devices.

ping

Sep 18 2024, 12:35 PM
corvink added a comment to D45337: bhyve: support VBTs which lay outside of the OpRegion.

ping

Sep 18 2024, 12:34 PM
corvink added a comment to D45336: bhyve: merge adjacent E820 entries.

ping

Sep 18 2024, 12:34 PM
corvink added a comment to D45333: x86/pci: add sysctl for intel_graphics_gen.

ping

Sep 18 2024, 12:33 PM

Sep 9 2024

corvink accepted D46402: bhyve: support noVNC SetPixelFormat request.
Sep 9 2024, 9:38 AM
corvink accepted D45120: Add bhyve uart raw tcp backend.
Sep 9 2024, 9:28 AM
corvink accepted D46373: bhyve: TPM 2.0 emulation with swtpm.
Sep 9 2024, 9:16 AM
corvink accepted D46564: bhyve: TPM CRB: pass actual TPM request length to backend execute_cmd().

Please add a commit message.

Sep 9 2024, 6:13 AM
corvink added inline comments to D46562: bhyve: don't crash when guest writes TPM int_enable register.
Sep 9 2024, 6:07 AM

Sep 2 2024

corvink added a comment to D45120: Add bhyve uart raw tcp backend.

Is this ready? So far, LGTM.

Sep 2 2024, 9:08 AM

Aug 29 2024

corvink accepted D46402: bhyve: support noVNC SetPixelFormat request.
In D46402#1059143, @mp wrote:

@corvink thank you for the reviews. Hopefully these last changes should address all of your feedback.

Aug 29 2024, 8:34 AM

Aug 28 2024

corvink added a reviewer for D46373: bhyve: TPM 2.0 emulation with swtpm: corvink.
Aug 28 2024, 7:58 AM
corvink added inline comments to D46402: bhyve: support noVNC SetPixelFormat request.
Aug 28 2024, 7:10 AM
corvink accepted D46449: vmm: Harmonize compat ioctl definitions.
Aug 28 2024, 6:50 AM
corvink accepted D46448: vmm: Let devmem devices reference the VM credential.
Aug 28 2024, 6:49 AM
corvink accepted D46447: vmm: Be more consistent with the credential used for VM lookup.
Aug 28 2024, 6:42 AM
corvink accepted D46446: vmm: Remove an unneeded lookup in devmem_create_cdev().
Aug 28 2024, 6:42 AM
corvink accepted D46445: vmm: Factor most of sysctl_vmm_destroy() into a separate function.
Aug 28 2024, 6:42 AM
corvink accepted D46444: vmm: Factor most of sysctl_vmm_create() out into a separate function.
Aug 28 2024, 6:38 AM

Aug 26 2024

corvink accepted D46429: vmm: Move vmm_ktr.h to a common directory.
Aug 26 2024, 6:59 AM
corvink accepted D46431: vmm: Merge vmm_dev.c.
Aug 26 2024, 6:57 AM
corvink added inline comments to D46402: bhyve: support noVNC SetPixelFormat request.
Aug 26 2024, 6:47 AM
corvink accepted D46432: vmm: Move compat ioctl definitions to vmm_dev.c.
Aug 26 2024, 6:23 AM
corvink accepted D46430: vmm: Move duplicated stats code into a generic file.
Aug 26 2024, 6:20 AM

Aug 23 2024

corvink added inline comments to D46402: bhyve: support noVNC SetPixelFormat request.
Aug 23 2024, 7:06 AM

Aug 22 2024

corvink added inline comments to D46402: bhyve: support noVNC SetPixelFormat request.
Aug 22 2024, 8:04 AM
corvink added inline comments to D45120: Add bhyve uart raw tcp backend.
Aug 22 2024, 7:00 AM
corvink added a comment to D46373: bhyve: TPM 2.0 emulation with swtpm.

LGTM. Will test it.

Aug 22 2024, 6:43 AM

Aug 21 2024

corvink accepted D46245: vmm ppt: Enable busmastering and BAR decoding while a device is assigned.
Aug 21 2024, 6:34 AM
corvink added inline comments to D46373: bhyve: TPM 2.0 emulation with swtpm.
Aug 21 2024, 6:31 AM

Aug 14 2024

corvink accepted D46282: bhyve: Make boot ROM handling more consistent.
Aug 14 2024, 6:17 AM
corvink accepted D45049: bhyve: Do not enable PCI BAR decoding if a boot ROM is present.
Aug 14 2024, 6:16 AM

Aug 12 2024

corvink accepted D46245: vmm ppt: Enable busmastering and BAR decoding while a device is assigned.
Aug 12 2024, 6:24 AM

Aug 9 2024

corvink updated the diff for D45336: bhyve: merge adjacent E820 entries.
  • avoid code duplication by moving the code below element insertion
Aug 9 2024, 6:33 AM
corvink committed rGf325f81f4ab9: bhyve: remove empty E820 entries (authored by corvink).
bhyve: remove empty E820 entries
Aug 9 2024, 6:16 AM
corvink closed D45480: bhyve: remove empty E820 entries.
Aug 9 2024, 6:16 AM
corvink accepted D46245: vmm ppt: Enable busmastering and BAR decoding while a device is assigned.
Aug 9 2024, 6:10 AM

Aug 8 2024

corvink updated the diff for D45480: bhyve: remove empty E820 entries.
  • use a new top level case to detect empty entries
Aug 8 2024, 7:06 AM

Aug 5 2024

corvink added a comment to D45480: bhyve: remove empty E820 entries.

@markj @jhb Any feedback?

Aug 5 2024, 10:56 AM
corvink committed rG1f3bfc60550c: bhyve: avoid a potential deadlock (authored by khorben_defora.org).
bhyve: avoid a potential deadlock
Aug 5 2024, 8:01 AM
corvink closed D45401: bhyve: avoid a potential deadlock.
Aug 5 2024, 8:01 AM

Aug 2 2024

corvink added a comment to D45401: bhyve: avoid a potential deadlock.

What's CID: 1521334?

Aug 2 2024, 9:42 AM

Aug 1 2024

corvink added inline comments to D45049: bhyve: Do not enable PCI BAR decoding if a boot ROM is present.
Aug 1 2024, 6:22 AM
corvink accepted D46196: bhyve: Optionally put vCPUs back in the debug state after resuming.
Aug 1 2024, 6:15 AM
corvink added a comment to D46196: bhyve: Optionally put vCPUs back in the debug state after resuming.
In D46196#1053211, @jhb wrote:

Hmm, I guess I'm not sure why the vCPU would already be in the debug_cpus set if it hasn't done anything yet? This would seem like a bug where we suspended a vCPU that wasn't in vcpus_active yet?

Aug 1 2024, 6:14 AM

Jul 31 2024

corvink accepted D46179: bhyve: Treat the COMMAND register for PCI passthru devices as emulated.
Jul 31 2024, 6:15 AM

Jul 30 2024

corvink added a comment to D46179: bhyve: Treat the COMMAND register for PCI passthru devices as emulated.

Shouldn't we set the command register to a known good value or do we expect that the host always sets a good value? If the host disables mem/io decoding for some reason, we're unable to read any values from the BARs MMIO space.

Jul 30 2024, 6:11 AM

Jul 1 2024

corvink closed D45768: sysutils/edk2: make bhyve's bootorder feature work.
Jul 1 2024, 1:03 PM
corvink committed R11:54eaea1ccd17: sysutils/edk2: make bhyve's bootorder feature work (authored by corvink).
sysutils/edk2: make bhyve's bootorder feature work
Jul 1 2024, 1:03 PM
corvink updated the diff for D45768: sysutils/edk2: make bhyve's bootorder feature work.

bump PORTREVISION

Jul 1 2024, 10:21 AM

Jun 28 2024

corvink updated the summary of D45768: sysutils/edk2: make bhyve's bootorder feature work.
Jun 28 2024, 9:21 AM
corvink requested review of D45768: sysutils/edk2: make bhyve's bootorder feature work.
Jun 28 2024, 9:20 AM

Jun 14 2024

corvink added a comment to D45049: bhyve: Do not enable PCI BAR decoding if a boot ROM is present.

Thank you! I think this means though that @jhb 's suggestion isn't viable, as we generally expect newer bhyve to work properly with older EDK2. In other words, we need some config flag which lets a particular platform say, "I want to enable BARs before executing any guest code". Or is there something more clever we can do?

Jun 14 2024, 6:26 AM

Jun 13 2024

corvink added a comment to D45049: bhyve: Do not enable PCI BAR decoding if a boot ROM is present.
In D45049#1027224, @jhb wrote:

So for "bare metal" cases like booting with a bootrom (e.g. UEFI) we should arguably leave bars unregistered since the raw firmware probably does that. Only the bhyveload case probably wants to enable BARs on startup. I would be fine with not using a user-facing config option but basically making the test in this patch be some kind of "is there a bootrom or not" check. Would need to test it on amd64 with UEFI.

I implemented this and EDK2 fails to load our loader. I get the following output before dropped into a shell:

Launching virtual machine "test" ...                                                                                                                          
fbuf frame buffer base: 0x32b086e00000 [sz 33554432]                                                                                                          
BdsDxe: loading Boot0001 "EFI Internal Shell" from Fv(7CB8BDC9-F8EB-4F34-AAEA-3EE4AF6516A1)/FvFile(7C04A583-9E3E-4F1C-AD65-E05268D0B4D1)                      
BdsDxe: starting Boot0001 "EFI Internal Shell" from Fv(7CB8BDC9-F8EB-4F34-AAEA-3EE4AF6516A1)/FvFile(7C04A583-9E3E-4F1C-AD65-E05268D0B4D1)                     
UEFI Interactive Shell v2.2                                                                                                                                   
EDK II                                                                                                                                                        
UEFI v2.70 (BHYVE, 0x00010000)                                                                                                                                
map: No mapping found.

Presumably EDK2 does rely on us having registered BARs. After staring at the EDK2 bhyve platform code for a while, I'm not sure how this is encoded.

Jun 13 2024, 6:51 AM

Jun 11 2024

corvink accepted D45550: bhyve: Fix the build with gcc.
Jun 11 2024, 6:09 AM

Jun 4 2024

corvink added inline comments to D45333: x86/pci: add sysctl for intel_graphics_gen.
Jun 4 2024, 8:37 AM
corvink added inline comments to D45337: bhyve: support VBTs which lay outside of the OpRegion.
Jun 4 2024, 8:37 AM
corvink added inline comments to D45340: bhyve: trap protected BAR regions of passthru devices.
Jun 4 2024, 8:36 AM
corvink added inline comments to D45339: bhyve: add BAR handler list for passthru devices.
Jun 4 2024, 8:36 AM
corvink updated the diff for D45340: bhyve: trap protected BAR regions of passthru devices.
  • fix style issues
Jun 4 2024, 8:34 AM
corvink updated the diff for D45339: bhyve: add BAR handler list for passthru devices.
  • fix style issues
Jun 4 2024, 8:33 AM
corvink updated the diff for D45337: bhyve: support VBTs which lay outside of the OpRegion.
  • fix style issues
  • unmap vbt->hva in error path
Jun 4 2024, 8:33 AM
corvink updated the diff for D45336: bhyve: merge adjacent E820 entries.
  • merge entries with predecessor and successor if possible
Jun 4 2024, 8:33 AM
corvink requested review of D45480: bhyve: remove empty E820 entries.
Jun 4 2024, 8:32 AM
corvink updated the diff for D45333: x86/pci: add sysctl for intel_graphics_gen.
  • use unsigned int
  • add comment
Jun 4 2024, 8:32 AM
corvink committed rGe425e601b978: bhyve: verify OpRegion size (authored by corvink).
bhyve: verify OpRegion size
Jun 4 2024, 7:11 AM
corvink closed D45335: bhyve: verify OpRegion size.
Jun 4 2024, 7:11 AM
corvink committed rG5e09c5a1ed66: bhyve: use correct size to map the OpRegion (authored by corvink).
bhyve: use correct size to map the OpRegion
Jun 4 2024, 7:11 AM
corvink closed D45334: bhyve: use correct size to map the OpRegion.
Jun 4 2024, 7:11 AM

Jun 3 2024

corvink accepted D45401: bhyve: avoid a potential deadlock.
Jun 3 2024, 5:57 AM

May 24 2024

corvink requested review of D45342: bhyve: protect MMIO mapped BDSM register.
May 24 2024, 11:35 AM
corvink requested review of D45341: bhyve: add interface to protect BAR regions of passthru devices.
May 24 2024, 11:34 AM
corvink requested review of D45340: bhyve: trap protected BAR regions of passthru devices.
May 24 2024, 11:34 AM
corvink requested review of D45339: bhyve: add BAR handler list for passthru devices.
May 24 2024, 11:34 AM
corvink requested review of D45338: bhyve: add GVT-d support for graphics gen 11 and newer.
May 24 2024, 11:34 AM
corvink requested review of D45337: bhyve: support VBTs which lay outside of the OpRegion.
May 24 2024, 11:34 AM
corvink requested review of D45336: bhyve: merge adjacent E820 entries.
May 24 2024, 11:33 AM
corvink requested review of D45335: bhyve: verify OpRegion size.
May 24 2024, 11:33 AM
corvink requested review of D45334: bhyve: use correct size to map the OpRegion.
May 24 2024, 11:33 AM
corvink requested review of D45333: x86/pci: add sysctl for intel_graphics_gen.
May 24 2024, 11:33 AM

May 17 2024

corvink accepted D45223: bhyve: avoid resource leak in error path.
May 17 2024, 6:32 AM