In D35590#888009, @gusev.vitaliy_gmail.com wrote:Let's move forward and all useful things will be added :)
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Mar 10 2023
Mar 10 2023
Mar 9 2023
Mar 9 2023
In D35590#887785, @gusev.vitaliy_gmail.com wrote:That will work, but this is not easier than current review's approach.
Mar 8 2023
Mar 8 2023
In D38860#887381, @rew wrote:https://reviews.freebsd.org/D38858 also needs to be addressed before this patch is committed.
I withdraw my request for changes.
In D38860#887339, @markj wrote:Looks like this patch needs to be rebased.
In D35590#887206, @gusev.vitaliy_gmail.com wrote:
Mar 7 2023
Mar 7 2023
In D35590#886683, @gusev.vitaliy_gmail.com wrote:The main idea of this review - introduce struct snapshot_dev and it will be used by the following nvlist changes.
Mar 6 2023
Mar 6 2023
In D35590#886289, @gusev.vitaliy_gmail.com wrote:
Mar 4 2023
Mar 4 2023
In D35590#885760, @gusev.vitaliy_gmail.com wrote:@rew This is stopper for following up nvlist changes. Please review and possibly approve. Thanks.
Mar 3 2023
Mar 3 2023
In D38858#885637, @gusev.vitaliy_gmail.com wrote:In D38858#885635, @rew wrote:In D38858#885606, @gusev.vitaliy_gmail.com wrote:nvlist implementation will use single file for all:
- config
- vram
- kernel data
- devices data
So you are right, using multiple files is not reasonable and is hard to operate.
In which case, the file descriptor change needs to happen after bhyve starts using a single file for snapshots.
I don't think so. It is not dependent thing. Current state of snapshot/resume is using multiple files. And this work is about adding support Capsicum. It is not related to the single file format at all.
So this review and https://reviews.freebsd.org/D38860 will have to wait till the above work is merged.
Why do you think single format work (nvlist) should be *before* enabling Capsicum? nvlist work will have a lot of changes and we can stuck if discussing any useful thing eats a lot of time and risk is not to move forward for the months. Just note, multiple device review is 7-8 months old. It is crazy for the code that is under #ifdef BHYVE_SNAPSHOT. We need speedup this work. For now it is about 2 years when Snapshot/Resume was added and there no significant progress.
If you have questions or notes about the code, please write here. Otherwise please accept the reviews.
In D38858#885606, @gusev.vitaliy_gmail.com wrote:In D38858#885604, @rew wrote:..
see the original commit message that brought the snapshot code in
The file format also does not currently support versioning of individual chunks of state. As a result, the current file format is not a fixed binary format and future revisions to save and restore will break binary compatiblity of snapshot files. The goal is to move to a more flexible format that adds versioning, etc. and at that point to commit to providing a reasonable level of compatibility.If I understand right, all things could be achieved with nvlist implementation. Thanks.
Why does there need to be multiple files for a single snapshot?
nvlist implementation will use single file for all:
- config
- vram
- kernel data
- devices data
So you are right, using multiple files is not reasonable and is hard to operate.
In D38858#885557, @gusev.vitaliy_gmail.com wrote:In D38858#885508, @rew wrote:! In D38858#884878, @gusev.vitaliy_gmail.com wrote:
Did you mean about format of the image files or something another? If format, I am going to resolve it with coming nvlist changes.you plan on converting the snapshot file format to an nvlist?
Plain is:
- Capsicum (has review)
- Multiple devices support (has review)
- nvlist review. Not yet created and waits for 1-2 finish. I will describe and propose file format with nvlist implementation.
Sorry, which advice did you mean? I don't see any comment from jhb in https://reviews.freebsd.org/D35454
see the original commit message that brought the snapshot code in
The file format also does not currently support versioning of individual chunks of state. As a result, the current file format is not a fixed binary format and future revisions to save and restore will break binary compatiblity of snapshot files. The goal is to move to a more flexible format that adds versioning, etc. and at that point to commit to providing a reasonable level of compatibility.If I understand right, all things could be achieved with nvlist implementation. Thanks.
! In D38858#884878, @gusev.vitaliy_gmail.com wrote:
Did you mean about format of the image files or something another? If format, I am going to resolve it with coming nvlist changes.
Mar 2 2023
Mar 2 2023
In D38858#884878, @gusev.vitaliy_gmail.com wrote:Did you mean about format of the image files or something another? If format, I am going to resolve it with coming nvlist changes.
I still don't understand why you haven't addressed my comments that I raised in the original review. Do you feel it's not worth addressing or is that I'm out of line?
Mar 1 2023
Mar 1 2023
rew committed rG956171d5bc29: bhyve: remove redundant variable (authored by gusev.vitaliy_gmail.com).
bhyve: remove redundant variable
Feb 28 2023
Feb 28 2023
I still hold the opinion that the snapshot data should be stored in a single file and the file descriptor for that file should be passed to bhyve.
Feb 25 2023
Feb 25 2023
stand: fix buffer overflow in getrootmount()
Feb 24 2023
Feb 24 2023
Feb 23 2023
Feb 23 2023
Feb 22 2023
Feb 22 2023
Tested - works as expected for me,
Feb 17 2023
Feb 17 2023
Feb 16 2023
Feb 16 2023
Feb 7 2023
Feb 7 2023
Feb 6 2023
Feb 6 2023
Jan 30 2023
Jan 30 2023
I don't see any issues with this offhand - be nice to have this fixed for 13.2
Jan 27 2023
Jan 27 2023
In D38231#868911, @emaste wrote:would it be worth the effort to fix this upstream?
I prefer that if someone's willing to shepherd it in, but in the meantime adding the warning flag is sensible.
would it be worth the effort to fix this upstream? something like:
Jan 26 2023
Jan 26 2023
After a second look, perhaps md's devsw shouldn't even define dv_fmtdev or dv_parsedev and use the defaults instead.
it looked something like: https://reviews.freebsd.org/differential/diff/115789/
My local workaround to fix this was to add md_parsedev() and md_formatdev() and have it only understand md0.
Jan 20 2023
Jan 20 2023
vmm: fix use after free in ppt_detach()
vmm: take exclusive mem_segs_lock in vm_cleanup()
rew committed rGccf32a68f821: vmm: take exclusive mem_segs_lock when (un)assigning ppt dev (authored by rew).
vmm: take exclusive mem_segs_lock when (un)assigning ppt dev
Jan 16 2023
Jan 16 2023
In D38072#865036, @markj wrote:Does the bug occur because the ppt module is unloaded after the vmm module when vmm.ko is unloaded?
previous diff was incorrect
Jan 15 2023
Jan 15 2023
In D37972#864919, @crowston_protonmail.com wrote:I applied your patch to -CURRENT, but unfortunately I get a panic in vm_iommu_modify(): "vm mem_segs not locked "
That doesn't seem related to this change.
In D37972#864919, @crowston_protonmail.com wrote:I applied your patch to -CURRENT, but unfortunately I get a panic in vm_iommu_modify(): "vm mem_segs not locked @ /usr/src/sys/amd64/vmm/vmm.c:1189"
Jan 6 2023
Jan 6 2023
Dec 5 2022
Dec 5 2022
bhyveload: open guest boot disk image O_RDWR
config: remove LOCK_PROFILING_FAST
Dec 4 2022
Dec 4 2022
Nov 7 2022
Nov 7 2022
In D37296#847263, @corvink wrote:Disabling this warning will lead to even more unaligned accesses. If you're working on removing all unaligned accesses and this commit is inteded to increase the warn level early, it's fine but please mention it in the commit message.
In D37295#847262, @corvink wrote:Even if it only finds very simple bugs, it's a good option. Simple bugs happen. Setting up a VM to find a bug requires some work and is error prone. So, it's much better if the compiler complains about your bug.
Note that if we disable the option, it'll get even worse.
Nov 6 2022
Nov 6 2022
Not sure if I missed a step while applying this stack of patches but, I got the following error while build testing. I've provided a diff for context that allowed the build to complete, https://reviews.freebsd.org/differential/diff/112707/
Nov 4 2022
Nov 4 2022
Oct 27 2022
Oct 27 2022
Oct 26 2022
Oct 26 2022
Sep 13 2022
Sep 13 2022
In D35454#830046, @emaste wrote:I haven't fully reviewed in detail, but it seems that this is an incremental step forward, and it makes sense to go ahead with this change [
Aug 23 2022
Aug 23 2022
In D36279#824118, @kp wrote:In D36279#824072, @kp wrote:Hmm. This *looks* sane to me, but this patch breaks the if_vlan tests, so clearly I'm missing something. A ping over a vlan interface (on top of epair, in a vnet jail) results in ping: sendto: Invalid argument, and I'm not seeing why at the moment.
It looks like what's happening here is that we fail the arp lookup because we're trying to do a lookup on the underlying interface, not the vlan interface.
Aug 21 2022
Aug 21 2022
kqueue: retire knlist_init_rw_reader()
Aug 15 2022
Aug 15 2022
Aug 14 2022
Aug 14 2022
I've submitted a pull request upstream:
Aug 8 2022
Aug 8 2022
In D33400#818953, @kib wrote:I meant something different. There is a very little need to add knlist_init_sx(9), when we only have single consumer. Put the code into ZFS OS-specific file.
Aug 7 2022
Aug 7 2022
In D33400#818876, @kib wrote:Is it for single consumer?
Jul 24 2022
Jul 24 2022
- bump manpage date
Jul 22 2022
Jul 22 2022
In D33401#814574, @afedorov wrote:@rew, do you have any plans to continue this work? If not, I'd like to take over.
Jun 23 2022
Jun 23 2022
In D35454#806879, @gusev.vitaliy_gmail.com wrote:If use one fd for all steps (save all things - ram, kernel, config to one file) - it will require completly rework saving format.
obsolete by commit rG67d60dcce62c08250dceedaf761cb48bc74c75a4
not sold on it
Jun 21 2022
Jun 21 2022
Jun 11 2022
Jun 11 2022
I'd rather see the snapshot functionality write it's data to a single file. A file descriptor for said file would be passed in from the nvlist via an IPC command.
Apr 28 2022
Apr 28 2022
geom_dev: extend kevent support for geom dev
bhyve/snapshot: ..back to SOCK_STREAM
Apr 25 2022
Apr 25 2022
address feedback from markj:
- wrap long line
- close file descriptor being leaked
Apr 24 2022
Apr 24 2022
rew added a reviewer for D35044: pfilctl: initialize pio_nheads for PFILIOC_LISTHEADS ioctl: glebius.
feedback from jhb..use SUN_LEN()
Apr 19 2022
Apr 19 2022
looks good, thanks
Apr 16 2022
Apr 16 2022
What about receiving the file descriptors from the nvlist?
Apr 14 2022
Apr 14 2022
Apr 13 2022
Apr 13 2022
rew committed rG7472cae2e098: mount.8: mention that the snapshot option is exclusive (authored by rew).
mount.8: mention that the snapshot option is exclusive
ffs_mount(): fix snapshotting
rew committed rGd7d8cc989150: ffs_mount(): return early if namei() fails to lookup disk device (authored by rew).
ffs_mount(): return early if namei() fails to lookup disk device