Page MenuHomeFreeBSD
Feed Advanced Search

Mar 5 2024

mav added a comment to D39620: vmm: Fix HLT loop while vcpu has requested virtual interrupts.

stable/13 has this patch
releng/13.2 doesn't have this patch (yet).

I'm not very familiar with FreeBSD's branching system... I see FreeBSD 13.3-RELEASE was released today, is this bug fix included?

Mar 5 2024, 5:32 PM · bhyve
sean_rogue-research.com added a comment to D39620: vmm: Fix HLT loop while vcpu has requested virtual interrupts.

stable/13 has this patch
releng/13.2 doesn't have this patch (yet).

Mar 5 2024, 1:25 PM · bhyve

Mar 4 2024

himanshu_thechauhan.dev added a watcher for bhyve: himanshu_thechauhan.dev.
Mar 4 2024, 2:56 PM

Feb 20 2024

freebsd_ny-central.org added a comment to D43899: Improvements for Handbook: section virtualization.

Thanks to all of you for moving this along so swiftly! I've already started working on the next iteration. Will post that soon.

Feb 20 2024, 7:28 PM · docs, bhyve
emaste added a comment to D43899: Improvements for Handbook: section virtualization.

Thanks again!

Feb 20 2024, 5:47 PM · docs, bhyve

Feb 17 2024

jrm closed D43899: Improvements for Handbook: section virtualization.
Feb 17 2024, 5:31 PM · docs, bhyve

Feb 16 2024

emaste accepted D43899: Improvements for Handbook: section virtualization.
Feb 16 2024, 11:20 PM · docs, bhyve
rgrimes accepted D43899: Improvements for Handbook: section virtualization.
Feb 16 2024, 10:44 PM · docs, bhyve
freebsd_ny-central.org updated the diff for D43899: Improvements for Handbook: section virtualization.

Combining Ed's and Rod's feedback on processors: removing controversial paragraph on Intel architecture

Feb 16 2024, 9:38 PM · docs, bhyve
freebsd_ny-central.org added inline comments to D43899: Improvements for Handbook: section virtualization.
Feb 16 2024, 9:34 PM · docs, bhyve
emaste added inline comments to D43899: Improvements for Handbook: section virtualization.
Feb 16 2024, 9:12 PM · docs, bhyve
jrm accepted D43899: Improvements for Handbook: section virtualization.

I asked some doc committers on IRC to have a look.

Feb 16 2024, 8:05 PM · docs, bhyve
freebsd_ny-central.org updated the diff for D43899: Improvements for Handbook: section virtualization.
  • Updated paragraph on CPU architecture to reference Nehalem instead.
  • Added --usage reference for vmstart.sh
  • Fixed disconnect key sequence for cu
Feb 16 2024, 7:31 PM · docs, bhyve
freebsd_ny-central.org added inline comments to D43899: Improvements for Handbook: section virtualization.
Feb 16 2024, 7:11 PM · docs, bhyve
freebsd_ny-central.org added inline comments to D43899: Improvements for Handbook: section virtualization.
Feb 16 2024, 7:03 PM · docs, bhyve
rgrimes accepted D43899: Improvements for Handbook: section virtualization.

Its getting much better, probably with pushing a commit soon.

Feb 16 2024, 6:00 PM · docs, bhyve

Feb 15 2024

freebsd_ny-central.org added a comment to D43899: Improvements for Handbook: section virtualization.

Included the relevant feedback points into this latest update. Thanks for the great inputs. Any further inputs/feedback welcome!

Feb 15 2024, 7:43 PM · docs, bhyve
freebsd_ny-central.org updated the diff for D43899: Improvements for Handbook: section virtualization.

And finally condensed the processor feature constraints into a simpler and shorter statement.

Feb 15 2024, 7:42 PM · docs, bhyve
freebsd_ny-central.org updated the diff for D43899: Improvements for Handbook: section virtualization.

Included additional updates after Rod's feedback. Thanks for the inputs!

Feb 15 2024, 7:28 PM · docs, bhyve
emaste added inline comments to D43899: Improvements for Handbook: section virtualization.
Feb 15 2024, 7:17 PM · docs, bhyve
freebsd_ny-central.org updated the diff for D43899: Improvements for Handbook: section virtualization.

Sorry, just realized I missed the -U99999; included this now.

