Page MenuHomeFreeBSD

arm64/vmm: Handle VM_EXITCODE_SUSPENDED
ClosedPublic

Authored by markj on Wed, Apr 24, 10:29 PM.
Tags
None
Referenced Files
F83516223: D44934.id.diff
Sat, May 11, 2:32 PM
F83516221: D44934.id137844.diff
Sat, May 11, 2:32 PM
F83516206: D44934.id137635.diff
Sat, May 11, 2:31 PM
Unknown Object (File)
Wed, May 8, 1:19 PM
Unknown Object (File)
Wed, May 1, 7:43 AM
Unknown Object (File)
Mon, Apr 29, 2:22 PM
Unknown Object (File)
Sat, Apr 27, 7:43 PM
Unknown Object (File)
Sat, Apr 27, 5:12 AM
Subscribers

Details

Summary

This is required for bhyve reboot to work. In particular, unless we
suspend vcpu threads here, vm_reinit() will fail with EBUSY.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/arm64/vmm/vmm.c
1735

Where's the rendezvous handler called?

Can we reuse the function from sys/amd64/vmm/vmm.c? If we can't share code, it might be a good idea to add a comment on top of the function like Copied from sys/amd64/vmm/vmm.c. Keep it in sync!.

sys/arm64/vmm/vmm.c
1735

arm64 doesn't implement a rendezvous operation.

In parallel I am working on merging this code with amd64 into sys/dev/vmm, so for now it is enough to try to minimize differences that appear with diff(1).

This revision is now accepted and ready to land.Mon, Apr 29, 6:25 AM
This revision was automatically updated to reflect the committed changes.