Page MenuHomeFreeBSD
Feed Advanced Search

Jun 14 2023

mihaiburcea15_gmail.com updated the diff for D34717: Warm Migration feature for bhyve [Part 1].
Jun 14 2023, 3:17 PM · bhyve
gusev.vitaliy_gmail.com retitled D40104: bhyve: [snapshot] Rename 'structs' key with 'kern_structs' from bhyve: [snapshot] Rename 'struct's key with 'kern_structs' to bhyve: [snapshot] Rename 'structs' key with 'kern_structs'.
Jun 14 2023, 12:05 AM · bhyve
gusev.vitaliy_gmail.com retitled D40104: bhyve: [snapshot] Rename 'structs' key with 'kern_structs' from bhyve: [snapshot] Rename 'struct' key with 'kern_struct' to bhyve: [snapshot] Rename 'struct's key with 'kern_structs'.
Jun 14 2023, 12:01 AM · bhyve

Jun 12 2023

corvink accepted D34717: Warm Migration feature for bhyve [Part 1].
Jun 12 2023, 2:29 PM · bhyve

Jun 7 2023

gusev.vitaliy_gmail.com updated the summary of D40105: bhyve: [snapshot] Simplify restore kernel structs.
Jun 7 2023, 8:09 PM · bhyve
gusev.vitaliy_gmail.com updated the summary of D40106: bhyve: [snapshot] Rename 'user_dev' with 'devices'.
Jun 7 2023, 8:08 PM · bhyve
gusev.vitaliy_gmail.com updated the summary of D40107: bhyve: pci_devinst.pi_name should contain bus, slot, func.
Jun 7 2023, 8:07 PM · bhyve
gusev.vitaliy_gmail.com updated the summary of D40105: bhyve: [snapshot] Simplify restore kernel structs.
Jun 7 2023, 8:05 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D40105: bhyve: [snapshot] Simplify restore kernel structs.
In D40105#921197, @jhb wrote:

Can you provide more description of what this change is doing? From what I can tell it uses err directly to abort quicker if it fails to restore an in-kernel structure, it inlines vm_restore_kern_struct into the loop in vm_restore_kern_structs. It renames vm_snapshot_kern_structs which is somewhat gratuitous IMO as it now no longer matches the other function names like vm_snapshot_user_devs. But I think the big change is not using lookup_struct and instead using meta->dev_name instead of meta->dev_req as the main key for the JSON for a given kernel struct? I think this means you can avoid lookup_struct because now instead of a flat array of all kernel structures they are separate objects with unique names? Can you expand on that more perhaps maybe with some examples of before/after JSON snippets? I would also suggest perhaps only doing the JSON change in this commit and not mixing in the other changes that I think obscure the real change you are making (e.g. the function rename, or inlining the function).

Jun 7 2023, 8:04 PM · bhyve
jhb added a comment to D40105: bhyve: [snapshot] Simplify restore kernel structs.

Can you provide more description of what this change is doing? From what I can tell it uses err directly to abort quicker if it fails to restore an in-kernel structure, it inlines vm_restore_kern_struct into the loop in vm_restore_kern_structs. It renames vm_snapshot_kern_structs which is somewhat gratuitous IMO as it now no longer matches the other function names like vm_snapshot_user_devs. But I think the big change is not using lookup_struct and instead using meta->dev_name instead of meta->dev_req as the main key for the JSON for a given kernel struct? I think this means you can avoid lookup_struct because now instead of a flat array of all kernel structures they are separate objects with unique names? Can you expand on that more perhaps maybe with some examples of before/after JSON snippets? I would also suggest perhaps only doing the JSON change in this commit and not mixing in the other changes that I think obscure the real change you are making (e.g. the function rename, or inlining the function).

Jun 7 2023, 6:44 PM · bhyve
corvink updated the diff for D32961: bhyve: enable TPM2 passthrough.
  • split into multiple commits
Jun 7 2023, 12:09 PM · bhyve

Jun 6 2023

