Page MenuHomeFreeBSD

bhyve: provide basic descriptions for VMX exit reason
ClosedPublic

Authored by yuripv on Oct 12 2018, 10:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 10:19 AM
Unknown Object (File)
Tue, Oct 29, 11:35 AM
Unknown Object (File)
Oct 18 2024, 7:48 AM
Unknown Object (File)
Oct 13 2024, 12:22 AM
Unknown Object (File)
Oct 4 2024, 1:41 PM
Unknown Object (File)
Oct 3 2024, 9:39 AM
Unknown Object (File)
Oct 2 2024, 10:37 PM
Unknown Object (File)
Oct 2 2024, 6:35 AM

Details

Summary

Provide basic descriptions for VMX exit reason (from "Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3"). Add the document to SEE ALSO in bhyve.8 (and pet manlint here a bit).

It makes it a bit easier to understand the reason of exit, e.g.:

vm exit[0]
        reason          VMX
        rip             0x000000000000fff0
        inst_length     3
        status          0
        exit_reason     48 (EPT violation)
        qualification   0x0000000000000184
        inst_type               0
        inst_error              0
Abort trap

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

0mp added a subscriber: 0mp.

The manual page update seems fine from the mdoc perspective.

This revision is now accepted and ready to land.Oct 12 2018, 10:56 AM
This revision now requires review to proceed.Oct 12 2018, 10:56 AM
usr.sbin/bhyve/bhyverun.c
92

const char * const ? If it passes over other places.

93

Use designated initializers, even if the indexes do not have symbolic names. Put each initialization element on its own line.

548

I would create a static function which does the calculation of the string by number.

yuripv added inline comments.
usr.sbin/bhyve/bhyverun.c
93

Done, I hope that including <amd64/vmm/intel/vmcs.h> is OK here.

kib added inline comments.
usr.sbin/bhyve/bhyverun.c
93

This header is not installed, so bhyve(8) definitely requires the build from the full sources. I remember that it was the case already due to vmm_instructions_emul.c.

541

Blank line is needed after '{' if no locals are defined.

544

This blank line is excessive.

This revision is now accepted and ready to land.Oct 12 2018, 12:20 PM
This revision now requires review to proceed.Oct 12 2018, 2:44 PM
This revision is now accepted and ready to land.Oct 12 2018, 3:03 PM

Can I proceed with kib being the reviewer for this, or bhyve group will take a look?

The bhyve group hat was requested by Peter Grehan for "Maintainer" approval and awareness of bhyve bits, as far as I can see this review does not touch any bits that need bhyve maintainer approval, so you can commit with out an accept from them.

I am accepting this as me personally, I am not a person who can wear hat bhyve maintainer.

jhb added a subscriber: jhb.
jhb added inline comments.
usr.sbin/bhyve/bhyve.8
503–505

I think the doc folks would want all of the formatting changes to this file be done as a separate commit from the actual content change. I think adding the reference to the Intel SDM manual is the only content change to this file?

yuripv added inline comments.
usr.sbin/bhyve/bhyve.8
503–505

Yes, the only content change is added reference. Formatting changes are mostly pointed out by mandoc lint, and seem to be formally accepted by manpages (@0mp).

Hi @yuripv , is there anything pending for this patch to be committed?

Hi @yuripv , is there anything pending for this patch to be committed?

Sorry for the delay, submitted to mentor for approval.

This revision was automatically updated to reflect the committed changes.