Current pPatch has been working well for more than year.
Command line for example (VM has two virtio-blk disks):
```
bhyve -c sockets=1,cores=2 -m 2048M1024M -H -A -P -S -s 0:0,hostbridge -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s 3:0,virtio-blk,/dev/zvol/datavm/vms/win10h2/disk0,sectorsize=4096 -s 4:0,virtio-net,tap0 -s 5,ahci-cd,/disk/iso/ubuntu-22.04.1-live-server-amd64.iso -s 3:1,virtio-blk,disk2,sectorsize=4096 -s 7,fbuf,tcp=10.2.0.89:5900,w=1024,h=768 -s 30,xhci,tablet -s 31:0,lpc win10h2ubuntu22
```
With added addition debug, mMessages during suspend are:
:
```
pci_pause: not implemented for: lpc-pci-0-31-0
pci_pause: not implemented for: xhci-pci-0-30-0
pci_pause: not implemented for: fbuf-pci-0-7-0
pci_pause: not implemented for: hostbridge-pci-0-0-0
[20481024.000MiB / 20481024.000MiB] |#########################################################################################################################|
Doing snapshot for: lpc-pci-0-31-0
Doing snapshot for: xhci-pci-0-30-0
Doing snapshot for: fbuf-pci-0-7-0
Doing snapshot for: virtio-net-pci-0-4-0
Doing snapshot for: virtio-blk-pci-0-3-1
Doing snapshot for: virtio-blk-pci-0-3-0
Doing snapshot for: hostbridge-pci-0-0-0
Doing snapshot for: atkbdc
```
Messages during resume are:
```
fbuf frame buffer base: 0x88820x3315b4600000 [sz 16777216]
Pausing devicespci devs...
pci_pause: not implemented for: lpc-pci-0-31-0
pci_pause: not implemented for: xhci-pci-0-30-0
pci_pause: not implemented for: fbuf-pci-0-7-0
pci_pause: not implemented for: hostbridge-pci-0-0-0
Restoring vm mem...
[20481024.000MiB / 20481024.000MiB] |#########################################################################################################################|
Restoring devicespci devs...
Restoring kernel datastructs...
Resuming devicespci devs...
pci_resume: not implemented for: lpc-pci-0-31-0
pci_resume: not implemented for: xhci-pci-0-30-0
pci_resume: not implemented for: fbuf-pci-0-7-0
pci_resume: not implemented for: hostbridge-pci-0-0-0
spinning up vcpu no 1...
```
Suspend of devices in .meta file looks like this:
```
{
"kern_structs": ["basic metadata": {
{"ncpus": 2,
"debug_"vmname": "vhpet"ubuntu22",
"devic"memsize": 51073741824,
"size": 284,
"file_offset": 0
"memflags": 2
},
"kern_structs": [
{
"debug_nam"device": "vm"hpet",
"devic"size": 284,
"size": 11776,"file_offset": 0
"file_offset": 284
},
{
"debug_nam"device": "vmx"",
"devic"size": 0400,
"size": 18440,"file_offset": 284
"file_offset": 12060
},
{
"debug_nam"device": "vioapic",
"device": 1,
"size": 388,
"file_offset": 30500684
},
{
"debug_nam"device": "vlapic",
"devic"size": 38338,
"size": 267328,"file_offset": 1072
"file_offset": 30888
},
{
"debug_nam"device": "vmcx",
"devic"size": 61200,
"size": 24064,"file_offset": 9410
"file_offset": 298216
},
{
"debug_nam"device": "vatpit",
"device": 8,
"size": 172,
"file_offset": 32228010610
},
{
"debug_nam"device": "vatpic",
"device": 7,
"size": 118,
"file_offset": 32245210782
},
{
"debug_nam"device": "vpmtmr",
"device": 9,
"size": 4,
"file_offset": 32257010900
},
{
"debug_nam"device": "vrtc",
"device": 10,
"size": 140,
"file_offset": 32257410904
}
],
"basic metadata": {"devices": [
"ncpus": 2,{
"vmnam "device": "win10h2"lpc-pci-0-31-0",
"mem "size": 2147483648620,
"memflags": 2 "file_offset": 11044
},
"devices": [
{
"device": "lpcxhci-pci-0-31-0"0-0",
"size": 6002077,
"file_offset": 32271411664
},
{
"device": "xhcifbuf-pci-0-30-0"7-0",
"size": 205716777668,
"file_offset": 32331413741
},
{
"device": "fbufahci-pci-0-7-0"5-0",
"size": 16777648531,
"file_offset": 32537116791409
},
{
"device": "virtio-net-pci-0-4-0",
"size": 6617697,
"file_offset": 171030196792940
},
{
"device": "virtio-blk-pci-0-3-1",
"size": 881535,
"file_offset": 171691956859137
},
{
"device": "virtio-blk-pci-0-3-0",
"size": 881535,
"file_offset": 171780106867972
},
{
"device": "hostbridge-pci-0-0-0",
"size": 43252,
"file_offset": 171868256876807
},
{
"device": "atkbdc",
"size": 141,
"file_offset": 171872576877259
}
]
}
```