Page MenuHomeFreeBSD

vmm: Emulate testb imm8,r/m8
ClosedPublic

Authored by jlduran on Mar 3 2025, 7:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 27, 11:29 AM
Unknown Object (File)
Thu, Nov 27, 5:12 AM
Unknown Object (File)
Wed, Nov 26, 5:41 PM
Unknown Object (File)
Wed, Nov 26, 4:04 PM
Unknown Object (File)
Tue, Nov 25, 9:34 PM
Unknown Object (File)
Mon, Nov 24, 4:35 PM
Unknown Object (File)
Fri, Nov 21, 2:45 AM
Unknown Object (File)
Nov 19 2025, 7:42 AM

Details

Summary

Add support for "testb imm8,r/m8" emulation.

PR: 261940
PR: 282852
Obtained from: Illumos (bug #14483)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62731
Build 59615: arc lint + arc unit

Event Timeline

markj added inline comments.
sys/amd64/vmm/vmm_instruction_emul.c
1312

Rather than duplicating the whole implementation, IMO it'd be neater to write:

case 0xF6:
    size = 1;
    /* FALLTHROUGH */
case 0xF7:
    ...
jlduran marked an inline comment as done.

Address suggestions:

  • Keep things "DRY"
This revision is now accepted and ready to land.Mar 3 2025, 6:47 PM
This revision was automatically updated to reflect the committed changes.