corvink accepted D40109: bhyve: [snapshot] Use pci_next() to save/restore pci devices.
Jun 6 2023, 9:41 AM · bhyve
corvink accepted D40107: bhyve: pci_devinst.pi_name should contain bus, slot, func.
Jun 6 2023, 9:31 AM · bhyve
corvink accepted D40105: bhyve: [snapshot] Simplify restore kernel structs.
Jun 6 2023, 9:28 AM · bhyve
corvink updated subscribers of D26209: GVT-d support for bhyve.

@jhb @markj Any comments?

Jun 6 2023, 9:24 AM · bhyve

Jun 5 2023

corvink added a reviewer for D34811: Live Migration feature for bhyve [Part 2]: corvink.
Jun 5 2023, 9:33 AM · bhyve
corvink added a reviewer for D34722: Live Migration feature for bhyve [Part 1]: corvink.
Jun 5 2023, 9:33 AM · bhyve
corvink added a reviewer for D34721: Warm Migration feature for bhyve [Part 5]: corvink.
Jun 5 2023, 9:32 AM · bhyve
corvink added a reviewer for D34720: Warm Migration feature for bhyve [Part 4]: corvink.
Jun 5 2023, 9:32 AM · bhyve
corvink added a reviewer for D34719: Warm Migration feature for bhyve [Part 3]: corvink.
Jun 5 2023, 9:32 AM · bhyve
corvink added a reviewer for D34718: Warm Migration feature for bhyve [Part 2]: corvink.
Jun 5 2023, 9:32 AM · bhyve
corvink added a reviewer for D34717: Warm Migration feature for bhyve [Part 1]: corvink.
Jun 5 2023, 9:31 AM · bhyve

Jun 1 2023

mihaiburcea15_gmail.com added inline comments to D34718: Warm Migration feature for bhyve [Part 2].
Jun 1 2023, 7:22 PM · bhyve

May 21 2023

mihaiburcea15_gmail.com updated the diff for D34719: Warm Migration feature for bhyve [Part 3].
May 21 2023, 4:48 PM · bhyve
mihaiburcea15_gmail.com updated the diff for D34718: Warm Migration feature for bhyve [Part 2].
May 21 2023, 4:25 PM · bhyve
mihaiburcea15_gmail.com updated the diff for D34717: Warm Migration feature for bhyve [Part 1].
May 21 2023, 4:22 PM · bhyve

May 18 2023

mihaiburcea15_gmail.com abandoned D34813: Live Migration feature for bhyve [Part 3].
May 18 2023, 10:08 PM · bhyve
mihaiburcea15_gmail.com updated the diff for D34811: Live Migration feature for bhyve [Part 2].
May 18 2023, 10:06 PM · bhyve
mihaiburcea15_gmail.com updated the diff for D34722: Live Migration feature for bhyve [Part 1].
May 18 2023, 10:02 PM · bhyve
mihaiburcea15_gmail.com updated the diff for D34721: Warm Migration feature for bhyve [Part 5].
May 18 2023, 9:48 PM · bhyve
mihaiburcea15_gmail.com updated the diff for D34720: Warm Migration feature for bhyve [Part 4].
May 18 2023, 9:45 PM · bhyve
mihaiburcea15_gmail.com updated the diff for D34719: Warm Migration feature for bhyve [Part 3].
May 18 2023, 9:29 PM · bhyve
mihaiburcea15_gmail.com updated the diff for D34718: Warm Migration feature for bhyve [Part 2].

Addressed @corvink's comments and added Casper support.

May 18 2023, 9:21 PM · bhyve
mihaiburcea15_gmail.com updated the diff for D34717: Warm Migration feature for bhyve [Part 1].
May 18 2023, 8:48 PM · bhyve
mihaiburcea15_gmail.com updated the diff for D34717: Warm Migration feature for bhyve [Part 1].

Updated the patches to a newer version of FreeBSD.
Addressed @corvink's and @imp's comments.

May 18 2023, 8:31 PM · bhyve

May 17 2023

gusev.vitaliy_gmail.com added inline comments to D40107: bhyve: pci_devinst.pi_name should contain bus, slot, func.
May 17 2023, 6:14 PM · bhyve
corvink added inline comments to D40107: bhyve: pci_devinst.pi_name should contain bus, slot, func.
May 17 2023, 6:07 PM · bhyve
gusev.vitaliy_gmail.com added inline comments to D40107: bhyve: pci_devinst.pi_name should contain bus, slot, func.
May 17 2023, 5:11 PM · bhyve
gusev.vitaliy_gmail.com updated the diff for D40105: bhyve: [snapshot] Simplify restore kernel structs.