Feb 15 2024, 7:16 PM · docs, bhyve
freebsd_ny-central.org updated the diff for D43899: Improvements for Handbook: section virtualization.

Updates after initial feedback - also fixed version of ISO files in the command line listings.

Feb 15 2024, 7:15 PM · docs, bhyve
emaste added a comment to D43899: Improvements for Handbook: section virtualization.

Oh, one other comment - when you regenerate the new patch please use -U999999 to get full context - Phabricator will then allow the reader to expand the blocks in between what's been changed.

Feb 15 2024, 7:08 PM · docs, bhyve
rgrimes requested changes to D43899: Improvements for Handbook: section virtualization.

Just some nits.

Feb 15 2024, 7:07 PM · docs, bhyve
freebsd_ny-central.org planned changes to D43899: Improvements for Handbook: section virtualization.

Thanks for the great feedback. I'll update the patch accordingly.

Feb 15 2024, 6:47 PM · docs, bhyve
emaste added inline comments to D43899: Improvements for Handbook: section virtualization.
Feb 15 2024, 12:22 AM · docs, bhyve

Feb 14 2024

jrm added a reviewer for D43899: Improvements for Handbook: section virtualization: docs.
Feb 14 2024, 11:10 PM · docs, bhyve
jrm added a comment to D43899: Improvements for Handbook: section virtualization.

Thanks. These are nice updates. I added a few mostly nit-picky comments and added a few other reviewers.

Feb 14 2024, 11:10 PM · docs, bhyve
freebsd_ny-central.org requested review of D43899: Improvements for Handbook: section virtualization.
Feb 14 2024, 8:48 PM · docs, bhyve

Feb 6 2024

markj closed D43754: vmm: Fix compiling error with BHYVE_SNAPSHOT.
Feb 6 2024, 3:41 PM · bhyve
markj accepted D43754: vmm: Fix compiling error with BHYVE_SNAPSHOT.
Feb 6 2024, 3:14 PM · bhyve
gusev.vitaliy_gmail.com updated the diff for D43754: vmm: Fix compiling error with BHYVE_SNAPSHOT.

Move vm_snapshot_buf_cmp prototype under #ifndef _KERNEL.

Feb 6 2024, 1:59 PM · bhyve
markj added a comment to D43754: vmm: Fix compiling error with BHYVE_SNAPSHOT.

Looks good to me, aside from the comment.

Feb 6 2024, 1:44 PM · bhyve
gusev.vitaliy_gmail.com retitled D43754: vmm: Fix compiling error with BHYVE_SNAPSHOT from vmm: Fix compilation with BHYVE_SNAPSHOT to vmm: Fix compiling error with BHYVE_SNAPSHOT.
Feb 6 2024, 12:10 PM · bhyve
gusev.vitaliy_gmail.com updated the diff for D43754: vmm: Fix compiling error with BHYVE_SNAPSHOT.

removed vm_snapshot_buf_cmp() in the kernel code

Feb 6 2024, 11:43 AM · bhyve
gusev.vitaliy_gmail.com added inline comments to D43754: vmm: Fix compiling error with BHYVE_SNAPSHOT.
Feb 6 2024, 11:42 AM · bhyve
gusev.vitaliy_gmail.com updated the diff for D43754: vmm: Fix compiling error with BHYVE_SNAPSHOT.

Removed vm_snapshot_buf_cmp() function in the kernel code.

Feb 6 2024, 11:41 AM · bhyve

Feb 5 2024

markj added inline comments to D43754: vmm: Fix compiling error with BHYVE_SNAPSHOT.
Feb 5 2024, 11:53 PM · bhyve
gusev.vitaliy_gmail.com requested review of D43754: vmm: Fix compiling error with BHYVE_SNAPSHOT.
Feb 5 2024, 10:34 PM · bhyve
gusev.vitaliy_gmail.com added a watcher for bhyve: gusev.vitaliy_gmail.com.
Feb 5 2024, 10:17 PM

Dec 29 2023

markj added a comment to D43218: bhyve: [snapshot] increase SNAPSHOT_BUFFER_SIZE according with fbuf size.
In D43218#985321, @rew wrote:

This seems fine as a stopgap. If you mail me git patches for this and the MTRR review, I'll apply them.

