KVM: Remove the 'emulated' field from the userspace interface
authorAvi Kivity <avi@qumranet.com>
Thu, 1 Mar 2007 14:20:40 +0000 (16:20 +0200)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:23 +0000 (10:52 +0300)
We no longer emulate single instructions in userspace.  Instead, we service
mmio or pio requests.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c
include/linux/kvm.h

index caec54f..5d24203 100644 (file)
@@ -1588,11 +1588,6 @@ static int kvm_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
        /* re-sync apic's tpr */
        vcpu->cr8 = kvm_run->cr8;
 
-       if (kvm_run->emulated) {
-               kvm_arch_ops->skip_emulated_instruction(vcpu);
-               kvm_run->emulated = 0;
-       }
-
        if (kvm_run->io_completed) {
                if (vcpu->pio_pending)
                        complete_pio(vcpu);
Simple merge