Page MenuHomeFreeBSD

vmm: refactor event reflection in AMD SVM
ClosedPublic

Authored by bnovkov on Oct 30 2023, 4:56 PM.
Tags
None
Referenced Files
F172840313: D42405.id.diff
Mon, Sep 21, 11:47 AM
Unknown Object (File)
Sat, Sep 12, 6:48 PM
Unknown Object (File)
Aug 11 2026, 2:39 PM
Unknown Object (File)
Aug 11 2026, 2:06 PM
Unknown Object (File)
Aug 4 2026, 1:58 AM
Unknown Object (File)
Aug 3 2026, 6:46 AM
Unknown Object (File)
Jul 26 2026, 1:17 PM
Unknown Object (File)
Jul 20 2026, 1:17 AM

Details

Summary

This patch refactors AMD SVM event reflection to allow events to be propagated to userland, rather than always reflected into the guest.
This is necessary to implement some capabilities that request VMEXITs when a specific exception occurs (e.g. VM_CAP_BPT_EXIT).

This work was sponsored by the GSoC '22 program.

Diff Detail

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

Event Timeline

bnovkov edited the summary of this revision. (Show Details)
bnovkov added a reviewer: corvink.

If you merge this first, then the breakpoint patch doesn't need 'handled = 0', right?

This revision is now accepted and ready to land.Nov 29 2023, 6:05 PM
In D42405#976891, @jhb wrote:

If you merge this first, then the breakpoint patch doesn't need 'handled = 0', right?

Yes, that line is redundant and I've removed it.

This revision was automatically updated to reflect the committed changes.