I went ahead and took care of these, hopefully you don't mind.

Dec 29 2023, 6:22 PM · bhyve
rew added a comment to D43218: bhyve: [snapshot] increase SNAPSHOT_BUFFER_SIZE according with fbuf size.

This seems fine as a stopgap. If you mail me git patches for this and the MTRR review, I'll apply them.

Dec 29 2023, 6:20 PM · bhyve
rew closed D43226: vmm: [snapshot] MTRR should be saved/restored.
Dec 29 2023, 6:15 PM · bhyve
rew closed D43218: bhyve: [snapshot] increase SNAPSHOT_BUFFER_SIZE according with fbuf size.
Dec 29 2023, 5:53 PM · bhyve
rew accepted D43226: vmm: [snapshot] MTRR should be saved/restored.
Dec 29 2023, 5:32 PM · bhyve
markj accepted D43218: bhyve: [snapshot] increase SNAPSHOT_BUFFER_SIZE according with fbuf size.

This seems fine as a stopgap. If you mail me git patches for this and the MTRR review, I'll apply them.

Dec 29 2023, 3:44 PM · bhyve
markj accepted D43226: vmm: [snapshot] MTRR should be saved/restored.
Dec 29 2023, 3:16 PM · bhyve

Dec 28 2023

gusev.vitaliy_gmail.com updated the summary of D43226: vmm: [snapshot] MTRR should be saved/restored.
Dec 28 2023, 10:00 PM · bhyve
gusev.vitaliy_gmail.com requested review of D43226: vmm: [snapshot] MTRR should be saved/restored.
Dec 28 2023, 9:57 PM · bhyve
gusev.vitaliy_gmail.com updated the summary of D43218: bhyve: [snapshot] increase SNAPSHOT_BUFFER_SIZE according with fbuf size.
Dec 28 2023, 6:44 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D43218: bhyve: [snapshot] increase SNAPSHOT_BUFFER_SIZE according with fbuf size.
In D43218#985023, @rew wrote:

as a side thought, wondering if FB_SIZE and SNAPSHOT_BUFFER_SIZE should be computed on the fly at some point in the future.

Dec 28 2023, 1:38 PM · bhyve
rew accepted D43218: bhyve: [snapshot] increase SNAPSHOT_BUFFER_SIZE according with fbuf size.

This looks good - thanks for the fix.

Dec 28 2023, 9:18 AM · bhyve
gusev.vitaliy_gmail.com requested review of D43218: bhyve: [snapshot] increase SNAPSHOT_BUFFER_SIZE according with fbuf size.
Dec 28 2023, 1:01 AM · bhyve
gusev.vitaliy_gmail.com closed D42260: bhyve: [snapshot] Remove init_snapshot() and initialize static vars directly.

rG7de582874eb9d08f3f87d11ed9e2b9ce8306db79

Dec 28 2023, 12:46 AM · bhyve

Dec 12 2023

jhb closed D42298: bhyve: refactor gdbstub to enable single-stepping on AMD CPUs.
Dec 12 2023, 11:30 PM · bhyve
jhb accepted D42298: bhyve: refactor gdbstub to enable single-stepping on AMD CPUs.
Dec 12 2023, 10:40 PM · bhyve
bnovkov updated the diff for D42298: bhyve: refactor gdbstub to enable single-stepping on AMD CPUs.

Address @jhb 's comments.

Dec 12 2023, 4:34 PM · bhyve

Dec 7 2023

jhb closed D42299: vmm: implement VM_CAP_MASK_HWINTR on AMD CPUs.
Dec 7 2023, 11:17 PM · bhyve
jhb closed D42296: vmm: implement single-stepping for AMD CPUs.
Dec 7 2023, 11:17 PM · bhyve
jhb closed D42295: vmm: enable software breakpoints for AMD CPUs.
Dec 7 2023, 11:17 PM · bhyve
jhb added a comment to D42296: vmm: implement single-stepping for AMD CPUs.

Note, there is still a hole here I think which is that the RFLAGS pushed as part of an exception frame when an exception or interrupt occurs can "leak" the shadow TF into the guest. That is, if you have enabled RFLAGS.TF to request a step and the guest takes an interrupt, the saved copy of RFLAGS on the stack will have TF set. Masking hardware interrupts during stepping prevents a good bit of this, but if the code hits an exception it will still leak the shadow TF. That isn't fatal, per se, but might be something to think about fixing at some point. I think the fix is you have to hook all exceptions and rewrite the saved RFLAGS on the stack similar to what happens now for PUSHF/POPF. You'd also need to deal with IRET as well so you can rewrite the saved RFLAGS on the stack before letting IRET continue.

