• Rusty Russell's avatar
    lguest: stop using KVM hypercall mechanism · 091ebf07
    Rusty Russell authored
    This is a partial revert of 4cd8b5e2 "lguest: use KVM hypercalls";
    we revert to using (just as questionable but more reliable) int $15 for
    hypercalls.  I didn't revert the register mapping, so we still use the
    same calling convention as kvm.
    
    KVM in more recent incarnations stopped injecting a fault when a guest
    tried to use the VMCALL instruction from ring 1, so lguest under kvm
    fails to make hypercalls.  It was nice to share code with our KVM
    cousins, but this was overreach.
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    Cc: Matias Zabaljauregui <zabaljauregui@gmail.com>
    Cc: Avi Kivity <avi@redhat.com>
    091ebf07
lguest_device.c 15.1 KB