Fixed note from @corvink

May 17 2023, 5:03 PM · bhyve
corvink accepted D40108: bhyve: [snapshot] Add .pe_snapshot method for PCI 'hostbridge'.
May 17 2023, 4:48 PM · bhyve
corvink added inline comments to D40107: bhyve: pci_devinst.pi_name should contain bus, slot, func.
May 17 2023, 4:47 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D40108: bhyve: [snapshot] Add .pe_snapshot method for PCI 'hostbridge'.

Why don't we call pci_snapshot_pci_dev unconditionally even if pe_snapshot is NULL?

May 17 2023, 4:37 PM · bhyve
gusev.vitaliy_gmail.com added inline comments to D40107: bhyve: pci_devinst.pi_name should contain bus, slot, func.
May 17 2023, 4:32 PM · bhyve
corvink added a comment to D40108: bhyve: [snapshot] Add .pe_snapshot method for PCI 'hostbridge'.

Why don't we call pci_snapshot_pci_dev unconditionally even if pe_snapshot is NULL?

May 17 2023, 1:55 PM · bhyve
corvink added inline comments to D40107: bhyve: pci_devinst.pi_name should contain bus, slot, func.
May 17 2023, 1:52 PM · bhyve
corvink accepted D40106: bhyve: [snapshot] Rename 'user_dev' with 'devices'.
May 17 2023, 1:50 PM · bhyve
corvink accepted D40105: bhyve: [snapshot] Simplify restore kernel structs.
May 17 2023, 1:49 PM · bhyve
corvink accepted D40104: bhyve: [snapshot] Rename 'structs' key with 'kern_structs'.

One general note: Please try to explain why a change is required in your commit message. "Related to xy" is not enough. It should explain why it is related to xy and what's the advantage of the patch.

May 17 2023, 1:44 PM · bhyve

May 16 2023

rew accepted D40109: bhyve: [snapshot] Use pci_next() to save/restore pci devices.

Thanks

May 16 2023, 4:27 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D40109: bhyve: [snapshot] Use pci_next() to save/restore pci devices.

@rew Could you look again ?

May 16 2023, 4:25 PM · bhyve
rew added a comment to D40108: bhyve: [snapshot] Add .pe_snapshot method for PCI 'hostbridge'.

At least it saves pdi.pi_cfgdata. Do you think it is waste doing and .pi_cfgdata can not be changed by guest OS or be changed between bhyve versions ?

May 16 2023, 3:46 PM · bhyve

May 15 2023

gusev.vitaliy_gmail.com updated the diff for D40109: bhyve: [snapshot] Use pci_next() to save/restore pci devices.

Fixed notes from @rew.

May 15 2023, 7:17 PM · bhyve
gusev.vitaliy_gmail.com added inline comments to D40109: bhyve: [snapshot] Use pci_next() to save/restore pci devices.
May 15 2023, 7:12 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D40108: bhyve: [snapshot] Add .pe_snapshot method for PCI 'hostbridge'.
In D40108#913423, @rew wrote:

not sure that devices should define a snapshot handler when not supported by the device.

At least it saves pdi.pi_cfgdata.

May 15 2023, 5:57 PM · bhyve
rew added a comment to D40109: bhyve: [snapshot] Use pci_next() to save/restore pci devices.

small nits - other than that, looks good

May 15 2023, 5:57 PM · bhyve
gusev.vitaliy_gmail.com abandoned D35454: bhyve: snapshot capsicum support.

Close as whole patch series D38886 is committed.

May 15 2023, 5:54 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D40108: bhyve: [snapshot] Add .pe_snapshot method for PCI 'hostbridge'.
In D40108#913423, @rew wrote:

not sure that devices should define a snapshot handler when not supported by the device.

May 15 2023, 5:52 PM · bhyve
rew accepted D40108: bhyve: [snapshot] Add .pe_snapshot method for PCI 'hostbridge'.

not sure that devices should define a snapshot handler when not supported by the device.