Dec 7 2023, 11:06 PM · bhyve
jhb added a comment to D42298: bhyve: refactor gdbstub to enable single-stepping on AMD CPUs.

This generally looks fine to me modulo some nits. I think we should probably remove checking for the VM_CAP_MASK_HWINTR capability though.

Dec 7 2023, 11:00 PM · bhyve
jhb added inline comments to D42295: vmm: enable software breakpoints for AMD CPUs.
Dec 7 2023, 10:50 PM · bhyve
jhb accepted D42296: vmm: implement single-stepping for AMD CPUs.
Dec 7 2023, 10:45 PM · bhyve

Dec 5 2023

sean_rogue-research.com added a comment to D39620: vmm: Fix HLT loop while vcpu has requested virtual interrupts.

It could be, but I would expect that Linux 6.x kernel just changed behaviour a little and therefore race caused that issue is rarely seen.

Dec 5 2023, 7:12 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D39620: vmm: Fix HLT loop while vcpu has requested virtual interrupts.

Assuming the bug I see is indeed this bug, I reproduce in all 3 of my linux VMs, running Ubuntu 20.04 LTS and 22.04 LTS, which are all linux kernel 5.x. Looks like there is no LTS Ubuntu with kernel 6.x until upcoming 24.04. But 23.10 uses kernel 6.5, which I could try. Is kernel 6.x expected to fix something?

Dec 5 2023, 11:10 AM · bhyve

Dec 4 2023

sean_rogue-research.com added a comment to D39620: vmm: Fix HLT loop while vcpu has requested virtual interrupts.

stable/13 has this patch

Dec 4 2023, 10:57 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D39620: vmm: Fix HLT loop while vcpu has requested virtual interrupts.

...
I'm not very familiar with phabricator, so I'm unsure: is this fixed in FreeBSD 13.2 or only 14.0?

Dec 4 2023, 10:36 PM · bhyve
sean_rogue-research.com added a comment to D39620: vmm: Fix HLT loop while vcpu has requested virtual interrupts.

Hi all,

Dec 4 2023, 9:59 PM · bhyve

Nov 30 2023

bnovkov added inline comments to D42296: vmm: implement single-stepping for AMD CPUs.
Nov 30 2023, 4:05 PM · bhyve
bnovkov updated the diff for D42296: vmm: implement single-stepping for AMD CPUs.

Address @jhb 's comments.

Nov 30 2023, 4:02 PM · bhyve

Nov 29 2023

jhb added inline comments to D42296: vmm: implement single-stepping for AMD CPUs.
Nov 29 2023, 6:18 PM · bhyve
jhb accepted D42299: vmm: implement VM_CAP_MASK_HWINTR on AMD CPUs.
Nov 29 2023, 6:07 PM · bhyve
jhb accepted D42295: vmm: enable software breakpoints for AMD CPUs.
Nov 29 2023, 6:03 PM · bhyve
bnovkov added inline comments to D42296: vmm: implement single-stepping for AMD CPUs.
Nov 29 2023, 4:11 PM · bhyve

Nov 7 2023

gusev.vitaliy_gmail.com added a comment to D34718: Warm Migration feature for bhyve [Part 2].

That's all. Kernel crashes with panic: general protection fault. Who wants to fix that ?)

I've read through the various open reviews and your suggestions for a new file format on the mailing list. Would a more robust file format fix that? I.e. adding a checksum or signing the file with a cryptographic hash?

Nov 7 2023, 7:59 PM · bhyve

Nov 5 2023

freebsd_ny-central.org added a comment to D34718: Warm Migration feature for bhyve [Part 2].

I suppose that fixing existing issues and make the code stable is more important for now.

And if somebody feels that snapshot code is stable enough for adding new features, I would say it is not!

You can simply crash host with the following steps:

  1. Suspend VM
  2. Run "dd if=/dev/zero bs=1K count=1 conv=notrunc of=${snapshot}.kern"
  3. Resume VM

