• Avi Kivity's avatar
    KVM: VMX: Use vmx to inject real-mode interrupts · 9c5623e3
    Avi Kivity authored
    Instead of injecting real-mode interrupts by writing the interrupt frame into
    guest memory, abuse vmx by injecting a software interrupt.  We need to
    pretend the software interrupt instruction had a length > 0, so we have to
    adjust rip backward.
    
    This lets us not to mess with writing guest memory, which is complex and also
    sleeps.
    Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
    9c5623e3
vmx.h 13.2 KB