May 15 2023, 5:39 PM · bhyve
rew accepted D40105: bhyve: [snapshot] Simplify restore kernel structs.
May 15 2023, 5:33 PM · bhyve
rew accepted D40104: bhyve: [snapshot] Rename 'structs' key with 'kern_structs'.
May 15 2023, 5:24 PM · bhyve
rew accepted D40106: bhyve: [snapshot] Rename 'user_dev' with 'devices'.
May 15 2023, 5:23 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D35590: bhyve: multiple devices support for suspend/checkpoint/resume.

@corvink I've split this patch with several patches. Note, according to @rew comments about adding and usage "register_snapshot_dev", I replaced that code with pci_next() function to walk all available PCI devices and save/restore them. 'atkbdc` device is saved/restored separately in this case.

May 15 2023, 2:33 PM · bhyve
gusev.vitaliy_gmail.com updated the test plan for D40107: bhyve: pci_devinst.pi_name should contain bus, slot, func.
May 15 2023, 2:09 PM · bhyve
gusev.vitaliy_gmail.com requested review of D40109: bhyve: [snapshot] Use pci_next() to save/restore pci devices.
May 15 2023, 2:08 PM · bhyve
gusev.vitaliy_gmail.com requested review of D40108: bhyve: [snapshot] Add .pe_snapshot method for PCI 'hostbridge'.
May 15 2023, 2:03 PM · bhyve
gusev.vitaliy_gmail.com updated the test plan for D40107: bhyve: pci_devinst.pi_name should contain bus, slot, func.
May 15 2023, 1:59 PM · bhyve
gusev.vitaliy_gmail.com requested review of D40107: bhyve: pci_devinst.pi_name should contain bus, slot, func.
May 15 2023, 1:57 PM · bhyve
gusev.vitaliy_gmail.com updated the summary of D40104: bhyve: [snapshot] Rename 'structs' key with 'kern_structs'.
May 15 2023, 1:55 PM · bhyve
gusev.vitaliy_gmail.com updated the summary of D40105: bhyve: [snapshot] Simplify restore kernel structs.
May 15 2023, 1:55 PM · bhyve
gusev.vitaliy_gmail.com requested review of D40106: bhyve: [snapshot] Rename 'user_dev' with 'devices'.
May 15 2023, 1:54 PM · bhyve
gusev.vitaliy_gmail.com requested review of D40105: bhyve: [snapshot] Simplify restore kernel structs.
May 15 2023, 1:50 PM · bhyve
gusev.vitaliy_gmail.com requested review of D40104: bhyve: [snapshot] Rename 'structs' key with 'kern_structs'.
May 15 2023, 1:48 PM · bhyve

May 11 2023

corvink updated the summary of D26209: GVT-d support for bhyve.
May 11 2023, 12:27 PM · bhyve
corvink updated the diff for D26209: GVT-d support for bhyve.
  • don't emulate writes of ASLS. It's not required.
May 11 2023, 12:27 PM · bhyve

May 10 2023

corvink abandoned D33011: bhyve: add ioctl to query infos about special memory regions.

This isn't required any. Neither by GVT-d nor by TPM emulation.

May 10 2023, 12:50 PM · bhyve
corvink updated the summary of D26209: GVT-d support for bhyve.
May 10 2023, 12:50 PM · bhyve
corvink updated the diff for D26209: GVT-d support for bhyve.
  • rebase and split into smaller commits
May 10 2023, 12:46 PM · bhyve

May 9 2023

corvink closed D35447: vmm: save/restore pir_desc is required for posted-interrupts and VID.
May 9 2023, 8:33 AM · bhyve

May 8 2023

jhb accepted D35447: vmm: save/restore pir_desc is required for posted-interrupts and VID.

Perhaps adjust the commit message to say something like "Failing to preserve pir_desc can result in pending interrupts being lost on resume leading to a hung VM" or some such to clarify that the hang is due to missing interrupts.

May 8 2023, 6:13 PM · bhyve
corvink accepted D35447: vmm: save/restore pir_desc is required for posted-interrupts and VID.
May 8 2023, 12:14 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D35447: vmm: save/restore pir_desc is required for posted-interrupts and VID.

Patch looks good but it doesn't apply any more. Could you send an updated version please?

May 8 2023, 12:05 PM · bhyve
gusev.vitaliy_gmail.com updated the diff for D35447: vmm: save/restore pir_desc is required for posted-interrupts and VID.

Rebased on main.

May 8 2023, 12:05 PM · bhyve
corvink added a comment to D35826: [GSoC 2022] bhyve debug server enhancements.
In D35826#910200, @bojan.novkovic_fer.hr wrote:

I'll update the patch and start chopping it up into smaller pieces, probably starting with breakpoint and single-stepping support for SVM.

May 8 2023, 6:51 AM · bhyve
corvink added a comment to D35447: vmm: save/restore pir_desc is required for posted-interrupts and VID.

Patch looks good but it doesn't apply any more. Could you send an updated version please?

May 8 2023, 6:16 AM · bhyve

May 5 2023

bnovkov added a comment to D35826: [GSoC 2022] bhyve debug server enhancements.

This is a quite large patch. Could it be split into multiple ones to simplify reviewing and merging?

May 5 2023, 7:13 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D35447: vmm: save/restore pir_desc is required for posted-interrupts and VID.

@corvink Could you look at this ? While Patrick's changes requires (in comment) a lot of modifying generic code, this simple fix could solve issue related for suspend/resume.

May 5 2023, 4:59 PM · bhyve
gusev.vitaliy_gmail.com added a reviewer for D35447: vmm: save/restore pir_desc is required for posted-interrupts and VID: corvink.
May 5 2023, 4:57 PM · bhyve

May 4 2023

corvink added a comment to D35826: [GSoC 2022] bhyve debug server enhancements.

This is a quite large patch. Could it be split into multiple ones to simplify reviewing and merging?

May 4 2023, 6:54 AM · bhyve

May 2 2023

mihaiburcea15_gmail.com added a comment to D34717: Warm Migration feature for bhyve [Part 1].

We're preparing an update for the patches to a current version of FreeBSD. We'll address @corvink's and @imp's comments there. Thank you for those!

May 2 2023, 8:25 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D35590: bhyve: multiple devices support for suspend/checkpoint/resume.

@gusev.vitaliy_gmail.com As said, please split this commit. You can also send me a link to a personal git repo where I can pull the changes from.

May 2 2023, 4:07 PM · bhyve
imp added a comment to D34717: Warm Migration feature for bhyve [Part 1].

Just looked at copyright / legal stuff. My comments to migration.h also apply to migration.c.
Corvink had most of the stuff, but I thought I'd add the detail or two that was missing

May 2 2023, 1:26 PM · bhyve
corvink added inline comments to D34718: Warm Migration feature for bhyve [Part 2].
May 2 2023, 1:13 PM · bhyve
corvink added inline comments to D34717: Warm Migration feature for bhyve [Part 1].
May 2 2023, 12:28 PM · bhyve
corvink added inline comments to D34717: Warm Migration feature for bhyve [Part 1].
May 2 2023, 12:20 PM · bhyve
corvink accepted D35590: bhyve: multiple devices support for suspend/checkpoint/resume.

@gusev.vitaliy_gmail.com As said, please split this commit. You can also send me a link to a personal git repo where I can pull the changes from.

May 2 2023, 7:59 AM · bhyve

Apr 28 2023

corvink closed D38860: bhyve: Enable Capsicum for snapshots.
Apr 28 2023, 7:07 AM · capsicum, bhyve
corvink closed D38858: bhyve: Use directory `fd` with checkpoint.
Apr 28 2023, 7:07 AM · bhyve

Apr 26 2023

corvink closed D39620: vmm: Fix HLT loop while vcpu has requested virtual interrupts.
Apr 26 2023, 8:39 AM · bhyve

Apr 25 2023

markj accepted D39620: vmm: Fix HLT loop while vcpu has requested virtual interrupts.
Apr 25 2023, 1:52 PM · bhyve
gusev.vitaliy_gmail.com added a comment to D38858: bhyve: Use directory `fd` with checkpoint.

@corvink Can it be committed or I should improve/correct it ?

Apr 25 2023, 12:30 PM · bhyve