That's all. Kernel crashes with panic: general protection fault. Who wants to fix that ?)

Nov 5 2023, 6:37 PM · bhyve

Oct 30 2023

bnovkov added inline comments to D42298: bhyve: refactor gdbstub to enable single-stepping on AMD CPUs.
Oct 30 2023, 5:25 PM · bhyve
bnovkov added inline comments to D42298: bhyve: refactor gdbstub to enable single-stepping on AMD CPUs.
Oct 30 2023, 5:16 PM · bhyve
bnovkov updated the diff for D42298: bhyve: refactor gdbstub to enable single-stepping on AMD CPUs.

Address @corvink 's comments.

Oct 30 2023, 5:11 PM · bhyve
bnovkov added inline comments to D42296: vmm: implement single-stepping for AMD CPUs.
Oct 30 2023, 5:05 PM · bhyve
bnovkov updated the diff for D42296: vmm: implement single-stepping for AMD CPUs.

Address @corvink 's comments.

Oct 30 2023, 5:04 PM · bhyve
bnovkov updated the diff for D42295: vmm: enable software breakpoints for AMD CPUs.

Address @corvink's comments, unrelated exception reflection change was split into its own patch (D42405), updated commit message to be more clear.

Oct 30 2023, 4:57 PM · bhyve
corvink accepted D42299: vmm: implement VM_CAP_MASK_HWINTR on AMD CPUs.
Oct 30 2023, 2:59 PM · bhyve
corvink added inline comments to D42296: vmm: implement single-stepping for AMD CPUs.
Oct 30 2023, 2:58 PM · bhyve
corvink added a comment to D42295: vmm: enable software breakpoints for AMD CPUs.

Maybe add some more information to the commit message. Something like "This commit adds a new capability to enable software breakpoints. When enabled, vmexits are passed to userspace where they should be handled. ..."

Oct 30 2023, 2:31 PM · bhyve
corvink added inline comments to D42298: bhyve: refactor gdbstub to enable single-stepping on AMD CPUs.
Oct 30 2023, 2:26 PM · bhyve

Oct 19 2023

bnovkov updated the test plan for D42296: vmm: implement single-stepping for AMD CPUs.
Oct 19 2023, 4:13 PM · bhyve
bnovkov retitled D42295: vmm: enable software breakpoints for AMD CPUs from vmm: enable software breakpoints for AMD SVM to vmm: enable software breakpoints for AMD CPUs.
Oct 19 2023, 4:05 PM · bhyve
bnovkov requested review of D42299: vmm: implement VM_CAP_MASK_HWINTR on AMD CPUs.
Oct 19 2023, 4:05 PM · bhyve
bnovkov requested review of D42298: bhyve: refactor gdbstub to enable single-stepping on AMD CPUs.
Oct 19 2023, 4:01 PM · bhyve
bnovkov requested review of D42296: vmm: implement single-stepping for AMD CPUs.
Oct 19 2023, 3:56 PM · bhyve
bnovkov requested review of D42295: vmm: enable software breakpoints for AMD CPUs.
Oct 19 2023, 3:41 PM · bhyve

Oct 17 2023

markj accepted D42260: bhyve: [snapshot] Remove init_snapshot() and initialize static vars directly.

Please mail me git format-patch output and I'll apply it.

Oct 17 2023, 3:42 PM · bhyve
gusev.vitaliy_gmail.com requested review of D42260: bhyve: [snapshot] Remove init_snapshot() and initialize static vars directly.
Oct 17 2023, 2:56 PM · bhyve

Sep 28 2023

corvink closed D41778: bhyve: always generate ACPI tables.
Sep 28 2023, 8:51 AM · bhyve

Sep 27 2023

markj accepted D41778: bhyve: always generate ACPI tables.
Sep 27 2023, 12:44 PM · bhyve

Sep 21 2023

mohammad_fbsdphab_thelightbird.com added a watcher for bhyve: mohammad_fbsdphab_thelightbird.com.
Sep 21 2023, 3:15 PM

Sep 15 2023

corvink closed D41868: sysutils/edk2: enable TPM on bhyve.
Sep 15 2023, 3:01 PM · bhyve
corvink closed D41869: sysutils/edk2: enable secure boot on bhyve.
Sep 15 2023, 3:00 PM · bhyve