asamy / ksm

A fast, hackable and simple x64 VT-x hypervisor for Windows and Linux. Builtin userspace sandbox and introspection engine.
https://asamy.github.io/ksm/
GNU General Public License v2.0
826 stars 181 forks source link

APIC access virtualization #8

Open asamy opened 7 years ago

asamy commented 7 years ago

Seems to generate #DF for some reason on setup. Maybe the APIC access page is bad.

asamy commented 7 years ago

47a5a284b2cf fixes this but the exit-handlers need to be adjusted to make this work, so the controls are all commented out for now. Broadwell seems to support virtualizing APIC accesses, posted interrupts and TPR shadow, but the other features are not available (register virtualization, x2apic, etc.). Posted interrupts is really cool especially for nesting (ack intr on exit, etc.).

See: vcpu_handle_apic_access, vcpu_handle_apic_write in exit.c